13 lines
450 B
Bash
13 lines
450 B
Bash
|
#!/bin/sh
|
||
|
# This script can be used to set the path to the cross-compile toolchain
|
||
|
# A default path is set if the path is not supplied via command line
|
||
|
if [ $# -eq 1 ];then
|
||
|
export PATH=$PATH:"$1"
|
||
|
elif [ $# -eq 2 ];then
|
||
|
export PATH=$PATH:"$1":"$2"
|
||
|
else
|
||
|
export PATH=$PATH:"${HOME}/opt/xPacks/@xpack-dev-tools/arm-none-eabi-gcc/10.2.1-1.1.2/.content/bin
|
||
|
"
|
||
|
export PATH=$PATH:"${HOME}/opt/xPacks/@xpack-dev-tools/openocd/0.10.0-15.1/.content/bin"
|
||
|
fi
|