Browse Source

Tools/setup/ubuntu.sh: Update to allow multiple host architectures

release/1.12
Fabrizio Romanelli 4 years ago committed by GitHub
parent
commit
853459c21b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      Tools/setup/ubuntu.sh

3
Tools/setup/ubuntu.sh

@ -13,6 +13,7 @@ @@ -13,6 +13,7 @@
INSTALL_NUTTX="true"
INSTALL_SIM="true"
INSTALL_ARCH=`uname -m`
# Parse arguments
for arg in "$@"
@ -149,7 +150,7 @@ if [[ $INSTALL_NUTTX == "true" ]]; then @@ -149,7 +150,7 @@ if [[ $INSTALL_NUTTX == "true" ]]; then
else
echo "Installing arm-none-eabi-gcc-${NUTTX_GCC_VERSION}";
wget -O /tmp/gcc-arm-none-eabi-${NUTTX_GCC_VERSION}-linux.tar.bz2 https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/${NUTTX_GCC_VERSION_SHORT}/gcc-arm-none-eabi-${NUTTX_GCC_VERSION}-x86_64-linux.tar.bz2 && \
wget -O /tmp/gcc-arm-none-eabi-${NUTTX_GCC_VERSION}-linux.tar.bz2 https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/${NUTTX_GCC_VERSION_SHORT}/gcc-arm-none-eabi-${NUTTX_GCC_VERSION}-${INSTALL_ARCH}-linux.tar.bz2 && \
sudo tar -jxf /tmp/gcc-arm-none-eabi-${NUTTX_GCC_VERSION}-linux.tar.bz2 -C /opt/;
# add arm-none-eabi-gcc to user's PATH

Loading…
Cancel
Save