You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by lu...@apache.org on 2023/10/09 08:33:41 UTC

[tvm] branch main updated: [CMSIS-NN] Move CMSIS_5 from SHA to release based upgrade (#15747)

This is an automated email from the ASF dual-hosted git repository.

lukhut pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 1e097b0abf [CMSIS-NN] Move CMSIS_5 from SHA to release based upgrade (#15747)
1e097b0abf is described below

commit 1e097b0abf34ba186362bbbd1aabc1f0cef76ae9
Author: Ashutosh Parkhi <86...@users.noreply.github.com>
AuthorDate: Mon Oct 9 09:33:34 2023 +0100

    [CMSIS-NN] Move CMSIS_5 from SHA to release based upgrade (#15747)
    
    This commit removes the SHA based checkouts for CMSIS core repo.
    Consequently, this solves the problems of missing SHA archives.
    CMSIS_5: release 5.9.0
    CMSIS-NN: release v4.1.0
---
 docker/install/ubuntu_install_cmsis.sh | 20 +++++++-------------
 1 file changed, 7 insertions(+), 13 deletions(-)

diff --git a/docker/install/ubuntu_install_cmsis.sh b/docker/install/ubuntu_install_cmsis.sh
index a21005d7a5..91e0a94197 100755
--- a/docker/install/ubuntu_install_cmsis.sh
+++ b/docker/install/ubuntu_install_cmsis.sh
@@ -35,21 +35,15 @@ fi
 INSTALLATION_PATH=$1
 shift
 
-# Create installation path directory
-mkdir -p "${INSTALLATION_PATH}"
-
-# Download and extract CMSIS
-CMSIS_SHA="51263182d16c92649a48144ba56c0945f9fce60e"
-CMSIS_SHASUM="d02573e5a8908c741d8558f01be2939aae6e940933ccb58123fa972864947759eefe5d554688db3910c8ed665a248b477b5e4458e12773385c67f8a2136b3b34"
-CMSIS_URL="http://github.com/ARM-software/CMSIS_5/archive/${CMSIS_SHA}.tar.gz"
-DOWNLOAD_PATH="/tmp/${CMSIS_SHA}.tar.gz"
+CMSIS_TAG="5.9.0"
+CMSIS_NN_TAG="v4.1.0"
 
-wget ${CMSIS_URL} -O "${DOWNLOAD_PATH}"
-echo "$CMSIS_SHASUM" ${DOWNLOAD_PATH} | sha512sum -c
-tar -xf "${DOWNLOAD_PATH}" -C "${INSTALLATION_PATH}" --strip-components=1
-touch "${INSTALLATION_PATH}"/"${CMSIS_SHA}".sha
+CMSIS_URL="https://github.com/ARM-software/CMSIS_5.git"
+git clone ${CMSIS_URL} --branch ${CMSIS_TAG} --single-branch ${INSTALLATION_PATH}
 
-CMSIS_NN_TAG="v4.1.0"
 CMSIS_NN_URL="https://github.com/ARM-software/CMSIS-NN.git"
 git clone ${CMSIS_NN_URL} --branch ${CMSIS_NN_TAG} --single-branch ${INSTALLATION_PATH}/CMSIS-NN
+
+touch "${INSTALLATION_PATH}"/"CMSIS_${CMSIS_TAG}".sha
+touch "${INSTALLATION_PATH}"/"CMSIS_NN_${CMSIS_NN_TAG}".sha
 echo "SUCCESS"