Skip to content

Commit 62bd622

Browse files
Update download locations to outside repository content (#1280)
Update curl command to download in a non user accessible folder
1 parent 2615dcd commit 62bd622

File tree

3 files changed

+51
-25
lines changed

3 files changed

+51
-25
lines changed

.github/workflows/coverity_scan.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,22 @@ jobs:
4242
# ${{ env.stepName }}
4343
echo -e "::group::${{ env.bashInfo }} ${{ env.stepName }} ${{ env.bashEnd }}"
4444
45-
wget -nv -qO- https://scan.coverity.com/download/linux64 --post-data "token=${COVERITY_TOKEN}&project=FreeRTOS-Kernel" | tar -zx --one-top-level=cov_scan --strip-components 1
46-
echo "cov_scan_path=$(pwd)/cov_scan/bin" >> $GITHUB_ENV
47-
48-
echo "::endgroup::"
49-
echo -e "${{ env.bashPass }} ${{ env.stepName }} ${{ env.bashEnd }} "
45+
wget -nv -q -O "$HOME/cov-analysis.tar.gz" https://scan.coverity.com/download/linux64 --post-data="token=${COVERITY_TOKEN}&project=FreeRTOS-Kernel"
46+
47+
EXPECTED_MD5="e4418004b073140d67390cffba79c3b2"
48+
GENERATED_MD5=$(md5sum "$HOME/cov-analysis.tar.gz" | awk '{print $1}')
49+
50+
if [ "$GENERATED_MD5" = "$EXPECTED_MD5" ]; then
51+
tar -zxf "$HOME/cov-analysis.tar.gz" --one-top-level=cov_scan -C "$HOME"
52+
echo "cov_scan_path=$HOME/cov_scan/bin" >> $GITHUB_ENV
53+
sudo rm -f "$HOME/cov-analysis.tar.gz"
54+
echo "::endgroup::"
55+
echo -e "${{ env.bashPass }} ${{ env.stepName }} ${{ env.bashEnd }} "
56+
else
57+
echo -e "${{ env.bashFail }} MD5 checksum verification failed for cov-analysis.tar.gz ${{ env.bashEnd }}"
58+
echo -e "${{ env.bashFail }} ${{ env.stepName }} ${{ env.bashEnd }}"
59+
exit -1
60+
fi
5061
5162
- env:
5263
stepName: Coverity Build

.github/workflows/kernel-demos.yml

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,27 @@ jobs:
156156
run: |
157157
# ${{ env.stepName }}
158158
echo -e "::group::${{ env.bashInfo }} ${{ env.stepName }} ${{ env.bashEnd }}"
159-
curl -L -O https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-LlCjWuAbzH/9.3.1.2/msp430-gcc-full-linux-x64-installer-9.3.1.2.7z
160159
sudo apt update -y
161160
sudo apt install -y p7zip-full
162-
7z x ./msp430-gcc-full-linux-x64-installer-9.3.1.2.7z
163-
chmod +x ./msp430-gcc-full-linux-x64-installer-9.3.1.2.run
164-
sudo ./msp430-gcc-full-linux-x64-installer-9.3.1.2.run --prefix /usr/bin/msp430-gcc --mode unattended
165-
echo "::endgroup::"
166-
echo -e "${{ env.bashPass }} ${{ env.stepName }} ${{ env.bashEnd }}"
161+
pushd $HOME
162+
curl -L -o msp430-gcc-full-linux-x64-installer-9.3.1.2.7z https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-LlCjWuAbzH/9.3.1.2/msp430-gcc-full-linux-x64-installer-9.3.1.2.7z
163+
164+
EXPECTED_MD5="2db2f99b4cd5c541ca0389ee20c67527"
165+
GENERATED_MD5=$(md5sum msp430-gcc-full-linux-x64-installer-9.3.1.2.7z | awk '{print $1}')
166+
167+
if [ "$GENERATED_MD5" = "$EXPECTED_MD5" ]; then
168+
7z x ./msp430-gcc-full-linux-x64-installer-9.3.1.2.7z
169+
chmod +x ./msp430-gcc-full-linux-x64-installer-9.3.1.2.run
170+
sudo ./msp430-gcc-full-linux-x64-installer-9.3.1.2.run --prefix /usr/bin/msp430-gcc --mode unattended
171+
echo "::endgroup::"
172+
popd
173+
echo -e "${{ env.bashPass }} ${{ env.stepName }} ${{ env.bashEnd }}"
174+
else
175+
popd
176+
echo -e "${{ env.bashFail }} MD5 checksum verification failed for msp430-gcc-full-linux-x64-installer-9.3.1.2.7z ${{ env.bashEnd }}"
177+
echo -e "${{ env.bashFail }} ${{ env.stepName }} ${{ env.bashEnd }}"
178+
exit -1
179+
fi
167180
168181
- name: Build msp430_GCC Demo
169182
shell: bash
@@ -211,21 +224,23 @@ jobs:
211224
sudo apt install -y autogen gawk libgmp-dev libmpc-dev libmpfr-dev
212225
sudo apt install -y patchutils sharutils zlib1g-dev autoconf2.64
213226
227+
pushd $HOME
214228
# Download the mb-gcc toolchain from github
215-
curl -L -O https://github.com/mdednev/mb-gcc/releases/download/2021-0623%2B2/binutils-microblaze_2.35-2021-0623+1_amd64.deb;
216-
curl -L -O https://github.com/mdednev/mb-gcc/releases/download/2021-0623%2B2/gcc-microblaze_10.2.0-2021-0623+2_amd64.deb;
217-
curl -L -O https://github.com/mdednev/mb-gcc/releases/download/2021-0623%2B2/libnewlib-microblaze-dev_3.3.0-2021-0623+3_all.deb;
218-
curl -L -O https://github.com/mdednev/mb-gcc/releases/download/2021-0623%2B2/libnewlib-microblaze-doc_3.3.0-2021-0623+3_all.deb;
219-
curl -L -O https://github.com/mdednev/mb-gcc/releases/download/2021-0623%2B2/libnewlib-microblaze_3.3.0-2021-0623+3_all.deb;
220-
curl -L -O https://github.com/mdednev/mb-gcc/releases/download/2021-0623%2B2/newlib-source_3.3.0-2021-0623+3_all.deb;
229+
curl -L -o binutils-microblaze.deb https://github.com/mdednev/mb-gcc/releases/download/2021-0623%2B2/binutils-microblaze_2.35-2021-0623+1_amd64.deb;
230+
curl -L -o gcc-microblaze.deb https://github.com/mdednev/mb-gcc/releases/download/2021-0623%2B2/gcc-microblaze_10.2.0-2021-0623+2_amd64.deb;
231+
curl -L -o libnewlib-microblaze-dev.deb https://github.com/mdednev/mb-gcc/releases/download/2021-0623%2B2/libnewlib-microblaze-dev_3.3.0-2021-0623+3_all.deb;
232+
curl -L -o libnewlib-microblaze-doc.deb https://github.com/mdednev/mb-gcc/releases/download/2021-0623%2B2/libnewlib-microblaze-doc_3.3.0-2021-0623+3_all.deb;
233+
curl -L -o libnewlib-microblaze.deb https://github.com/mdednev/mb-gcc/releases/download/2021-0623%2B2/libnewlib-microblaze_3.3.0-2021-0623+3_all.deb;
234+
curl -L -o newlib-source.deb https://github.com/mdednev/mb-gcc/releases/download/2021-0623%2B2/newlib-source_3.3.0-2021-0623+3_all.deb;
235+
popd
221236
222237
# Install the packages for the toolchain
223-
sudo apt install -y ./binutils-microblaze*.deb;
224-
sudo apt install -y ./gcc-microblaze*.deb;
225-
sudo apt install -y ./libnewlib-microblaze-dev*.deb;
226-
sudo apt install -y ./libnewlib-microblaze-doc*.deb;
227-
sudo apt install -y ./libnewlib-microblaze*.deb;
228-
sudo apt install -y ./newlib-source*.deb;
238+
sudo apt install -y $HOME/binutils-microblaze.deb;
239+
sudo apt install -y $HOME/gcc-microblaze.deb;
240+
sudo apt install -y $HOME/libnewlib-microblaze-dev.deb;
241+
sudo apt install -y $HOME/libnewlib-microblaze-doc.deb;
242+
sudo apt install -y $HOME/libnewlib-microblaze.deb;
243+
sudo apt install -y $HOME/newlib-source.deb;
229244
230245
# Validate that the toolchain is in the path and can be called
231246
which mb-gcc

portable/ThirdParty/GCC/ARM_TFM/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ Kernel runs in the Non-Secure Side.
5252
The setting of this macro is decided by the setting in Secure Side which is platform-specific.
5353
If the Secure Side enables Non-Secure access to FPU, then this macro can be configured as 0 or 1. Otherwise, this macro can only be configured as 0.
5454
Please note that Cortex-M23 does not support FPU.
55-
Please refer to [TF-M documentation](https://tf-m-user-guide.trustedfirmware.org/integration_guide/tfm_fpu_support.html) for FPU usage on the Non-Secure side.
55+
Please refer to [TF-M documentation](https://trustedfirmware-m.readthedocs.io/en/latest/integration_guide/tfm_fpu_support.html) for FPU usage on the Non-Secure side.
5656

5757
* `configENABLE_MVE`
5858
The setting of this macro is decided by the setting in Secure Side which is platform-specific.
5959
If the Secure Side enables Non-Secure access to MVE, then this macro can be configured as 0 or 1. Otherwise, this macro can only be configured as 0.
6060
Please note that only Cortex-M55 and Cortex-M85 support MVE.
61-
Please refer to [TF-M documentation](https://tf-m-user-guide.trustedfirmware.org/integration_guide/tfm_fpu_support.html) for MVE usage on the Non-Secure side.
61+
Please refer to [TF-M documentation](https://trustedfirmware-m.readthedocs.io/en/latest/integration_guide/tfm_fpu_support.html) for MVE usage on the Non-Secure side.
6262

6363
* `configENABLE_TRUSTZONE`
6464
This macro should be configured as 0 because TF-M doesn't use the secure context management function of FreeRTOS. New secure context management might be introduced when TF-M supports multiple secure context.

0 commit comments

Comments
 (0)