setup script tweak path (#2491)

* fix

* setup script

* chmod

* gdb

* use path instead of symlink
This commit is contained in:
Matthew Kennedy 2021-03-25 13:22:16 -07:00 committed by GitHub
parent 6f05bbc332
commit 33c97c490e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 15 deletions

17
firmware/setup_linux_environment.sh Executable file → Normal file
View File

@ -21,18 +21,5 @@ tar -xjvf arm-none-eabi-gcc.tar.bz2
# Delete downloaded image
rm arm-none-eabi-gcc.tar.bz2
# delete old symlinks
sudo rm -f /usr/bin/arm-none-eabi-gcc
sudo rm -f /usr/bin/arm-none-eabi-g++
sudo rm -f /usr/bin/arm-none-eabi-gdb
sudo rm -f /usr/bin/arm-none-eabi-size
sudo rm -f /usr/bin/arm-none-eabi-objdump
sudo rm -f /usr/bin/arm-none-eabi-objcopy
# Add symlinks to compiler - compilation doesn't use all the tools, just these 5, so that's all we need to link
sudo ln -s `pwd`/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc /usr/bin/arm-none-eabi-gcc
sudo ln -s `pwd`/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-g++ /usr/bin/arm-none-eabi-g++
sudo ln -s `pwd`/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gdb /usr/bin/arm-none-eabi-gdb
sudo ln -s `pwd`/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-size /usr/bin/arm-none-eabi-size
sudo ln -s `pwd`/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-objdump /usr/bin/arm-none-eabi-objdump
sudo ln -s `pwd`/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-objcopy /usr/bin/arm-none-eabi-objcopy
# Add the compiler to your path
echo 'export PATH=$PATH:$HOME/.rusefi-tools/gcc-arm-none-eabi-9-2020-q2-update/bin' >> ~/.profile