setup script tweak path (#2491)
* fix * setup script * chmod * gdb * use path instead of symlink
This commit is contained in:
parent
53a579abbf
commit
0e6f60ee8f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue