feat ✨: Update installation process for MSP430 toolchain
Some checks failed
CC2530 Zigbee Firmware Build / build (push) Failing after 27s
Some checks failed
CC2530 Zigbee Firmware Build / build (push) Failing after 27s
- The main goal of these changes is to update and modify the installation process of the MSP430 toolchain.
This commit is contained in:
@@ -31,23 +31,11 @@ jobs:
|
|||||||
# Add the MSP430 tools repository and install the tools
|
# Add the MSP430 tools repository and install the tools
|
||||||
sudo apt-get install -y wget p7zip-full
|
sudo apt-get install -y wget p7zip-full
|
||||||
|
|
||||||
# Download the MSP430 GCC toolchain from TI's official link
|
wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-LlCjWuAbzH/9.3.1.2/msp430-gcc-9.3.1.11_linux64.tar.bz2
|
||||||
wget 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
|
tar -xjf msp430-gcc-9.3.1.11_linux64.tar.bz2 -C /opt
|
||||||
|
|
||||||
# Extract the .7z installer
|
echo "export PATH=/opt/msp430-elf/bin:$PATH" >> ~/.bashrc
|
||||||
7z x msp430-gcc-full-linux-x64-installer-9.3.1.2.7z -o/msp430-gcc
|
source ~/.bashrc
|
||||||
|
|
||||||
# Change directory to the extracted location
|
|
||||||
cd /msp430-gcc
|
|
||||||
|
|
||||||
# Make the .run installer executable
|
|
||||||
chmod +x msp430-gcc-full-linux-x64-installer-9.3.1.2.run
|
|
||||||
|
|
||||||
# Run the installer in unattended mode (no user interaction)
|
|
||||||
sudo ./msp430-gcc-full-linux-x64-installer-9.3.1.2.run --mode unattended --prefix /usr/local
|
|
||||||
|
|
||||||
# Add /usr/local/bin to the PATH to ensure msp430-gcc is accessible
|
|
||||||
echo "/usr/local/bin" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
# You would also install the necessary firmware building tools if they are available
|
# You would also install the necessary firmware building tools if they are available
|
||||||
# or set up cross-compilation for ARM
|
# or set up cross-compilation for ARM
|
||||||
|
|||||||
Reference in New Issue
Block a user