Skip to content

Commit 1e097b0

Browse files
authored
[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
1 parent dc53a6c commit 1e097b0

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

docker/install/ubuntu_install_cmsis.sh

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,15 @@ fi
3535
INSTALLATION_PATH=$1
3636
shift
3737

38-
# Create installation path directory
39-
mkdir -p "${INSTALLATION_PATH}"
40-
41-
# Download and extract CMSIS
42-
CMSIS_SHA="51263182d16c92649a48144ba56c0945f9fce60e"
43-
CMSIS_SHASUM="d02573e5a8908c741d8558f01be2939aae6e940933ccb58123fa972864947759eefe5d554688db3910c8ed665a248b477b5e4458e12773385c67f8a2136b3b34"
44-
CMSIS_URL="https://github.com/ARM-software/CMSIS_5/archive/${CMSIS_SHA}.tar.gz"
45-
DOWNLOAD_PATH="/tmp/${CMSIS_SHA}.tar.gz"
38+
CMSIS_TAG="5.9.0"
39+
CMSIS_NN_TAG="v4.1.0"
4640

47-
wget ${CMSIS_URL} -O "${DOWNLOAD_PATH}"
48-
echo "$CMSIS_SHASUM" ${DOWNLOAD_PATH} | sha512sum -c
49-
tar -xf "${DOWNLOAD_PATH}" -C "${INSTALLATION_PATH}" --strip-components=1
50-
touch "${INSTALLATION_PATH}"/"${CMSIS_SHA}".sha
41+
CMSIS_URL="https://github.com/ARM-software/CMSIS_5.git"
42+
git clone ${CMSIS_URL} --branch ${CMSIS_TAG} --single-branch ${INSTALLATION_PATH}
5143

52-
CMSIS_NN_TAG="v4.1.0"
5344
CMSIS_NN_URL="https://github.com/ARM-software/CMSIS-NN.git"
5445
git clone ${CMSIS_NN_URL} --branch ${CMSIS_NN_TAG} --single-branch ${INSTALLATION_PATH}/CMSIS-NN
46+
47+
touch "${INSTALLATION_PATH}"/"CMSIS_${CMSIS_TAG}".sha
48+
touch "${INSTALLATION_PATH}"/"CMSIS_NN_${CMSIS_NN_TAG}".sha
5549
echo "SUCCESS"

0 commit comments

Comments
 (0)