diff --git a/CrossCompile.sh b/CrossCompile.sh index c068ea1..5982fef 100755 --- a/CrossCompile.sh +++ b/CrossCompile.sh @@ -73,6 +73,14 @@ export CC_FULLPATH="${SYSROOT}/${CROSS_COMPILE}" export CC=${CROSS_COMPILE}gcc export CXX=${CROSS_COMPILE}g++ +export AS=arm-buildroot-linux-gnueabihf-as +export NM=arm-buildroot-linux-gnueabihf-nm +export OBJCOPY=arm-buildroot-linux-gnueabihf-objcopy +export STRIP=arm-buildroot-linux-gnueabihf-strip +#for contiki-ng +export LD_OVERRIDE=$CC + + #--- gnupru export PASM=pasm ##export PSYSROOT=/home/ru/pru/pru-gcc/bin diff --git a/MakeTOOLCHAIN.sh b/MakeTOOLCHAIN.sh index 134f9f1..0fecf27 100755 --- a/MakeTOOLCHAIN.sh +++ b/MakeTOOLCHAIN.sh @@ -89,6 +89,13 @@ export CC_FULLPATH="${SYSROOT}/${CROSS_COMPILE}" export CC=${CROSS_COMPILE}gcc export CXX=${CROSS_COMPILE}g++ +export AS=${CROSS_COMPILE}as +export NM==${CROSS_COMPILE}nm +export OBJCOPY==${CROSS_COMPILE}objcopy +export STRIP==${CROSS_COMPILE}strip +#for contiki-ng +export LD_OVERRIDE=${CROSS_COMPILE}gcc + if [ \$# -eq "0" ] then PROMPT_COMMAND='PS1="\[\033[0;31m\]CROSS CC:\[\033[0;32m\]\$PS1";unset PROMPT_COMMAND' bash ; reset