0029-add-contiki-settings-for-crosscompile.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. diff --git a/CrossCompile.sh b/CrossCompile.sh
  2. index c068ea1..5982fef 100755
  3. --- a/CrossCompile.sh
  4. +++ b/CrossCompile.sh
  5. @@ -73,6 +73,14 @@ export CC_FULLPATH="${SYSROOT}/${CROSS_COMPILE}"
  6. export CC=${CROSS_COMPILE}gcc
  7. export CXX=${CROSS_COMPILE}g++
  8. +export AS=arm-buildroot-linux-gnueabihf-as
  9. +export NM=arm-buildroot-linux-gnueabihf-nm
  10. +export OBJCOPY=arm-buildroot-linux-gnueabihf-objcopy
  11. +export STRIP=arm-buildroot-linux-gnueabihf-strip
  12. +#for contiki-ng
  13. +export LD_OVERRIDE=$CC
  14. +
  15. +
  16. #--- gnupru
  17. export PASM=pasm
  18. ##export PSYSROOT=/home/ru/pru/pru-gcc/bin
  19. diff --git a/MakeTOOLCHAIN.sh b/MakeTOOLCHAIN.sh
  20. index 134f9f1..0fecf27 100755
  21. --- a/MakeTOOLCHAIN.sh
  22. +++ b/MakeTOOLCHAIN.sh
  23. @@ -89,6 +89,13 @@ export CC_FULLPATH="${SYSROOT}/${CROSS_COMPILE}"
  24. export CC=${CROSS_COMPILE}gcc
  25. export CXX=${CROSS_COMPILE}g++
  26. +export AS=${CROSS_COMPILE}as
  27. +export NM==${CROSS_COMPILE}nm
  28. +export OBJCOPY==${CROSS_COMPILE}objcopy
  29. +export STRIP==${CROSS_COMPILE}strip
  30. +#for contiki-ng
  31. +export LD_OVERRIDE=${CROSS_COMPILE}gcc
  32. +
  33. if [ \$# -eq "0" ]
  34. then
  35. PROMPT_COMMAND='PS1="\[\033[0;31m\]CROSS CC:\[\033[0;32m\]\$PS1";unset PROMPT_COMMAND' bash ; reset