From 1e368791267c48b0e6c672ad3ed2ba9521740a70 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 5 Oct 2012 23:01:51 +0000 Subject: [PATCH] Add buildroot support for binutils-2.22 and gcc-4.6.3; all buildroot tools are not called abc-nuttx-elf instead of abc-elf git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5213 42af7a65-404d-4744-a932-0658087f49c3 --- misc/buildroot/ChangeLog | 5 +- misc/buildroot/Config.in | 3 +- misc/buildroot/configs/arm-defconfig | 2 +- .../configs/arm7tdmi-defconfig-4.2.4 | 2 +- .../configs/arm7tdmi-defconfig-4.3.3 | 2 +- .../buildroot/configs/arm920t-defconfig-4.2.4 | 2 +- .../buildroot/configs/arm920t-defconfig-4.3.3 | 2 +- .../buildroot/configs/arm926t-defconfig-4.2.4 | 2 +- .../buildroot/configs/arm926t-defconfig-4.3.3 | 2 +- .../configs/arm926t-defconfig-nxflat | 2 +- misc/buildroot/configs/avr-defconfig-4.3.3 | 2 +- misc/buildroot/configs/avr-defconfig-4.5.2 | 2 +- misc/buildroot/configs/bfin-defconfig-4.2.4 | 2 +- .../configs/cortexm3-defconfig-4.3.3 | 2 +- .../configs/cortexm3-defconfig-nxflat | 2 +- .../configs/cortexm3-eabi-defconfig-4.6.3 | 123 ++++ misc/buildroot/configs/h8300_defconfig | 2 +- misc/buildroot/configs/i486-defconfig-4.3.3 | 2 +- misc/buildroot/configs/m32c-defconfig-4.2.4 | 2 +- misc/buildroot/configs/m32c-defconfig-4.3.3 | 2 +- misc/buildroot/configs/m68hc11-config | 2 +- misc/buildroot/configs/m68hc12-config-3.4.6 | 2 +- misc/buildroot/configs/m68hc12-config-4.3.3 | 2 +- misc/buildroot/configs/m68k-defconfig | 2 +- misc/buildroot/configs/m9s12x-config-3.3.6 | 2 +- misc/buildroot/configs/sh-defconfig | 2 +- .../toolchain/binutils/2.22/120-sh-conf.patch | 29 + .../2.22/300-001_ld_makefile_patch.patch | 24 + .../2.22/300-012_check_ldrunpath_length.patch | 21 + .../binutils/2.22/999-ppc-textrels.patch | 80 +++ misc/buildroot/toolchain/binutils/Config.in | 5 + .../4.6.3/305-libmudflap-susv3-legacy.patch | 49 ++ .../gcc/4.6.3/810-arm-softfloat-libgcc.patch | 38 + .../gcc/4.6.3/820-arm-unbreak-armv4t.patch | 14 + .../gcc/4.6.3/900-nuttx-nolibstdc.patch | 13 + ...werpc-link-with-math-lib.patch.conditional | 125 ++++ misc/buildroot/toolchain/gcc/Config.in | 6 + misc/buildroot/toolchain/gdb/Config.in | 5 + misc/buildroot/toolchain/gdb/gdb.mk | 2 + nuttx/Documentation/NuttX.html | 34 +- nuttx/Documentation/NuttXLinks.html | 1 + nuttx/Documentation/NuttXNxFlat.html | 4 +- nuttx/Documentation/NuttXRelated.html | 2 +- nuttx/Documentation/NuttxPortingGuide.html | 18 +- nuttx/Documentation/UsbTrace.html | 664 +++++++++--------- nuttx/configs/Kconfig | 26 +- nuttx/configs/README.txt | 24 +- nuttx/configs/amber/hello/Make.defs | 2 +- nuttx/configs/c5471evm/httpd/Make.defs | 2 +- nuttx/configs/c5471evm/nettest/Make.defs | 2 +- nuttx/configs/c5471evm/nsh/Make.defs | 2 +- nuttx/configs/c5471evm/ostest/Make.defs | 2 +- .../configs/compal_e88/nsh_highram/Make.defs | 2 +- .../compal_e99/nsh_compalram/Make.defs | 2 +- .../configs/compal_e99/nsh_highram/Make.defs | 2 +- nuttx/configs/demo9s12ne64/ostest/Make.defs | 2 +- nuttx/configs/ea3131/README.txt | 2 +- nuttx/configs/ea3131/nsh/Make.defs | 2 +- nuttx/configs/ea3131/ostest/Make.defs | 2 +- nuttx/configs/ea3131/pgnsh/Make.defs | 2 +- nuttx/configs/ea3131/usbserial/Make.defs | 2 +- nuttx/configs/ea3131/usbstorage/Make.defs | 2 +- nuttx/configs/ea3152/README.txt | 2 +- nuttx/configs/ea3152/ostest/Make.defs | 2 +- nuttx/configs/eagle100/README.txt | 2 +- nuttx/configs/eagle100/httpd/Make.defs | 6 +- nuttx/configs/eagle100/nettest/Make.defs | 6 +- nuttx/configs/eagle100/nsh/Make.defs | 6 +- nuttx/configs/eagle100/nxflat/Make.defs | 6 +- nuttx/configs/eagle100/ostest/Make.defs | 6 +- nuttx/configs/eagle100/thttpd/Make.defs | 6 +- nuttx/configs/ekk-lm3s9b96/nsh/Make.defs | 4 +- nuttx/configs/ekk-lm3s9b96/ostest/Make.defs | 4 +- nuttx/configs/fire-stm32v2/nsh/Make.defs | 6 +- nuttx/configs/hymini-stm32v/buttons/Make.defs | 4 +- nuttx/configs/hymini-stm32v/nsh/Make.defs | 4 +- nuttx/configs/hymini-stm32v/nsh2/Make.defs | 4 +- nuttx/configs/hymini-stm32v/nx/Make.defs | 4 +- nuttx/configs/hymini-stm32v/nxlines/Make.defs | 4 +- .../configs/hymini-stm32v/usbserial/Make.defs | 4 +- .../hymini-stm32v/usbstorage/Make.defs | 4 +- nuttx/configs/kwikstik-k40/ostest/Make.defs | 4 +- nuttx/configs/lincoln60/nsh/Make.defs | 4 +- nuttx/configs/lincoln60/ostest/Make.defs | 4 +- nuttx/configs/lm3s6432-s2e/nsh/Make.defs | 4 +- nuttx/configs/lm3s6432-s2e/ostest/Make.defs | 4 +- nuttx/configs/lm3s6965-ek/nsh/Make.defs | 4 +- nuttx/configs/lm3s6965-ek/nx/Make.defs | 4 +- nuttx/configs/lm3s6965-ek/ostest/Make.defs | 4 +- nuttx/configs/lm3s8962-ek/nsh/Make.defs | 4 +- nuttx/configs/lm3s8962-ek/nx/Make.defs | 4 +- nuttx/configs/lm3s8962-ek/ostest/Make.defs | 4 +- nuttx/configs/lpc4330-xplorer/nsh/Make.defs | 6 +- .../configs/lpc4330-xplorer/ostest/Make.defs | 6 +- .../lpcxpresso-lpc1768/dhcpd/Make.defs | 4 +- .../configs/lpcxpresso-lpc1768/nsh/Make.defs | 4 +- nuttx/configs/lpcxpresso-lpc1768/nx/Make.defs | 4 +- .../lpcxpresso-lpc1768/ostest/Make.defs | 4 +- .../lpcxpresso-lpc1768/thttpd/Make.defs | 4 +- .../lpcxpresso-lpc1768/usbstorage/Make.defs | 4 +- nuttx/configs/m68332evb/Make.defs | 2 +- nuttx/configs/m68332evb/doc/m68k-defconfig | 2 +- nuttx/configs/mbed/hidkbd/Make.defs | 4 +- nuttx/configs/mbed/nsh/Make.defs | 4 +- nuttx/configs/mcu123-lpc214x/README.txt | 2 +- .../mcu123-lpc214x/composite/Make.defs | 6 +- nuttx/configs/mcu123-lpc214x/nsh/Make.defs | 8 +- nuttx/configs/mcu123-lpc214x/ostest/Make.defs | 8 +- .../mcu123-lpc214x/usbserial/Make.defs | 8 +- .../mcu123-lpc214x/usbstorage/Make.defs | 8 +- nuttx/configs/micropendous3/README.txt | 2 +- nuttx/configs/micropendous3/hello/Make.defs | 2 +- nuttx/configs/mx1ads/ostest/Make.defs | 2 +- nuttx/configs/ne64badge/ostest/Make.defs | 2 +- nuttx/configs/ntosd-dm320/nettest/Make.defs | 2 +- nuttx/configs/ntosd-dm320/nsh/Make.defs | 2 +- nuttx/configs/ntosd-dm320/ostest/Make.defs | 2 +- nuttx/configs/ntosd-dm320/poll/Make.defs | 2 +- nuttx/configs/ntosd-dm320/thttpd/Make.defs | 2 +- nuttx/configs/ntosd-dm320/udp/Make.defs | 2 +- nuttx/configs/ntosd-dm320/uip/Make.defs | 2 +- nuttx/configs/nucleus2g/nsh/Make.defs | 4 +- nuttx/configs/nucleus2g/ostest/Make.defs | 4 +- nuttx/configs/nucleus2g/usbserial/Make.defs | 4 +- nuttx/configs/nucleus2g/usbstorage/Make.defs | 4 +- nuttx/configs/olimex-lpc1766stk/README.txt | 2 +- .../configs/olimex-lpc1766stk/ftpc/Make.defs | 4 +- .../olimex-lpc1766stk/hidkbd/Make.defs | 4 +- .../olimex-lpc1766stk/nettest/Make.defs | 4 +- nuttx/configs/olimex-lpc1766stk/nsh/Make.defs | 4 +- nuttx/configs/olimex-lpc1766stk/nx/Make.defs | 4 +- .../olimex-lpc1766stk/ostest/Make.defs | 4 +- .../olimex-lpc1766stk/slip-httpd/Make.defs | 4 +- .../olimex-lpc1766stk/thttpd/Make.defs | 4 +- .../olimex-lpc1766stk/usbserial/Make.defs | 4 +- .../olimex-lpc1766stk/usbstorage/Make.defs | 4 +- .../configs/olimex-lpc1766stk/wlan/Make.defs | 4 +- nuttx/configs/olimex-lpc2378/nsh/Make.defs | 4 +- nuttx/configs/olimex-lpc2378/ostest/Make.defs | 4 +- nuttx/configs/olimex-stm32-p107/nsh/Make.defs | 4 +- .../olimex-stm32-p107/ostest/Make.defs | 4 +- nuttx/configs/olimex-strp711/README.txt | 6 +- .../configs/olimex-strp711/nettest/Make.defs | 8 +- nuttx/configs/olimex-strp711/nsh/Make.defs | 8 +- nuttx/configs/olimex-strp711/ostest/Make.defs | 8 +- nuttx/configs/qemu-i486/nsh/Make.defs | 2 +- nuttx/configs/qemu-i486/ostest/Make.defs | 2 +- nuttx/configs/sam3u-ek/knsh/Make.defs | 4 +- nuttx/configs/sam3u-ek/nsh/Make.defs | 4 +- nuttx/configs/sam3u-ek/nx/Make.defs | 4 +- nuttx/configs/sam3u-ek/ostest/Make.defs | 4 +- nuttx/configs/sam3u-ek/touchscreen/Make.defs | 4 +- nuttx/configs/shenzhou/nsh/Make.defs | 6 +- nuttx/configs/shenzhou/nxwm/Make.defs | 6 +- nuttx/configs/skp16c26/README.txt | 224 +++--- nuttx/configs/skp16c26/ostest/Make.defs | 2 +- nuttx/configs/stm3210e-eval/RIDE/Make.defs | 4 +- nuttx/configs/stm3210e-eval/buttons/Make.defs | 4 +- .../configs/stm3210e-eval/composite/Make.defs | 4 +- nuttx/configs/stm3210e-eval/nsh/Make.defs | 4 +- nuttx/configs/stm3210e-eval/nsh2/Make.defs | 4 +- nuttx/configs/stm3210e-eval/nx/Make.defs | 4 +- .../configs/stm3210e-eval/nxconsole/Make.defs | 4 +- nuttx/configs/stm3210e-eval/nxlines/Make.defs | 4 +- nuttx/configs/stm3210e-eval/nxtext/Make.defs | 4 +- nuttx/configs/stm3210e-eval/ostest/Make.defs | 4 +- nuttx/configs/stm3210e-eval/pm/Make.defs | 4 +- .../configs/stm3210e-eval/usbserial/Make.defs | 4 +- .../stm3210e-eval/usbstorage/Make.defs | 4 +- nuttx/configs/stm3220g-eval/dhcpd/Make.defs | 6 +- nuttx/configs/stm3220g-eval/nettest/Make.defs | 6 +- nuttx/configs/stm3220g-eval/nsh/Make.defs | 6 +- nuttx/configs/stm3220g-eval/nsh2/Make.defs | 6 +- nuttx/configs/stm3220g-eval/nxwm/Make.defs | 6 +- nuttx/configs/stm3220g-eval/ostest/Make.defs | 6 +- nuttx/configs/stm3220g-eval/telnetd/Make.defs | 6 +- nuttx/configs/stm3240g-eval/dhcpd/Make.defs | 6 +- .../configs/stm3240g-eval/discover/Make.defs | 6 +- nuttx/configs/stm3240g-eval/nettest/Make.defs | 6 +- nuttx/configs/stm3240g-eval/nsh/Make.defs | 6 +- nuttx/configs/stm3240g-eval/nsh2/Make.defs | 6 +- .../configs/stm3240g-eval/nxconsole/Make.defs | 6 +- nuttx/configs/stm3240g-eval/nxwm/Make.defs | 6 +- nuttx/configs/stm3240g-eval/ostest/Make.defs | 6 +- nuttx/configs/stm3240g-eval/telnetd/Make.defs | 6 +- .../configs/stm3240g-eval/webserver/Make.defs | 6 +- nuttx/configs/stm3240g-eval/xmlrpc/Make.defs | 6 +- nuttx/configs/stm32f4discovery/nsh/Make.defs | 6 +- .../stm32f4discovery/nxlines/Make.defs | 6 +- .../configs/stm32f4discovery/ostest/Make.defs | 6 +- nuttx/configs/stm32f4discovery/pm/Make.defs | 6 +- nuttx/configs/teensy/hello/Make.defs | 2 +- nuttx/configs/teensy/nsh/Make.defs | 2 +- nuttx/configs/teensy/usbstorage/Make.defs | 2 +- nuttx/configs/twr-k60n512/nsh/Make.defs | 4 +- nuttx/configs/twr-k60n512/ostest/Make.defs | 4 +- nuttx/configs/us7032evb1/nsh/Make.defs | 2 +- nuttx/configs/us7032evb1/ostest/Make.defs | 2 +- nuttx/configs/vsn/nsh/Make.defs | 4 +- 199 files changed, 1372 insertions(+), 833 deletions(-) create mode 100644 misc/buildroot/configs/cortexm3-eabi-defconfig-4.6.3 create mode 100755 misc/buildroot/toolchain/binutils/2.22/120-sh-conf.patch create mode 100755 misc/buildroot/toolchain/binutils/2.22/300-001_ld_makefile_patch.patch create mode 100755 misc/buildroot/toolchain/binutils/2.22/300-012_check_ldrunpath_length.patch create mode 100755 misc/buildroot/toolchain/binutils/2.22/999-ppc-textrels.patch create mode 100755 misc/buildroot/toolchain/gcc/4.6.3/305-libmudflap-susv3-legacy.patch create mode 100755 misc/buildroot/toolchain/gcc/4.6.3/810-arm-softfloat-libgcc.patch create mode 100755 misc/buildroot/toolchain/gcc/4.6.3/820-arm-unbreak-armv4t.patch create mode 100755 misc/buildroot/toolchain/gcc/4.6.3/900-nuttx-nolibstdc.patch create mode 100755 misc/buildroot/toolchain/gcc/4.6.3/powerpc-link-with-math-lib.patch.conditional diff --git a/misc/buildroot/ChangeLog b/misc/buildroot/ChangeLog index 9c22edf036..0d896872f0 100644 --- a/misc/buildroot/ChangeLog +++ b/misc/buildroot/ChangeLog @@ -115,5 +115,8 @@ buildroot-1.11 2011-xx-xx - there is some assembler error when compiling gcc for arm, gcc bugzilla 43999 - you can't build nuttx for cortex m3/m4 because of a missing instruction - in ethe assembler, binutils bugzilla 12296 + in the assembler, binutils bugzilla 12296 + * Add support for binutils 2.22 and GCC 4.6.3. + * Change name of all tools from xxx-elf to xxx-nuttx-elf + * Added an ARM EABI GCC 4.6.3 configuration (tool name is arm-nuttx-eabi-). diff --git a/misc/buildroot/Config.in b/misc/buildroot/Config.in index d5c5fbfe7b..fe33b158de 100644 --- a/misc/buildroot/Config.in +++ b/misc/buildroot/Config.in @@ -343,7 +343,8 @@ config BR2_GNU_BUILD_SUFFIX config BR2_GNU_TARGET_SUFFIX string "GNU target suffix" - default "elf" + default "nuttx-elf" if !BR2_ARM_EABI + default "nuttx-eabi" if BR2_ARM_EABI help The string used to pass to configure scripts via the --target= option. Just specify the suffix here, the leading diff --git a/misc/buildroot/configs/arm-defconfig b/misc/buildroot/configs/arm-defconfig index bcdab8c899..81a8508fe8 100644 --- a/misc/buildroot/configs/arm-defconfig +++ b/misc/buildroot/configs/arm-defconfig @@ -58,7 +58,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/arm7tdmi-defconfig-4.2.4 b/misc/buildroot/configs/arm7tdmi-defconfig-4.2.4 index 00f05bc9c0..093cc16671 100644 --- a/misc/buildroot/configs/arm7tdmi-defconfig-4.2.4 +++ b/misc/buildroot/configs/arm7tdmi-defconfig-4.2.4 @@ -60,7 +60,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/arm7tdmi-defconfig-4.3.3 b/misc/buildroot/configs/arm7tdmi-defconfig-4.3.3 index 9207ad3e24..7e97a77d67 100644 --- a/misc/buildroot/configs/arm7tdmi-defconfig-4.3.3 +++ b/misc/buildroot/configs/arm7tdmi-defconfig-4.3.3 @@ -60,7 +60,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/arm920t-defconfig-4.2.4 b/misc/buildroot/configs/arm920t-defconfig-4.2.4 index 4abf368130..ae933fcec5 100644 --- a/misc/buildroot/configs/arm920t-defconfig-4.2.4 +++ b/misc/buildroot/configs/arm920t-defconfig-4.2.4 @@ -60,7 +60,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/arm920t-defconfig-4.3.3 b/misc/buildroot/configs/arm920t-defconfig-4.3.3 index f6080a03cb..7f9f6b03f2 100644 --- a/misc/buildroot/configs/arm920t-defconfig-4.3.3 +++ b/misc/buildroot/configs/arm920t-defconfig-4.3.3 @@ -61,7 +61,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/arm926t-defconfig-4.2.4 b/misc/buildroot/configs/arm926t-defconfig-4.2.4 index 1c5ae784d7..26b266f0e0 100644 --- a/misc/buildroot/configs/arm926t-defconfig-4.2.4 +++ b/misc/buildroot/configs/arm926t-defconfig-4.2.4 @@ -60,7 +60,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/arm926t-defconfig-4.3.3 b/misc/buildroot/configs/arm926t-defconfig-4.3.3 index 3d3d7d9f71..b72a124512 100644 --- a/misc/buildroot/configs/arm926t-defconfig-4.3.3 +++ b/misc/buildroot/configs/arm926t-defconfig-4.3.3 @@ -60,7 +60,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="arm-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # BR2_DEPRECATED is not set diff --git a/misc/buildroot/configs/arm926t-defconfig-nxflat b/misc/buildroot/configs/arm926t-defconfig-nxflat index f0ddd17bc8..d449ef4aba 100644 --- a/misc/buildroot/configs/arm926t-defconfig-nxflat +++ b/misc/buildroot/configs/arm926t-defconfig-nxflat @@ -60,7 +60,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="arm-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # BR2_DEPRECATED is not set diff --git a/misc/buildroot/configs/avr-defconfig-4.3.3 b/misc/buildroot/configs/avr-defconfig-4.3.3 index a597e5e3b3..a2ea9feb1e 100644 --- a/misc/buildroot/configs/avr-defconfig-4.3.3 +++ b/misc/buildroot/configs/avr-defconfig-4.3.3 @@ -41,7 +41,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/avr-defconfig-4.5.2 b/misc/buildroot/configs/avr-defconfig-4.5.2 index e0ebe05596..465376fd02 100644 --- a/misc/buildroot/configs/avr-defconfig-4.5.2 +++ b/misc/buildroot/configs/avr-defconfig-4.5.2 @@ -41,7 +41,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/bfin-defconfig-4.2.4 b/misc/buildroot/configs/bfin-defconfig-4.2.4 index a88b9f2696..9cae0a8d9c 100644 --- a/misc/buildroot/configs/bfin-defconfig-4.2.4 +++ b/misc/buildroot/configs/bfin-defconfig-4.2.4 @@ -40,7 +40,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/cortexm3-defconfig-4.3.3 b/misc/buildroot/configs/cortexm3-defconfig-4.3.3 index 36a441c693..664000a168 100644 --- a/misc/buildroot/configs/cortexm3-defconfig-4.3.3 +++ b/misc/buildroot/configs/cortexm3-defconfig-4.3.3 @@ -60,7 +60,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/cortexm3-defconfig-nxflat b/misc/buildroot/configs/cortexm3-defconfig-nxflat index ac247703ac..263126d1fa 100644 --- a/misc/buildroot/configs/cortexm3-defconfig-nxflat +++ b/misc/buildroot/configs/cortexm3-defconfig-nxflat @@ -60,7 +60,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/cortexm3-eabi-defconfig-4.6.3 b/misc/buildroot/configs/cortexm3-eabi-defconfig-4.6.3 new file mode 100644 index 0000000000..7839f667b7 --- /dev/null +++ b/misc/buildroot/configs/cortexm3-eabi-defconfig-4.6.3 @@ -0,0 +1,123 @@ +# +# Automatically generated make config: don't edit +# +BR2_HAVE_DOT_CONFIG=y +# BR2_alpha is not set +BR2_arm=y +# BR2_armeb is not set +# BR2_avr is not set +# BR2_avr32 is not set +# BR2_bfin is not set +# BR2_cris is not set +# BR2_i386 is not set +# BR2_m32c is not set +# BR2_m68k is not set +# BR2_m68hc11 is not set +# BR2_m68hc12 is not set +# BR2_m9s12x is not set +# BR2_mips is not set +# BR2_mipsel is not set +# BR2_nios2 is not set +# BR2_powerpc is not set +# BR2_sh is not set +# BR2_sh64 is not set +# BR2_h8300 is not set +# BR2_sparc is not set +# BR2_x86_64 is not set +# BR2_generic_arm is not set +# BR2_arm610 is not set +# BR2_arm7tdmi is not set +# BR2_arm710 is not set +# BR2_arm720t is not set +# BR2_arm740t is not set +# BR2_arm920t is not set +# BR2_arm922t is not set +# BR2_arm926t is not set +# BR2_arm1136jf_s is not set +BR2_cortex_m3=y +# BR2_sa110 is not set +# BR2_sa1100 is not set +# BR2_xscale is not set +# BR2_iwmmxt is not set +# BR2_ARM_OABI is not set +BR2_ARM_EABI=y +BR2_ARCH="arm" +BR2_GCC_TARGET_TUNE="cortex-m3" +BR2_GCC_TARGET_ARCH="armv7-m" +BR2_GCC_TARGET_ABI="aapcs-linux" +BR2_ENDIAN="LITTLE" + +# +# Build options +# +BR2_WGET="wget --passive-ftp" +BR2_SVN="svn co" +BR2_ZCAT="zcat" +BR2_BZCAT="bzcat" +BR2_TAR_OPTIONS="" +BR2_DL_DIR="$(BASE_DIR)/../archives" +BR2_STAGING_DIR="$(BUILD_DIR)/staging_dir" +BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" +BR2_TOPDIR_PREFIX="" +BR2_TOPDIR_SUFFIX="" +BR2_GNU_BUILD_SUFFIX="pc-elf" +BR2_GNU_TARGET_SUFFIX="nuttx-eabi" +# BR2_PREFER_IMA is not set + +# +# Toolchain Options +# + +# +# Binutils Options +# +# BR2_BINUTILS_VERSION_2_17 is not set +# BR2_BINUTILS_VERSION_2_18 is not set +# BR2_BINUTILS_VERSION_2_19 is not set +# BR2_BINUTILS_VERSION_2_19_1 is not set +# BR2_BINUTILS_VERSION_2_21_1 is not set +BR2_BINUTILS_VERSION_2_22=y +BR2_BINUTILS_VERSION="2.22" +BR2_EXTRA_BINUTILS_CONFIG_OPTIONS="" + +# +# GCC Options +# +BR2_PACKAGE_GCC=y +# BR2_GCC_VERSION_3_3_6 is not set +# BR2_GCC_VERSION_3_4_6 is not set +# BR2_GCC_VERSION_4_2_4 is not set +# BR2_GCC_VERSION_4_3_3 is not set +# BR2_GCC_VERSION_4_5_2 is not set +BR2_GCC_VERSION_4_6_3=y +BR2_GCC_SUPPORTS_SYSROOT=y +BR2_GCC_VERSION="4.6.3" +# BR2_GCC_USE_SJLJ_EXCEPTIONS is not set +BR2_EXTRA_GCC_CONFIG_OPTIONS="" +BR2_INSTALL_LIBSTDCPP=y +# BR2_INSTALL_LIBGCJ is not set +# BR2_INSTALL_OBJC is not set +# BR2_INSTALL_FORTRAN is not set + +# +# Gdb Options +# +# BR2_PACKAGE_GDB is not set +# BR2_PACKAGE_GDB_SERVER is not set +# BR2_PACKAGE_GDB_HOST is not set + +# +# NuttX Binary Support +# +BR2_PACKAGE_NXFLAT=y +BR2_PACKAGE_GENROMFS=y + +# +# Common Toolchain Options +# +# BR2_PACKAGE_SSTRIP_TARGET is not set +# BR2_PACKAGE_SSTRIP_HOST is not set +# BR2_ENABLE_MULTILIB is not set +BR2_LARGEFILE=y +BR2_SOFT_FLOAT=y +BR2_TARGET_OPTIMIZATION="-Os -pipe" diff --git a/misc/buildroot/configs/h8300_defconfig b/misc/buildroot/configs/h8300_defconfig index 127b04de3f..df7e91b107 100644 --- a/misc/buildroot/configs/h8300_defconfig +++ b/misc/buildroot/configs/h8300_defconfig @@ -40,7 +40,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/i486-defconfig-4.3.3 b/misc/buildroot/configs/i486-defconfig-4.3.3 index c99130521f..ca79c85187 100644 --- a/misc/buildroot/configs/i486-defconfig-4.3.3 +++ b/misc/buildroot/configs/i486-defconfig-4.3.3 @@ -47,7 +47,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/m32c-defconfig-4.2.4 b/misc/buildroot/configs/m32c-defconfig-4.2.4 index cf6b51bde5..2942cf830d 100644 --- a/misc/buildroot/configs/m32c-defconfig-4.2.4 +++ b/misc/buildroot/configs/m32c-defconfig-4.2.4 @@ -40,7 +40,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/m32c-defconfig-4.3.3 b/misc/buildroot/configs/m32c-defconfig-4.3.3 index ef7fa4d008..35f307b75a 100644 --- a/misc/buildroot/configs/m32c-defconfig-4.3.3 +++ b/misc/buildroot/configs/m32c-defconfig-4.3.3 @@ -40,7 +40,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/m68hc11-config b/misc/buildroot/configs/m68hc11-config index 9496beb665..5d546f146c 100644 --- a/misc/buildroot/configs/m68hc11-config +++ b/misc/buildroot/configs/m68hc11-config @@ -40,7 +40,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/m68hc12-config-3.4.6 b/misc/buildroot/configs/m68hc12-config-3.4.6 index 3277e09899..eb2dca5f04 100644 --- a/misc/buildroot/configs/m68hc12-config-3.4.6 +++ b/misc/buildroot/configs/m68hc12-config-3.4.6 @@ -40,7 +40,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/m68hc12-config-4.3.3 b/misc/buildroot/configs/m68hc12-config-4.3.3 index e889e273d3..300194f364 100644 --- a/misc/buildroot/configs/m68hc12-config-4.3.3 +++ b/misc/buildroot/configs/m68hc12-config-4.3.3 @@ -40,7 +40,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/m68k-defconfig b/misc/buildroot/configs/m68k-defconfig index 2de7207552..33b9786337 100644 --- a/misc/buildroot/configs/m68k-defconfig +++ b/misc/buildroot/configs/m68k-defconfig @@ -40,7 +40,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/m9s12x-config-3.3.6 b/misc/buildroot/configs/m9s12x-config-3.3.6 index ab75d010d8..d317ee7d8e 100644 --- a/misc/buildroot/configs/m9s12x-config-3.3.6 +++ b/misc/buildroot/configs/m9s12x-config-3.3.6 @@ -41,7 +41,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/configs/sh-defconfig b/misc/buildroot/configs/sh-defconfig index 5fc95a5ff9..1700faf24d 100644 --- a/misc/buildroot/configs/sh-defconfig +++ b/misc/buildroot/configs/sh-defconfig @@ -47,7 +47,7 @@ BR2_NUTTX_DIR="$(TOPDIR)/../../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-elf" -BR2_GNU_TARGET_SUFFIX="elf" +BR2_GNU_TARGET_SUFFIX="nuttx-elf" # BR2_PREFER_IMA is not set # diff --git a/misc/buildroot/toolchain/binutils/2.22/120-sh-conf.patch b/misc/buildroot/toolchain/binutils/2.22/120-sh-conf.patch new file mode 100755 index 0000000000..ea3d1b6068 --- /dev/null +++ b/misc/buildroot/toolchain/binutils/2.22/120-sh-conf.patch @@ -0,0 +1,29 @@ +r10231 | lethal | 2005-05-02 09:58:00 -0400 (Mon, 02 May 2005) | 13 lines + +Likewise, binutils has no idea about any of these new targets either, so we +fix that up too.. now we're able to actually build a real toolchain for +sh2a_nofpu- and other more ineptly named toolchains (and yes, there are more +inept targets than that one, really. Go look, I promise). + +--- a/configure ++++ b/configure +@@ -1495,7 +1495,7 @@ + mips*-*-*) + noconfigdirs="$noconfigdirs gprof" + ;; +- sh-*-* | sh64-*-*) ++ sh*-*-* | sh64-*-*) + case "${target}" in + sh*-*-elf) + ;; +--- a/configure.ac ++++ b/configure.ac +@@ -712,7 +712,7 @@ + mips*-*-*) + noconfigdirs="$noconfigdirs gprof" + ;; +- sh-*-* | sh64-*-*) ++ sh*-*-* | sh64-*-*) + case "${target}" in + sh*-*-elf) + ;; diff --git a/misc/buildroot/toolchain/binutils/2.22/300-001_ld_makefile_patch.patch b/misc/buildroot/toolchain/binutils/2.22/300-001_ld_makefile_patch.patch new file mode 100755 index 0000000000..5cb0f614d8 --- /dev/null +++ b/misc/buildroot/toolchain/binutils/2.22/300-001_ld_makefile_patch.patch @@ -0,0 +1,24 @@ +diff -u binutils-2.17.50.0.17.oorig/ld/Makefile.am binutils-2.17.50.0.17/ld/Makefile.am +--- binutils-2.17.50.0.17.oorig/ld/Makefile.am 2007-06-18 19:29:29.000000000 +0200 ++++ binutils-2.17.50.0.17/ld/Makefile.am 2007-06-25 10:00:36.000000000 +0200 +@@ -18,7 +18,7 @@ + # We put the scripts in the directory $(scriptdir)/ldscripts. + # We can't put the scripts in $(datadir) because the SEARCH_DIR + # directives need to be different for native and cross linkers. +-scriptdir = $(tooldir)/lib ++scriptdir = $(libdir) + + EMUL = @EMUL@ + EMULATION_OFILES = @EMULATION_OFILES@ +diff -u binutils-2.17.50.0.17.oorig/ld/Makefile.in binutils-2.17.50.0.17/ld/Makefile.in +--- binutils-2.17.50.0.17.oorig/ld/Makefile.in 2007-06-18 19:29:29.000000000 +0200 ++++ binutils-2.17.50.0.17/ld/Makefile.in 2007-06-25 10:00:36.000000000 +0200 +@@ -287,7 +287,7 @@ + # We put the scripts in the directory $(scriptdir)/ldscripts. + # We can't put the scripts in $(datadir) because the SEARCH_DIR + # directives need to be different for native and cross linkers. +-scriptdir = $(tooldir)/lib ++scriptdir = $(libdir) + BASEDIR = $(srcdir)/.. + BFDDIR = $(BASEDIR)/bfd + INCDIR = $(BASEDIR)/include diff --git a/misc/buildroot/toolchain/binutils/2.22/300-012_check_ldrunpath_length.patch b/misc/buildroot/toolchain/binutils/2.22/300-012_check_ldrunpath_length.patch new file mode 100755 index 0000000000..df783109bb --- /dev/null +++ b/misc/buildroot/toolchain/binutils/2.22/300-012_check_ldrunpath_length.patch @@ -0,0 +1,21 @@ +diff -Nura binutils-2.21.orig/ld/emultempl/elf32.em binutils-2.21/ld/emultempl/elf32.em +--- binutils-2.21.orig/ld/emultempl/elf32.em 2010-10-29 09:10:36.000000000 -0300 ++++ binutils-2.21/ld/emultempl/elf32.em 2010-12-10 09:26:56.746102724 -0300 +@@ -1270,6 +1270,8 @@ + && command_line.rpath == NULL) + { + lib_path = (const char *) getenv ("LD_RUN_PATH"); ++ if ((lib_path) && (strlen (lib_path) == 0)) ++ lib_path = NULL; + if (gld${EMULATION_NAME}_search_needed (lib_path, &n, + force)) + break; +@@ -1497,6 +1499,8 @@ + rpath = command_line.rpath; + if (rpath == NULL) + rpath = (const char *) getenv ("LD_RUN_PATH"); ++ if ((rpath) && (strlen (rpath) == 0)) ++ rpath = NULL; + + for (abfd = link_info.input_bfds; abfd; abfd = abfd->link_next) + if (bfd_get_flavour (abfd) == bfd_target_elf_flavour) diff --git a/misc/buildroot/toolchain/binutils/2.22/999-ppc-textrels.patch b/misc/buildroot/toolchain/binutils/2.22/999-ppc-textrels.patch new file mode 100755 index 0000000000..c1efacf249 --- /dev/null +++ b/misc/buildroot/toolchain/binutils/2.22/999-ppc-textrels.patch @@ -0,0 +1,80 @@ +http://bugs.gentoo.org/392645 +http://sourceware.org/bugzilla/show_bug.cgi?id=13470 + +2011-12-03 Alan Modra + + PR ld/13470 + * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Revert substantive + change in 2011-07-01 commit. Comment. + * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise. + +=================================================================== +RCS file: /cvs/src/src/bfd/elf32-ppc.c,v +retrieving revision 1.302.2.1 +retrieving revision 1.302.2.2 +diff -u -r1.302.2.1 -r1.302.2.2 +--- src/bfd/elf32-ppc.c 2011/11/15 11:36:52 1.302.2.1 ++++ src/bfd/elf32-ppc.c 2011/12/03 00:58:01 1.302.2.2 +@@ -2987,10 +2987,6 @@ + edir->elf.needs_plt |= eind->elf.needs_plt; + edir->elf.pointer_equality_needed |= eind->elf.pointer_equality_needed; + +- /* If we were called to copy over info for a weak sym, that's all. */ +- if (eind->elf.root.type != bfd_link_hash_indirect) +- return; +- + if (eind->dyn_relocs != NULL) + { + if (edir->dyn_relocs != NULL) +@@ -3022,6 +3018,16 @@ + eind->dyn_relocs = NULL; + } + ++ /* If we were called to copy over info for a weak sym, that's all. ++ You might think dyn_relocs need not be copied over; After all, ++ both syms will be dynamic or both non-dynamic so we're just ++ moving reloc accounting around. However, ELIMINATE_COPY_RELOCS ++ code in ppc_elf_adjust_dynamic_symbol needs to check for ++ dyn_relocs in read-only sections, and it does so on what is the ++ DIR sym here. */ ++ if (eind->elf.root.type != bfd_link_hash_indirect) ++ return; ++ + /* Copy over the GOT refcount entries that we may have already seen to + the symbol which just became indirect. */ + edir->elf.got.refcount += eind->elf.got.refcount; +=================================================================== +RCS file: /cvs/src/src/bfd/elf64-ppc.c,v +retrieving revision 1.363.2.4 +retrieving revision 1.363.2.5 +diff -u -r1.363.2.4 -r1.363.2.5 +--- src/bfd/elf64-ppc.c 2011/11/08 13:46:36 1.363.2.4 ++++ src/bfd/elf64-ppc.c 2011/12/03 00:58:02 1.363.2.5 +@@ -4435,10 +4435,6 @@ + edir->elf.ref_regular_nonweak |= eind->elf.ref_regular_nonweak; + edir->elf.needs_plt |= eind->elf.needs_plt; + +- /* If we were called to copy over info for a weak sym, that's all. */ +- if (eind->elf.root.type != bfd_link_hash_indirect) +- return; +- + /* Copy over any dynamic relocs we may have on the indirect sym. */ + if (eind->dyn_relocs != NULL) + { +@@ -4471,6 +4467,16 @@ + eind->dyn_relocs = NULL; + } + ++ /* If we were called to copy over info for a weak sym, that's all. ++ You might think dyn_relocs need not be copied over; After all, ++ both syms will be dynamic or both non-dynamic so we're just ++ moving reloc accounting around. However, ELIMINATE_COPY_RELOCS ++ code in ppc64_elf_adjust_dynamic_symbol needs to check for ++ dyn_relocs in read-only sections, and it does so on what is the ++ DIR sym here. */ ++ if (eind->elf.root.type != bfd_link_hash_indirect) ++ return; ++ + /* Copy over got entries that we may have already seen to the + symbol which just became indirect. */ + if (eind->elf.got.glist != NULL) diff --git a/misc/buildroot/toolchain/binutils/Config.in b/misc/buildroot/toolchain/binutils/Config.in index d1e674ba54..028ac04121 100644 --- a/misc/buildroot/toolchain/binutils/Config.in +++ b/misc/buildroot/toolchain/binutils/Config.in @@ -30,6 +30,10 @@ choice config BR2_BINUTILS_VERSION_2_21_1 depends !BR2_avr32 && !BR2_nios2 && !BR2_m9s12x bool "binutils 2.21.1" + + config BR2_BINUTILS_VERSION_2_22 + depends !BR2_avr32 && !BR2_nios2 && !BR2_m9s12x + bool "binutils 2.22" endchoice config BR2_BINUTILS_VERSION @@ -39,6 +43,7 @@ config BR2_BINUTILS_VERSION default "2.19" if BR2_BINUTILS_VERSION_2_19 default "2.19.1" if BR2_BINUTILS_VERSION_2_19_1 default "2.21.1" if BR2_BINUTILS_VERSION_2_21_1 + default "2.22" if BR2_BINUTILS_VERSION_2_22 config BR2_EXTRA_BINUTILS_CONFIG_OPTIONS string "Additional binutils options" diff --git a/misc/buildroot/toolchain/gcc/4.6.3/305-libmudflap-susv3-legacy.patch b/misc/buildroot/toolchain/gcc/4.6.3/305-libmudflap-susv3-legacy.patch new file mode 100755 index 0000000000..374b1f8659 --- /dev/null +++ b/misc/buildroot/toolchain/gcc/4.6.3/305-libmudflap-susv3-legacy.patch @@ -0,0 +1,49 @@ +Index: gcc-4.2/libmudflap/mf-hooks2.c +=================================================================== +--- gcc-4.2/libmudflap/mf-hooks2.c (revision 119834) ++++ gcc-4.2/libmudflap/mf-hooks2.c (working copy) +@@ -427,7 +427,7 @@ + { + TRACE ("%s\n", __PRETTY_FUNCTION__); + MF_VALIDATE_EXTENT(s, n, __MF_CHECK_WRITE, "bzero region"); +- bzero (s, n); ++ memset (s, 0, n); + } + + +@@ -437,7 +437,7 @@ + TRACE ("%s\n", __PRETTY_FUNCTION__); + MF_VALIDATE_EXTENT(src, n, __MF_CHECK_READ, "bcopy src"); + MF_VALIDATE_EXTENT(dest, n, __MF_CHECK_WRITE, "bcopy dest"); +- bcopy (src, dest, n); ++ memmove (dest, src, n); + } + + +@@ -447,7 +447,7 @@ + TRACE ("%s\n", __PRETTY_FUNCTION__); + MF_VALIDATE_EXTENT(s1, n, __MF_CHECK_READ, "bcmp 1st arg"); + MF_VALIDATE_EXTENT(s2, n, __MF_CHECK_READ, "bcmp 2nd arg"); +- return bcmp (s1, s2, n); ++ return n == 0 ? 0 : memcmp (s1, s2, n); + } + + +@@ -456,7 +456,7 @@ + size_t n = strlen (s); + TRACE ("%s\n", __PRETTY_FUNCTION__); + MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "index region"); +- return index (s, c); ++ return strchr (s, c); + } + + +@@ -465,7 +465,7 @@ + size_t n = strlen (s); + TRACE ("%s\n", __PRETTY_FUNCTION__); + MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "rindex region"); +- return rindex (s, c); ++ return strrchr (s, c); + } + + /* XXX: stpcpy, memccpy */ diff --git a/misc/buildroot/toolchain/gcc/4.6.3/810-arm-softfloat-libgcc.patch b/misc/buildroot/toolchain/gcc/4.6.3/810-arm-softfloat-libgcc.patch new file mode 100755 index 0000000000..e6a30a3f00 --- /dev/null +++ b/misc/buildroot/toolchain/gcc/4.6.3/810-arm-softfloat-libgcc.patch @@ -0,0 +1,38 @@ +[PATCH] add the correct symbols to libgcc for uclibc arm softfloat + +Signed-off-by: Peter Korsgaard +--- + gcc/config/arm/linux-elf.h | 2 +- + gcc/config/arm/t-linux | 6 +++++- + 2 files changed, 6 insertions(+), 2 deletions(-) + +Index: gcc-4.4.0/gcc/config/arm/t-linux +=================================================================== +--- gcc-4.4.0.orig/gcc/config/arm/t-linux ++++ gcc-4.4.0/gcc/config/arm/t-linux +@@ -4,7 +4,11 @@ + + LIB1ASMSRC = arm/lib1funcs.asm + LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx _clzsi2 _clzdi2 \ +- _arm_addsubdf3 _arm_addsubsf3 ++ _arm_addsubdf3 _arm_addsubsf3 \ ++ _arm_negdf2 _arm_muldivdf3 _arm_cmpdf2 _arm_unorddf2 \ ++ _arm_fixdfsi _arm_fixunsdfsi _arm_truncdfsf2 \ ++ _arm_negsf2 _arm_muldivsf3 _arm_cmpsf2 _arm_unordsf2 \ ++ _arm_fixsfsi _arm_fixunssfsi + + # MULTILIB_OPTIONS = mhard-float/msoft-float + # MULTILIB_DIRNAMES = hard-float soft-float +Index: gcc-4.4.0/gcc/config/arm/linux-elf.h +=================================================================== +--- gcc-4.4.0.orig/gcc/config/arm/linux-elf.h ++++ gcc-4.4.0/gcc/config/arm/linux-elf.h +@@ -60,7 +60,7 @@ + %{shared:-lc} \ + %{!shared:%{profile:-lc_p}%{!profile:-lc}}" + +-#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc" ++#define LIBGCC_SPEC "-lgcc" + + #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" + diff --git a/misc/buildroot/toolchain/gcc/4.6.3/820-arm-unbreak-armv4t.patch b/misc/buildroot/toolchain/gcc/4.6.3/820-arm-unbreak-armv4t.patch new file mode 100755 index 0000000000..8651afcd86 --- /dev/null +++ b/misc/buildroot/toolchain/gcc/4.6.3/820-arm-unbreak-armv4t.patch @@ -0,0 +1,14 @@ +http://sourceware.org/ml/crossgcc/2008-05/msg00009.html + +diff -Nura gcc-4.5.1.orig/gcc/config/arm/linux-eabi.h gcc-4.5.1/gcc/config/arm/linux-eabi.h +--- gcc-4.5.1.orig/gcc/config/arm/linux-eabi.h 2009-10-30 17:03:09.000000000 -0300 ++++ gcc-4.5.1/gcc/config/arm/linux-eabi.h 2010-11-02 15:38:25.792208500 -0300 +@@ -44,7 +44,7 @@ + The ARM10TDMI core is the default for armv5t, so set + SUBTARGET_CPU_DEFAULT to achieve this. */ + #undef SUBTARGET_CPU_DEFAULT +-#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm10tdmi ++#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm9tdmi + + /* TARGET_BIG_ENDIAN_DEFAULT is set in + config.gcc for big endian configurations. */ diff --git a/misc/buildroot/toolchain/gcc/4.6.3/900-nuttx-nolibstdc.patch b/misc/buildroot/toolchain/gcc/4.6.3/900-nuttx-nolibstdc.patch new file mode 100755 index 0000000000..5628646a6b --- /dev/null +++ b/misc/buildroot/toolchain/gcc/4.6.3/900-nuttx-nolibstdc.patch @@ -0,0 +1,13 @@ +--- gcc-4.5.2/configure.orig 2011-04-28 17:25:37.091035400 -0600 ++++ gcc-4.5.2/configure 2011-04-28 17:26:26.868332200 -0600 +@@ -3741,6 +3741,10 @@ + ;; + esac + ++# If we are building against NuttX, then don't attempt to build libstdc++ ++# (should be conditioned on --with-nuttx) ++noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3" ++ + # If we aren't building newlib, then don't build libgloss, since libgloss + # depends upon some newlib header files. + case "${noconfigdirs}" in diff --git a/misc/buildroot/toolchain/gcc/4.6.3/powerpc-link-with-math-lib.patch.conditional b/misc/buildroot/toolchain/gcc/4.6.3/powerpc-link-with-math-lib.patch.conditional new file mode 100755 index 0000000000..7e75e87f23 --- /dev/null +++ b/misc/buildroot/toolchain/gcc/4.6.3/powerpc-link-with-math-lib.patch.conditional @@ -0,0 +1,125 @@ +http://gcc.gnu.org/ml/gcc-patches/2008-10/msg00269.html + +On glibc the libc.so carries a copy of the math function copysignl() but +on uClibc math functions like copysignl() live in libm. Since libgcc_s +contains unresolved symbols, any attempt to link against libgcc_s +without explicitely specifying -lm fails, resulting in a broken +bootstrap of the compiler. + +Forward port to gcc 4.5.1 by Gustavo Zacarias + +diff -Nura gcc-4.5.1.orig/gcc/config/t-slibgcc-elf-ver gcc-4.5.1/gcc/config/t-slibgcc-elf-ver +--- gcc-4.5.1.orig/gcc/config/t-slibgcc-elf-ver 2010-11-03 14:35:08.644904042 -0300 ++++ gcc-4.5.1/gcc/config/t-slibgcc-elf-ver 2010-11-03 14:35:56.332904024 -0300 +@@ -27,7 +27,7 @@ + SHLIB_OBJS = @shlib_objs@ + SHLIB_DIR = @multilib_dir@ + SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@ +-SHLIB_LC = -lc ++SHLIB_LC = @libgcc_libm@ -lc + SHLIB_MAKE_SOLINK = $(LN_S) $(SHLIB_SONAME) $(SHLIB_DIR)/$(SHLIB_SOLINK) + SHLIB_INSTALL_SOLINK = $(LN_S) $(SHLIB_SONAME) \ + $$(DESTDIR)$$(slibdir)$(SHLIB_SLIBDIR_QUAL)/$(SHLIB_SOLINK) +diff -Nura gcc-4.5.1.orig/libgcc/Makefile.in gcc-4.5.1/libgcc/Makefile.in +--- gcc-4.5.1.orig/libgcc/Makefile.in 2010-11-03 14:32:44.272904042 -0300 ++++ gcc-4.5.1/libgcc/Makefile.in 2010-11-03 14:37:03.893904042 -0300 +@@ -39,6 +39,7 @@ + decimal_float = @decimal_float@ + enable_decimal_float = @enable_decimal_float@ + fixed_point = @fixed_point@ ++LIBGCC_LIBM = @LIBGCC_LIBM@ + + host_noncanonical = @host_noncanonical@ + +@@ -798,9 +799,10 @@ + @multilib_dir@,$(MULTIDIR),$(subst \ + @shlib_objs@,$(objects),$(subst \ + @shlib_base_name@,libgcc_s,$(subst \ ++ @libgcc_libm@,$(LIBGCC_LIBM),$(subst \ + @shlib_map_file@,$(mapfile),$(subst \ + @shlib_slibdir_qual@,$(MULTIOSSUBDIR),$(subst \ +- @shlib_slibdir@,$(shlib_slibdir),$(SHLIB_LINK)))))))) ++ @shlib_slibdir@,$(shlib_slibdir),$(SHLIB_LINK))))))))) + + libunwind$(SHLIB_EXT): $(libunwind-s-objects) $(extra-parts) + # @multilib_flags@ is still needed because this may use +diff -Nura gcc-4.5.1.orig/libgcc/configure gcc-4.5.1/libgcc/configure +--- gcc-4.5.1.orig/libgcc/configure 2010-11-03 14:32:44.283904042 -0300 ++++ gcc-4.5.1/libgcc/configure 2010-11-03 14:39:48.685904042 -0300 +@@ -557,6 +557,7 @@ + extra_parts + tmake_file + set_use_emutls ++LIBGCC_LIBM + set_have_cc_tls + vis_hide + fixed_point +@@ -3847,6 +3848,37 @@ + set_use_emutls="-DUSE_EMUTLS" + fi + ++# On powerpc libgcc_s references copysignl which is a libm function but ++# glibc apparently also provides it via libc as opposed to uClibc where ++# it lives in libm. ++echo "$as_me:$LINENO: checking for library containing copysignl" >&5 ++echo $ECHO_N "checking for library containing copysignl... $ECHO_C" >&6 ++if test "${libgcc_cv_copysignl_lib+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ++ echo '#include ' > conftest.c ++ echo 'int the_libc = __UCLIBC__ + __powerpc__;' >> conftest.c ++ libgcc_cv_copysignl_lib="-lc" ++ if { ac_try='${CC-cc} -S conftest.c -o conftest.s 1>&5' ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ++ (eval $ac_try) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; } ++ then ++ libgcc_cv_copysignl_lib="-lm" ++ fi ++ rm -f conftest.* ++ ++fi ++echo "$as_me:$LINENO: result: $libgcc_cv_copysignl_lib" >&5 ++echo "${ECHO_T}$libgcc_cv_copysignl_lib" >&6 ++ ++case /${libgcc_cv_copysignl_lib}/ in ++ /-lm/) LIBGCC_LIBM="$LIBGCC_LIBM -lm" ;; ++ *) LIBGCC_LIBM= ;; ++esac + + # Conditionalize the makefile for this target machine. + tmake_file_= +diff -Nura gcc-4.5.1.orig/libgcc/configure.ac gcc-4.5.1/libgcc/configure.ac +--- gcc-4.5.1.orig/libgcc/configure.ac 2010-11-03 14:32:44.735904042 -0300 ++++ gcc-4.5.1/libgcc/configure.ac 2010-11-03 14:42:11.278904045 -0300 +@@ -238,6 +238,27 @@ + fi + AC_SUBST(set_have_cc_tls) + ++# On powerpc libgcc_s references copysignl which is a libm function but ++# glibc apparently also provides it via libc as opposed to uClibc where ++# it lives in libm. ++AC_CACHE_CHECK ++ libgcc_cv_copysignl_lib, ++ echo '#include ' > conftest.c ++ echo 'int the_libc = __UCLIBC__ + __powerpc__;' >> conftest.c ++ libgcc_cv_copysignl_lib="-lc" ++ if AC_TRY_COMMAND(${CC-cc} -S conftest.c -o conftest.s 1>&AS_MESSAGE_LOG_FD) ++ then ++ libgcc_cv_copysignl_lib="-lm" ++ fi ++ rm -f conftest.* ++ ]) ++ ++case /${libgcc_cv_copysignl_lib}/ in ++ /-lm/) LIBGCC_LIBM="$LIBGCC_LIBM -lm" ;; ++ *) LIBGCC_LIBM= ;; ++esac ++AC_SUBST(LIBGCC_LIBM) ++ + # See if we have emulated thread-local storage. + GCC_CHECK_EMUTLS + set_use_emutls= diff --git a/misc/buildroot/toolchain/gcc/Config.in b/misc/buildroot/toolchain/gcc/Config.in index d2b4b69fe7..822cfd4b93 100644 --- a/misc/buildroot/toolchain/gcc/Config.in +++ b/misc/buildroot/toolchain/gcc/Config.in @@ -41,6 +41,11 @@ choice select BR2_GCC_SUPPORTS_SYSROOT bool "gcc 4.5.2" + config BR2_GCC_VERSION_4_6_3 + depends on !BR2_avr32 && !BR2_nios2 && !BR2_m9s12x + select BR2_GCC_SUPPORTS_SYSROOT + bool "gcc 4.6.3" + endchoice config BR2_GCC_SUPPORTS_SYSROOT @@ -54,6 +59,7 @@ config BR2_GCC_VERSION default "4.2.4" if BR2_GCC_VERSION_4_2_4 default "4.3.3" if BR2_GCC_VERSION_4_3_3 default "4.5.2" if BR2_GCC_VERSION_4_5_2 + default "4.6.3" if BR2_GCC_VERSION_4_6_3 config BR2_GCC_USE_SJLJ_EXCEPTIONS bool "Enable setjmp/longjmp exceptions?" diff --git a/misc/buildroot/toolchain/gdb/Config.in b/misc/buildroot/toolchain/gdb/Config.in index fbea5b143c..ebe8578a92 100644 --- a/misc/buildroot/toolchain/gdb/Config.in +++ b/misc/buildroot/toolchain/gdb/Config.in @@ -40,9 +40,14 @@ choice bool "gdb 6.8" depends on !BR2_avr32 + config BR2_GDB_VERSION_7_4 + config BR2_GDB_VERSION_7_4 + depends on !BR2_bfin + endchoice config BR2_GDB_VERSION string default "6.3" if BR2_GDB_VERSION_6_3 default "6.8" if BR2_GDB_VERSION_6_8 + default "7.4.1" if BR2_GDB_VERSION_7_4 diff --git a/misc/buildroot/toolchain/gdb/gdb.mk b/misc/buildroot/toolchain/gdb/gdb.mk index aa9e126bc0..0f0f7e89b7 100644 --- a/misc/buildroot/toolchain/gdb/gdb.mk +++ b/misc/buildroot/toolchain/gdb/gdb.mk @@ -36,7 +36,9 @@ ifeq ($(GDB_VERSION),snapshot) tar jtf $(DL_DIR)/$(GDB_SOURCE) | head -1 | cut -d"/" -f1) ln -sf $(TOOL_BUILD_DIR)/$(shell tar jtf $(DL_DIR)/$(GDB_SOURCE) | head -1 | cut -d"/" -f1) $(GDB_DIR) endif +ifneq ($(wildcard toolchain/gdb/$(GDB_VERSION)),) toolchain/patch-kernel.sh $(GDB_DIR) toolchain/gdb/$(GDB_VERSION) \*.patch +endif $(CONFIG_UPDATE) $(GDB_DIR) touch $(GDB_DIR)/.unpacked diff --git a/nuttx/Documentation/NuttX.html b/nuttx/Documentation/NuttX.html index ec6a8be24d..f22ab418c9 100644 --- a/nuttx/Documentation/NuttX.html +++ b/nuttx/Documentation/NuttX.html @@ -1309,7 +1309,7 @@ svn checkout -r5206 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code TI TMS320C5471 (also called C5471 or TMS320DA180 or DA180). NuttX operates on the ARM7 of this dual core processor. This port uses the Spectrum Digital - evaluation board with a GNU arm-elf toolchain* under Linux or Cygwin. + evaluation board with a GNU arm-nuttx-elf toolchain* under Linux or Cygwin.

    @@ -1352,7 +1352,7 @@ svn checkout -r5206 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code NXP LPC214x. Support is provided for the NXP LPC214x family of processors. In particular, support is provided for the mcu123.com lpc214x evaluation board (LPC2148). - This port also used the GNU arm-elf toolchain* under Linux or Cygwin. + This port also used the GNU arm-nuttx-elf toolchain* under Linux or Cygwin.

      @@ -1386,7 +1386,7 @@ svn checkout -r5206 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code Support is provided for the NXP LPC2378 MCU. In particular, support is provided for the Olimex-LPC2378 development board. This port was contributed by Rommel Marcelo is was first released in NuttX-5.3. - This port also used the GNU arm-elf toolchain* under Linux or Cygwin. + This port also used the GNU arm-nuttx-elf toolchain* under Linux or Cygwin.

        @@ -1413,7 +1413,7 @@ svn checkout -r5206 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code STMicro STR71x. Support is provided for the STMicro STR71x family of processors. In particular, support is provided for the Olimex STR-P711 evaluation board. - This port also used the GNU arm-elf toolchain* under Linux or Cygwin. + This port also used the GNU arm-nuttx-elf toolchain* under Linux or Cygwin.

          @@ -1450,7 +1450,7 @@ svn checkout -r5206 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code

          Freescale MC9328MX1 or i.MX1. - This port uses the Freescale MX1ADS development board with a GNU arm-elf toolchain* + This port uses the Freescale MX1ADS development board with a GNU arm-nuttx-elf toolchain* under either Linux or Cygwin.

            @@ -1476,7 +1476,7 @@ svn checkout -r5206 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code NuttX operates on the ARM9 of this dual core processor. This port uses the Neuros OSD - with a GNU arm-elf toolchain* under Linux or Cygwin. + with a GNU arm-nuttx-elf toolchain* under Linux or Cygwin. The port was performed using the OSD v1.0, development board.

              @@ -1498,7 +1498,7 @@ svn checkout -r5206 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code NXP LPC3131. The port for the NXP LPC3131 on the Embedded Artists EA3131 - development board was first released in NuttX-5.1 with a GNU arm-elf or arm-eabi toolchain* under Linux or Cygwin + development board was first released in NuttX-5.1 with a GNU arm-nuttx-elf or arm-eabi toolchain* under Linux or Cygwin (but was not functional until NuttX-5.2).

                @@ -1571,7 +1571,7 @@ svn checkout -r5206 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code

                Luminary/TI Stellaris LM3S6918. This port uses the Micromint Eagle-100 development - board with a GNU arm-elf toolchain* under either Linux or Cygwin. + board with a GNU arm-nuttx-elf toolchain* under either Linux or Cygwin.

                  @@ -1601,7 +1601,7 @@ svn checkout -r5206 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code

                  Luminary/TI Stellaris LM3S6965. - This port uses the Stellaris LM3S6965 Ethernet Evalution Kit with a GNU arm-elf toolchain* + This port uses the Stellaris LM3S6965 Ethernet Evalution Kit with a GNU arm-nuttx-elf toolchain* under either Linux or Cygwin.

                    @@ -1635,7 +1635,7 @@ svn checkout -r5206 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code

                    Luminary/TI Stellaris LM3S8962. - This port uses the Stellaris EKC-LM3S8962 Ethernet+CAN Evalution Kit with a GNU arm-elf toolchain* + This port uses the Stellaris EKC-LM3S8962 Ethernet+CAN Evalution Kit with a GNU arm-nuttx-elf toolchain* under either Linux or Cygwin. Contributed by Larry Arnold.

                    @@ -1733,7 +1733,7 @@ svn checkout -r5206 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code

                    - These ports uses a GNU arm-elf toolchain* under either Linux or Cygwin (with native Windows GNU + These ports uses a GNU arm-nuttx-elf toolchain* under either Linux or Cygwin (with native Windows GNU tools or Cygwin-based GNU tools).

                      @@ -1842,7 +1842,7 @@ svn checkout -r5206 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code Atmel AT91SAM3U. This port uses the Atmel SAM3U-EK development board that features the AT91SAM3U4E MCU. - This port uses a GNU arm-elf or arm-eabi toolchain* under either Linux or Cygwin (with native Windows GNU + This port uses a GNU arm-nuttx-elf or arm-eabi toolchain* under either Linux or Cygwin (with native Windows GNU tools or Cygwin-based GNU tools).

                        @@ -1905,7 +1905,7 @@ svn checkout -r5206 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code

                        The Nucleus 2G board, the mbed board, and the LPCXpresso all feature the NXP LPC1768 MCU; the Olimex LPC1766-STK board features an LPC1766. - All use a GNU arm-elf or arm-eabi toolchain* under either Linux or Cygwin (with native Windows GNU tools or Cygwin-based GNU tools). + All use a GNU arm-nuttx-elf or arm-eabi toolchain* under either Linux or Cygwin (with native Windows GNU tools or Cygwin-based GNU tools).

                          @@ -2386,7 +2386,7 @@ svn checkout -r5206 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code

                        - Both use a GNU arm-elf toolchain* under Linux or Cygwin. + Both use a GNU arm-nuttx-elf toolchain* under Linux or Cygwin. The NuttX buildroot provides a properly patched GCC 3.4.4 toolchain that is highly optimized for the m9s12x family.

                          @@ -2696,10 +2696,10 @@ svn checkout -r5206 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code STATUS: Initial source files released in nuttx-0.4.2. At this point, the port has not been integrated; the target cannot be built - because the GNU m16c-elf-ld link fails with the following message: + because the GNU m16c-nuttx-elf-ld link fails with the following message:

                            - m32c-elf-ld: BFD (GNU Binutils) 2.19 assertion fail /home/Owner/projects/nuttx/buildroot/toolchain_build_m32c/binutils-2.19/bfd/elf32-m32c.c:482 + m32c-nuttx-elf-ld: BFD (GNU Binutils) 2.19 assertion fail /home/Owner/projects/nuttx/buildroot/toolchain_build_m32c/binutils-2.19/bfd/elf32-m32c.c:482

                          Where the reference line is:

                            @@ -3583,7 +3583,7 @@ buildroot-1.10 2011-05-06 <gnutt@nuttx.org>
                                   i486 ELF binaries.  But that will not work under Cygwin!  The Cygwin
                                   toolchain (and probably MinGW), build DOS MZ format executables (i.e.,
                                   .exe files).  That is probably not usable for most NuttX targets.
                            -      Instead, you should use this i486-elf-gcc to generate true ELF binaries
                            +      Instead, you should use this i486-nuttx-elf-gcc to generate true ELF binaries
                                   under Cygwin.
                                 * Makefile - Alter copy arguments to avoid permissions problems when
                                   copying NuttX header files.
                            diff --git a/nuttx/Documentation/NuttXLinks.html b/nuttx/Documentation/NuttXLinks.html
                            index 7196ea3ea3..b69a354fad 100644
                            --- a/nuttx/Documentation/NuttXLinks.html
                            +++ b/nuttx/Documentation/NuttXLinks.html
                            @@ -22,6 +22,7 @@
                                   
                          • SourceForge
                          • FreshMeat
                          • Forum
                          • +
                          • Ohloh
                          • OSChina
                          • Downloads
                          • Wiki
                          • diff --git a/nuttx/Documentation/NuttXNxFlat.html b/nuttx/Documentation/NuttXNxFlat.html index 6f78fffcd2..73be5d7b34 100644 --- a/nuttx/Documentation/NuttXNxFlat.html +++ b/nuttx/Documentation/NuttXNxFlat.html @@ -443,7 +443,7 @@ cat ../syscall/syscall.csv ../lib/lib.csv | sort >tmp.csv

                            - abc-elf-ld -r -d -warn-common -o $@ $^ + abc-nuttx-elf-ld -r -d -warn-common -o $@ $^ Target 2 @@ -464,7 +464,7 @@ cat ../syscall/syscall.csv ../lib/lib.csv | sort >tmp.csv

                            - abc-elf-ld -r -d -warn-common -T binfmt/libnxflat/gnu-nxflat.ld -no-check-sections -o $@ hello.o hello-thunk.o + abc-nuttx-elf-ld -r -d -warn-common -T binfmt/libnxflat/gnu-nxflat.ld -no-check-sections -o $@ hello.o hello-thunk.o diff --git a/nuttx/Documentation/NuttXRelated.html b/nuttx/Documentation/NuttXRelated.html index 978eb1d441..9d26a98957 100644 --- a/nuttx/Documentation/NuttXRelated.html +++ b/nuttx/Documentation/NuttXRelated.html @@ -41,7 +41,7 @@
                          • Osmocom-BB
                          • PX4 Autopilot
                          • RGMP
                          • -
                          • Top Multi-Rotor (TMR)
                          • +
                          • Top Multi-Rotor (TMR)
                          • diff --git a/nuttx/Documentation/NuttxPortingGuide.html b/nuttx/Documentation/NuttxPortingGuide.html index e13c3be621..21ae44144d 100644 --- a/nuttx/Documentation/NuttxPortingGuide.html +++ b/nuttx/Documentation/NuttxPortingGuide.html @@ -768,7 +768,7 @@ This is a port to the Spectrum Digital C5471 evaluation board. The C5471 is a dual core processor from TI with an ARM7TDMI general purpose processor and a c54 DSP. It is also known as TMS320DA180 or just DA180. - NuttX runs on the ARM core and is built with with a GNU arm-elf toolchain + NuttX runs on the ARM core and is built with with a GNU arm-nuttx-elf toolchain under Linux or Cygwin. This port is complete and verified. @@ -780,14 +780,14 @@
                          • configs/ea3131: Embedded Artists EA3131 Development bard. This board is based on the - an NXP LPC3131 MCU. This OS is built with the arm-elf toolchain. + an NXP LPC3131 MCU. This OS is built with the arm-nuttx-elf toolchain. STATUS: This port is complete and mature.
                          • configs/eagle100: Micromint Eagle-100 Development board. This board is based on the an ARM Cortex-M3 MCU, the Luminary LM3S6918. This OS is built with the - arm-elf toolchain. STATUS: This port is complete and mature. + arm-nuttx-elf toolchain. STATUS: This port is complete and mature.
                          • configs/ez80f0910200kitg @@ -805,7 +805,7 @@
                          • configs/lm3s6965-ek: Stellaris LM3S6965 Evaluation Kit. This board is based on the an ARM Cortex-M3 MCU, the Luminary/TI LM3S6965. This OS is built with the - arm-elf toolchain. STATUS: This port is complete and mature. + arm-nuttx-elf toolchain. STATUS: This port is complete and mature.
                          • configs/lm3s8962-ek: @@ -827,13 +827,13 @@
                          • configs/mbed: The configurations in this directory support the mbed board (http://mbed.org) that features the NXP LPC1768 microcontroller. This OS is also built - with the arm-elf toolchain. STATUS: Contributed. + with the arm-nuttx-elf toolchain. STATUS: Contributed.
                          • configs/mcu123-lpc214x: This port is for the NXP LPC2148 as provided on the mcu123.com lpc214x development board. - This OS is also built with the arm-elf toolchain* under Linux or Cygwin. + This OS is also built with the arm-nuttx-elf toolchain* under Linux or Cygwin. The port supports serial, timer0, spi, and usb.
                          • @@ -858,7 +858,7 @@
                          • configs/ntosd-dm320: - This port uses the Neuros OSD with a GNU arm-elf toolchain* under Linux or Cygwin. + This port uses the Neuros OSD with a GNU arm-nuttx-elf toolchain* under Linux or Cygwin. See Neuros Wiki for further information. NuttX operates on the ARM9EJS of this dual core processor. @@ -878,12 +878,12 @@
                          • configs/olimex-lpc2378: - This port uses the Olimex-lpc2378 board and a GNU arm-elf toolchain under + This port uses the Olimex-lpc2378 board and a GNU arm-nuttx-elf toolchain under Linux or Cygwin. STATUS: ostest and NSH configurations available.
                          • configs/olimex-strp711: - This port uses the Olimex STR-P711 board arm-elf toolchain* under Linux or Cygwin. + This port uses the Olimex STR-P711 board arm-nuttx-elf toolchain* under Linux or Cygwin. See the Olimex web site for further information. STATUS: Configurations for the basic OS test and NSH are complete and verified. diff --git a/nuttx/Documentation/UsbTrace.html b/nuttx/Documentation/UsbTrace.html index ec48e260dd..e85377756e 100644 --- a/nuttx/Documentation/UsbTrace.html +++ b/nuttx/Documentation/UsbTrace.html @@ -1,332 +1,332 @@ - - -NuttX USB Trace Capability - - - -

                            - - - - -
                            -

                            NuttX USB Device Trace

                            -

                            Last Updated: March 20, 2011

                            -
                            -

                            -

                            USB Device Tracing Controls. - The NuttX USB device subsystem supports a fairly sophisticated tracing facility. - The basic trace cabability is controlled by these NuttX configuration settings: -

                            -
                              -
                            • CONFIG_USBDEV_TRACE: Enables USB tracing
                            • -
                            • CONFIG_USBDEV_TRACE_NRECORDS: Number of trace entries to remember
                            • -
                            -

                            Trace IDs. - The trace facility works like this: - When enabled, USB events that occur in either the USB device driver or in the USB class driver are logged. - These events are described in include/nuttx/usb/usbdev_trace.h. - The logged events are identified by a set of event IDs: -

                            -
                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                              TRACE_INIT_IDInitialization events
                              TRACE_EP_IDEndpoint API calls
                              TRACE_DEV_IDUSB device API calls
                              TRACE_CLASS_IDUSB class driver API calls
                              TRACE_CLASSAPI_IDOther class driver system API calls
                              TRACE_CLASSSTATE_IDTrack class driver state changes
                              TRACE_INTENTRY_IDInterrupt handler entry
                              TRACE_INTDECODE_IDDecoded interrupt event
                              TRACE_INTEXIT_IDInterrupt handler exit
                              TRACE_OUTREQQUEUED_IDRequest queued for OUT endpoint
                              TRACE_INREQQUEUED_IDRequest queued for IN endpoint
                              TRACE_READ_IDRead (OUT) action
                              TRACE_WRITE_IDWrite (IN) action
                              TRACE_COMPLETE_IDRequest completed
                              TRACE_DEVERROR_IDUSB controller driver error event
                              TRACE_CLSERROR_IDUSB class driver error event
                            -

                            Logged Events. - Each logged event is 32-bits in size and includes -

                            -
                              -
                            1. 8-bits of the trace ID (values associated with the above)
                            2. -
                            3. 8-bits of additional trace ID data, and
                            4. -
                            5. 16-bits of additonal data.
                            6. -
                            -

                            8-bit Trace Data - The 8-bit trace data depends on the specific event ID. As examples, -

                            -
                              -
                            • - For the USB serial and mass storage class, the 8-bit event data is provided in include/nuttx/usb/usbdev_trace.h. -
                            • -
                            • - For the USB device driver, that 8-bit event data is provided within the USB device driver itself. - So, for example, the 8-bit event data for the LPC1768 USB device driver is found in arch/arm/src/lpc17xx/lpc17_usbdev.c. -
                            • -
                            -

                            16-bit Trace Data. - The 16-bit trace data provided additional context data relevant to the specific logged event. -

                            -

                            Trace Control Interfaces. - Logging of each of these kinds events can be enabled or disabled using the interfaces described in include/nuttx/usb/usbdev_trace.h. -

                            -

                            Enabling USB Device Tracing. - USB device tracing will be configured if CONFIG_USBDEV and either of the following are set in the NuttX configuration file: -

                            -
                              -
                            • CONFIG_USBDEV_TRACE, or
                            • -
                            • CONFIG_DEBUG and CONFIG_DEBUG_USB
                            • -
                            -

                            Log Data Sink. - The logged data itself may go to either (1) an internal circular buffer, or (2) may be provided on the console. - If CONFIG_USBDEV_TRACE is defined, then the trace data will go to the circular buffer. - The size of the circular buffer is determined by CONFIG_USBDEV_TRACE_NRECORDS. - Otherwise, the trace data goes to console. -

                            -

                            Example. - Here is an example of USB trace output using apps/examples/usbserial for an LPC1768 platform with the following NuttX configuration settings: -

                            -
                              -
                            • CONFIG_DEBUG, CONFIG_DEBUG_VERBOSE, CONFIG_USB -
                            • CONFIG_EXAMPLES_USBSERIAL_TRACEINIT, CONFIG_EXAMPLES_USBSERIAL_TRACECLASS, - CONFIG_EXAMPLES_USBSERIAL_TRACETRANSFERS, CONFIG_EXAMPLES_USBSERIAL_TRACECONTROLLER, - CONFIG_EXAMPLES_USBSERIAL_TRACEINTERRUPTS -
                            -

                            Console Output:

                            -
                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                               ABDE
                               usbserial_main: Registering USB serial driver
                               uart_register: Registering /dev/ttyUSB0
                               usbserial_main: Successfully registered the serial driver
                              1Class API call 1: 0000
                              2Class error: 19:0000
                               usbserial_main: ERROR: Failed to open /dev/ttyUSB0 for reading: 107
                               usbserial_main: Not connected. Wait and try again.
                              3Interrupt 1 entry: 0039
                              4Interrupt decode 7: 0019
                              5Interrupt decode 32: 0019
                              6Interrupt decode 6: 0019
                              7Class disconnect(): 0000
                              8Device pullup(): 0001
                              9Interrupt 1 exit: 0000
                            -

                            - The numbered items are USB USB trace output. - You can look in the file drivers/usbdev/usbdev_trprintf.c to see examctly how each output line is formatted. - Here is how each line should be interpreted: -

                            -
                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                               USB EVENT ID8-bit
                              EVENT
                              DATA
                              MEANING16-bit
                              EVENT
                              DATA
                              1TRACE_CLASSAPI_ID11USBSER_TRACECLASSAPI_SETUP10000
                              2TRACE_CLSERROR_ID119USBSER_TRACEERR_SETUPNOTCONNECTED10000
                              3TRACE_INTENTRY_ID11LPC17_TRACEINTID_USB20039
                              4TRACE_INTDECODE_ID27LPC17_TRACEINTID_DEVSTAT20019
                              5TRACE_INTDECODE_ID232LPC17_TRACEINTID_SUSPENDCHG20019
                              6TRACE_INTDECODE_ID26LPC17_TRACEINTID_DEVRESET20019
                              7TRACE_CLASS_ID13(See TRACE_CLASSDISCONNECT1)0000
                              8TRACE_DEV_ID16(See TRACE_DEVPULLUP1)0001
                              9TRACE_INTEXIT_ID11LPC17_TRACEINTID_USB20000
                              -

                              NOTES:
                              - 1See include/nuttx/usb/usbdev_trace.h
                              - 2See arch/arm/src/lpc17xx/lpc17_usbdev.c -

                              -
                            -

                            - In the above example you can see that: -

                            -
                              -
                            • 1. - The serial class USB setup method was called for the USB serial class. - This is the corresponds to the following logic in drivers/usbdev/pl2303.c: -
                                -static int pl2303_setup(FAR struct uart_dev_s *dev)
                                -{
                                -  ...
                                -  usbtrace(PL2303_CLASSAPI_SETUP, 0);
                                -  ...
                                -
                              -
                            • -
                            • 2. - An error occurred while processing the setup command because no configuration has yet been selected by the host. - This corresponds to the following logic in drivers/usbdev/pl2303.c: -
                                -static int pl2303_setup(FAR struct uart_dev_s *dev)
                                -{
                                -  ...
                                -  /* Check if we have been configured */
                                -
                                -  if (priv->config == PL2303_CONFIGIDNONE)
                                -    {
                                -      usbtrace(TRACE_CLSERROR(USBSER_TRACEERR_SETUPNOTCONNECTED), 0);
                                -      return -ENOTCONN;
                                -    }
                                -  ...
                                -
                              -
                            • 3-6. - Here is a USB interrupt that suspends and resets the device. -
                            • -
                            • 7-8. - During the interrupt processing the serial class is disconnected -
                            • -
                            • 9. - And the interrupt returns -
                            • -
                            - - + + +NuttX USB Trace Capability + + + +

                            + + + + +
                            +

                            NuttX USB Device Trace

                            +

                            Last Updated: March 20, 2011

                            +
                            +

                            +

                            USB Device Tracing Controls. + The NuttX USB device subsystem supports a fairly sophisticated tracing facility. + The basic trace cabability is controlled by these NuttX configuration settings: +

                            +
                              +
                            • CONFIG_USBDEV_TRACE: Enables USB tracing
                            • +
                            • CONFIG_USBDEV_TRACE_NRECORDS: Number of trace entries to remember
                            • +
                            +

                            Trace IDs. + The trace facility works like this: + When enabled, USB events that occur in either the USB device driver or in the USB class driver are logged. + These events are described in include/nuttx/usb/usbdev_trace.h. + The logged events are identified by a set of event IDs: +

                            +
                              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                              TRACE_INIT_IDInitialization events
                              TRACE_EP_IDEndpoint API calls
                              TRACE_DEV_IDUSB device API calls
                              TRACE_CLASS_IDUSB class driver API calls
                              TRACE_CLASSAPI_IDOther class driver system API calls
                              TRACE_CLASSSTATE_IDTrack class driver state changes
                              TRACE_INTENTRY_IDInterrupt handler entry
                              TRACE_INTDECODE_IDDecoded interrupt event
                              TRACE_INTEXIT_IDInterrupt handler exit
                              TRACE_OUTREQQUEUED_IDRequest queued for OUT endpoint
                              TRACE_INREQQUEUED_IDRequest queued for IN endpoint
                              TRACE_READ_IDRead (OUT) action
                              TRACE_WRITE_IDWrite (IN) action
                              TRACE_COMPLETE_IDRequest completed
                              TRACE_DEVERROR_IDUSB controller driver error event
                              TRACE_CLSERROR_IDUSB class driver error event
                            +

                            Logged Events. + Each logged event is 32-bits in size and includes +

                            +
                              +
                            1. 8-bits of the trace ID (values associated with the above)
                            2. +
                            3. 8-bits of additional trace ID data, and
                            4. +
                            5. 16-bits of additonal data.
                            6. +
                            +

                            8-bit Trace Data + The 8-bit trace data depends on the specific event ID. As examples, +

                            +
                              +
                            • + For the USB serial and mass storage class, the 8-bit event data is provided in include/nuttx/usb/usbdev_trace.h. +
                            • +
                            • + For the USB device driver, that 8-bit event data is provided within the USB device driver itself. + So, for example, the 8-bit event data for the LPC1768 USB device driver is found in arch/arm/src/lpc17xx/lpc17_usbdev.c. +
                            • +
                            +

                            16-bit Trace Data. + The 16-bit trace data provided additional context data relevant to the specific logged event. +

                            +

                            Trace Control Interfaces. + Logging of each of these kinds events can be enabled or disabled using the interfaces described in include/nuttx/usb/usbdev_trace.h. +

                            +

                            Enabling USB Device Tracing. + USB device tracing will be configured if CONFIG_USBDEV and either of the following are set in the NuttX configuration file: +

                            +
                              +
                            • CONFIG_USBDEV_TRACE, or
                            • +
                            • CONFIG_DEBUG and CONFIG_DEBUG_USB
                            • +
                            +

                            Log Data Sink. + The logged data itself may go to either (1) an internal circular buffer, or (2) may be provided on the console. + If CONFIG_USBDEV_TRACE is defined, then the trace data will go to the circular buffer. + The size of the circular buffer is determined by CONFIG_USBDEV_TRACE_NRECORDS. + Otherwise, the trace data goes to console. +

                            +

                            Example. + Here is an example of USB trace output using apps/examples/usbserial for an LPC1768 platform with the following NuttX configuration settings: +

                            +
                              +
                            • CONFIG_DEBUG, CONFIG_DEBUG_VERBOSE, CONFIG_USB +
                            • CONFIG_EXAMPLES_USBSERIAL_TRACEINIT, CONFIG_EXAMPLES_USBSERIAL_TRACECLASS, + CONFIG_EXAMPLES_USBSERIAL_TRACETRANSFERS, CONFIG_EXAMPLES_USBSERIAL_TRACECONTROLLER, + CONFIG_EXAMPLES_USBSERIAL_TRACEINTERRUPTS +
                            +

                            Console Output:

                            +
                              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                               ABDE
                               usbserial_main: Registering USB serial driver
                               uart_register: Registering /dev/ttyUSB0
                               usbserial_main: Successfully registered the serial driver
                              1Class API call 1: 0000
                              2Class error: 19:0000
                               usbserial_main: ERROR: Failed to open /dev/ttyUSB0 for reading: 107
                               usbserial_main: Not connected. Wait and try again.
                              3Interrupt 1 entry: 0039
                              4Interrupt decode 7: 0019
                              5Interrupt decode 32: 0019
                              6Interrupt decode 6: 0019
                              7Class disconnect(): 0000
                              8Device pullup(): 0001
                              9Interrupt 1 exit: 0000
                            +

                            + The numbered items are USB USB trace output. + You can look in the file drivers/usbdev/usbdev_trprintf.c to see examctly how each output line is formatted. + Here is how each line should be interpreted: +

                            +
                              + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                               USB EVENT ID8-bit
                              EVENT
                              DATA
                              MEANING16-bit
                              EVENT
                              DATA
                              1TRACE_CLASSAPI_ID11USBSER_TRACECLASSAPI_SETUP10000
                              2TRACE_CLSERROR_ID119USBSER_TRACEERR_SETUPNOTCONNECTED10000
                              3TRACE_INTENTRY_ID11LPC17_TRACEINTID_USB20039
                              4TRACE_INTDECODE_ID27LPC17_TRACEINTID_DEVSTAT20019
                              5TRACE_INTDECODE_ID232LPC17_TRACEINTID_SUSPENDCHG20019
                              6TRACE_INTDECODE_ID26LPC17_TRACEINTID_DEVRESET20019
                              7TRACE_CLASS_ID13(See TRACE_CLASSDISCONNECT1)0000
                              8TRACE_DEV_ID16(See TRACE_DEVPULLUP1)0001
                              9TRACE_INTEXIT_ID11LPC17_TRACEINTID_USB20000
                              +

                              NOTES:
                              + 1See include/nuttx/usb/usbdev_trace.h
                              + 2See arch/arm/src/lpc17xx/lpc17_usbdev.c +

                              +
                            +

                            + In the above example you can see that: +

                            +
                              +
                            • 1. + The serial class USB setup method was called for the USB serial class. + This is the corresponds to the following logic in drivers/usbdev/pl2303.c: +
                                +static int pl2303_setup(FAR struct uart_dev_s *dev)
                                +{
                                +  ...
                                +  usbtrace(PL2303_CLASSAPI_SETUP, 0);
                                +  ...
                                +
                              +
                            • +
                            • 2. + An error occurred while processing the setup command because no configuration has yet been selected by the host. + This corresponds to the following logic in drivers/usbdev/pl2303.c: +
                                +static int pl2303_setup(FAR struct uart_dev_s *dev)
                                +{
                                +  ...
                                +  /* Check if we have been configured */
                                +
                                +  if (priv->config == PL2303_CONFIGIDNONE)
                                +    {
                                +      usbtrace(TRACE_CLSERROR(USBSER_TRACEERR_SETUPNOTCONNECTED), 0);
                                +      return -ENOTCONN;
                                +    }
                                +  ...
                                +
                              +
                            • 3-6. + Here is a USB interrupt that suspends and resets the device. +
                            • +
                            • 7-8. + During the interrupt processing the serial class is disconnected +
                            • +
                            • 9. + And the interrupt returns +
                            • +
                            + + diff --git a/nuttx/configs/Kconfig b/nuttx/configs/Kconfig index 752a5b0983..600e74ef44 100644 --- a/nuttx/configs/Kconfig +++ b/nuttx/configs/Kconfig @@ -42,7 +42,7 @@ config ARCH_BOARD_C5471EVM This is a port to the Spectrum Digital C5471 evaluation board. The TMS320C5471 is a dual core processor from TI with an ARM7TDMI general purpose processor and a c54 DSP. It is also known as TMS320DA180 or just DA180. - NuttX runs on the ARM core and is built with a GNU arm-elf toolchain*. + NuttX runs on the ARM core and is built with a GNU arm-nuttx-elf toolchain*. This port is complete and verified. config ARCH_BOARD_COMPALE88 @@ -80,7 +80,7 @@ config ARCH_BOARD_EA3131 select ARCH_HAVE_BUTTONS ---help--- Embedded Artists EA3131 Development board. This board is based on the - an NXP LPC3131 MCU. This OS is built with the arm-elf toolchain*. + an NXP LPC3131 MCU. This OS is built with the arm-nuttx-elf toolchain*. STATUS: This port is complete and mature. config ARCH_BOARD_EA3152 @@ -90,7 +90,7 @@ config ARCH_BOARD_EA3152 select ARCH_HAVE_BUTTONS ---help--- Embedded Artists EA3152 Development board. This board is based on the - an NXP LPC3152 MCU. This OS is built with the arm-elf toolchain*. + an NXP LPC3152 MCU. This OS is built with the arm-nuttx-elf toolchain*. STATUS: This port is has not be exercised well, but since it is a simple derivative of the ea3131, it should be fully functional. @@ -101,7 +101,7 @@ config ARCH_BOARD_EAGLE100 ---help--- Micromint Eagle-100 Development board. This board is based on the an ARM Cortex-M3 MCU, the Luminary LM3S6918. This OS is built with the - arm-elf toolchain*. STATUS: This port is complete and mature. + arm-nuttx-elf toolchain*. STATUS: This port is complete and mature. config ARCH_BOARD_EKK_LM3S9B96 bool "TI/Stellaris EKK-LM3S9B96" @@ -184,7 +184,7 @@ config ARCH_BOARD_LM3S6965EK ---help--- Stellaris LM3S6965 Evaluation Kit. This board is based on the an ARM Cortex-M3 MCU, the Luminary/TI LM3S6965. This OS is built with the - arm-elf toolchain*. STATUS: This port is complete and mature. + arm-nuttx-elf toolchain*. STATUS: This port is complete and mature. config ARCH_BOARD_LM3S8962EK bool "Stellaris LMS38962 Evaluation Kit" @@ -215,7 +215,7 @@ config ARCH_BOARD_M68332EVB depends on ARCH_M68332 ---help--- This is a work in progress for the venerable m68322evb board from - Motorola. This OS is also built with the arm-elf toolchain. STATUS: + Motorola. This OS is also built with the arm-nuttx-elf toolchain. STATUS: This port was never completed. config ARCH_BOARD_MBED @@ -225,7 +225,7 @@ config ARCH_BOARD_MBED ---help--- The configurations in this directory support the mbed board (http://mbed.org) that features the NXP LPC1768 microcontroller. This OS is also built - with the arm-elf toolchain*. STATUS: Contributed. + with the arm-nuttx-elf toolchain*. STATUS: Contributed. config ARCH_BOARD_MCU123 bool "mcu123.com LPC2148 Development Board" @@ -233,7 +233,7 @@ config ARCH_BOARD_MCU123 select ARCH_HAVE_LEDS ---help--- This port is for the NXP LPC2148 as provided on the mcu123.com - lpc214x development board. This OS is also built with the arm-elf + lpc214x development board. This OS is also built with the arm-nuttx-elf toolchain*. The port supports serial, timer0, spi, and usb. config ARCH_BOARD_MICROPENDOUS3 @@ -270,7 +270,7 @@ config ARCH_BOARD_NTOSD_DM320 depends on ARCH_CHIP_DM320 select ARCH_HAVE_LEDS ---help--- - This port uses the Neuros OSD v1.0 Dev Board with a GNU arm-elf + This port uses the Neuros OSD v1.0 Dev Board with a GNU arm-nuttx-elf toolchain*: see http://wiki.neurostechnology.com/index.php/OSD_1.0_Developer_Home @@ -316,7 +316,7 @@ config ARCH_BOARD_OLIMEXLPC2378 depends on ARCH_CHIP_LPC2378 select ARCH_HAVE_LEDS ---help--- - This port uses the Olimex-lpc2378 board and a GNU arm-elf toolchain* under + This port uses the Olimex-lpc2378 board and a GNU arm-nuttx-elf toolchain* under Linux or Cygwin. STATUS: ostest and NSH configurations available. This port for the NXP LPC2378 was contributed by Rommel Marcelo. @@ -326,7 +326,7 @@ config ARCH_BOARD_OLIMEX_STRP711 select ARCH_HAVE_LEDS select ARCH_HAVE_BUTTONS ---help--- - This port uses the Olimex STR-P711 board and a GNU arm-elf toolchain* under + This port uses the Olimex STR-P711 board and a GNU arm-nuttx-elf toolchain* under Linux or Cygwin. See the http://www.olimex.com/dev/str-p711.html" for further information. STATUS: Configurations for the basic OS test and NSH are complete and verified. @@ -335,7 +335,7 @@ config ARCH_BOARD_OLIMEX_STM32P107 bool "Olimex STM32 P107 board" depends on ARCH_CHIP_STM32F107VC ---help--- - This port uses the Olimex STM32 P107 board and a GNU arm-elf toolchain* under + This port uses the Olimex STM32 P107 board and a GNU arm-nuttx-elf toolchain* under Linux or Cygwin. See the http://www.olimex.com for further information. This board features the STMicro STM32F107VC MCU @@ -411,7 +411,7 @@ config ARCH_BOARD_SHENZHOU select ARCH_HAVE_BUTTONS select ARCH_HAVE_IRQBUTTONS ---help--- - This port uses the Shenzhou STM32 F107 board and a GNU arm-elf toolchain* under + This port uses the Shenzhou STM32 F107 board and a GNU arm-nuttx-elf toolchain* under Linux or Cygwin. See the http://www.armjishu.com for further information. This board features the STMicro STM32F107VC MCU diff --git a/nuttx/configs/README.txt b/nuttx/configs/README.txt index 5bbec874f7..e6bde645d1 100644 --- a/nuttx/configs/README.txt +++ b/nuttx/configs/README.txt @@ -1524,7 +1524,7 @@ configs/c5471evm This is a port to the Spectrum Digital C5471 evaluation board. The TMS320C5471 is a dual core processor from TI with an ARM7TDMI general purpose processor and a c54 DSP. It is also known as TMS320DA180 or just DA180. - NuttX runs on the ARM core and is built with a GNU arm-elf toolchain*. + NuttX runs on the ARM core and is built with a GNU arm-nuttx-elf toolchain*. This port is complete and verified. configs/compal_e88 and compal_e99 @@ -1540,19 +1540,19 @@ configs/demo9s12ne64 configs/ea3131 Embedded Artists EA3131 Development board. This board is based on the - an NXP LPC3131 MCU. This OS is built with the arm-elf toolchain*. + an NXP LPC3131 MCU. This OS is built with the arm-nuttx-elf toolchain*. STATUS: This port is complete and mature. configs/ea3152 Embedded Artists EA3152 Development board. This board is based on the - an NXP LPC3152 MCU. This OS is built with the arm-elf toolchain*. + an NXP LPC3152 MCU. This OS is built with the arm-nuttx-elf toolchain*. STATUS: This port is has not be exercised well, but since it is a simple derivative of the ea3131, it should be fully functional. configs/eagle100 Micromint Eagle-100 Development board. This board is based on the an ARM Cortex-M3 MCU, the Luminary LM3S6918. This OS is built with the - arm-elf toolchain*. STATUS: This port is complete and mature. + arm-nuttx-elf toolchain*. STATUS: This port is complete and mature. configs/ekk-lm3s9b96 TI/Stellaris EKK-LM3S9B96 board. This board is based on the @@ -1591,7 +1591,7 @@ configs/lm3s6432-s2e configs/lm3s6965-ek Stellaris LM3S6965 Evaluation Kit. This board is based on the an ARM Cortex-M3 MCU, the Luminary/TI LM3S6965. This OS is built with the - arm-elf toolchain*. STATUS: This port is complete and mature. + arm-nuttx-elf toolchain*. STATUS: This port is complete and mature. configs/lm3s8962-ek Stellaris LMS38962 Evaluation Kit. @@ -1607,17 +1607,17 @@ configs/lpc4330-xplorer configs/m68322evb This is a work in progress for the venerable m68322evb board from - Motorola. This OS is also built with the arm-elf toolchain*. STATUS: + Motorola. This OS is also built with the arm-nuttx-elf toolchain*. STATUS: This port was never completed. configs/mbed The configurations in this directory support the mbed board (http://mbed.org) that features the NXP LPC1768 microcontroller. This OS is also built - with the arm-elf toolchain*. STATUS: Contributed. + with the arm-nuttx-elf toolchain*. STATUS: Contributed. configs/mcu123-lpc214x This port is for the NXP LPC2148 as provided on the mcu123.com - lpc214x development board. This OS is also built with the arm-elf + lpc214x development board. This OS is also built with the arm-nuttx-elf toolchain*. The port supports serial, timer0, spi, and usb. configs/micropendous3 @@ -1642,7 +1642,7 @@ configs/ne64badge not yet been fully tested. configs/ntosd-dm320 - This port uses the Neuros OSD v1.0 Dev Board with a GNU arm-elf + This port uses the Neuros OSD v1.0 Dev Board with a GNU arm-nuttx-elf toolchain*: see http://wiki.neurostechnology.com/index.php/OSD_1.0_Developer_Home @@ -1666,18 +1666,18 @@ configs/olimex-lpc1766stk Linux or Cygwin. STATUS: Complete and mature. configs/olimex-lpc2378 - This port uses the Olimex-lpc2378 board and a GNU arm-elf toolchain* under + This port uses the Olimex-lpc2378 board and a GNU arm-nuttx-elf toolchain* under Linux or Cygwin. STATUS: ostest and NSH configurations available. This port for the NXP LPC2378 was contributed by Rommel Marcelo. configs/olimex-stm32-p107 - This port uses the Olimex STM32-P107 board (STM32F107VC) and a GNU arm-elf + This port uses the Olimex STM32-P107 board (STM32F107VC) and a GNU arm-nuttx-elf toolchain* under Linux or Cygwin. See the https://www.olimex.com/dev/stm32-p107.html for further information. Contributed by Max Holtzberg. STATUS: Configurations for the basic OS test and NSH are available and verified. configs/olimex-strp711 - This port uses the Olimex STR-P711 board and a GNU arm-elf toolchain* under + This port uses the Olimex STR-P711 board and a GNU arm-nuttx-elf toolchain* under Linux or Cygwin. See the http://www.olimex.com/dev/str-p711.html" for further information. STATUS: Configurations for the basic OS test and NSH are complete and verified. diff --git a/nuttx/configs/amber/hello/Make.defs b/nuttx/configs/amber/hello/Make.defs index 4474e1621d..66f3ff7993 100644 --- a/nuttx/configs/amber/hello/Make.defs +++ b/nuttx/configs/amber/hello/Make.defs @@ -57,7 +57,7 @@ endif ifeq ($(CONFIG_AVR_BUILDROOT),y) # NuttX buildroot GCC toolchain under Linux or Cygwin - CROSSDEV = avr-elf- + CROSSDEV = avr-nuttx-elf- MAXOPTIMIZATION = -O2 ARCHCPUFLAGS = -mmcu=atmega128 LDFLAGS += -nostartfiles -nodefaultlibs diff --git a/nuttx/configs/c5471evm/httpd/Make.defs b/nuttx/configs/c5471evm/httpd/Make.defs index 6ff007708f..ffc267530d 100644 --- a/nuttx/configs/c5471evm/httpd/Make.defs +++ b/nuttx/configs/c5471evm/httpd/Make.defs @@ -36,7 +36,7 @@ include ${TOPDIR}/.config include ${TOPDIR}/tools/Config.mk -CROSSDEV = arm-elf- +CROSSDEV = arm-nuttx-elf- CC = $(CROSSDEV)gcc CPP = $(CROSSDEV)gcc -E LD = $(CROSSDEV)ld diff --git a/nuttx/configs/c5471evm/nettest/Make.defs b/nuttx/configs/c5471evm/nettest/Make.defs index d66bb564fb..e784c11194 100644 --- a/nuttx/configs/c5471evm/nettest/Make.defs +++ b/nuttx/configs/c5471evm/nettest/Make.defs @@ -36,7 +36,7 @@ include ${TOPDIR}/.config include ${TOPDIR}/tools/Config.mk -CROSSDEV = arm-elf- +CROSSDEV = arm-nuttx-elf- CC = $(CROSSDEV)gcc CPP = $(CROSSDEV)gcc -E LD = $(CROSSDEV)ld diff --git a/nuttx/configs/c5471evm/nsh/Make.defs b/nuttx/configs/c5471evm/nsh/Make.defs index 2ffb69ffd3..d9e569158b 100644 --- a/nuttx/configs/c5471evm/nsh/Make.defs +++ b/nuttx/configs/c5471evm/nsh/Make.defs @@ -36,7 +36,7 @@ include ${TOPDIR}/.config include ${TOPDIR}/tools/Config.mk -CROSSDEV = arm-elf- +CROSSDEV = arm-nuttx-elf- CC = $(CROSSDEV)gcc CPP = $(CROSSDEV)gcc -E LD = $(CROSSDEV)ld diff --git a/nuttx/configs/c5471evm/ostest/Make.defs b/nuttx/configs/c5471evm/ostest/Make.defs index 04d6e09713..9cbfc1d1d5 100644 --- a/nuttx/configs/c5471evm/ostest/Make.defs +++ b/nuttx/configs/c5471evm/ostest/Make.defs @@ -36,7 +36,7 @@ include ${TOPDIR}/.config include ${TOPDIR}/tools/Config.mk -CROSSDEV = arm-elf- +CROSSDEV = arm-nuttx-elf- CC = $(CROSSDEV)gcc CPP = $(CROSSDEV)gcc -E LD = $(CROSSDEV)ld diff --git a/nuttx/configs/compal_e88/nsh_highram/Make.defs b/nuttx/configs/compal_e88/nsh_highram/Make.defs index b3c04930db..e99d5635d0 100644 --- a/nuttx/configs/compal_e88/nsh_highram/Make.defs +++ b/nuttx/configs/compal_e88/nsh_highram/Make.defs @@ -45,7 +45,7 @@ EXTRA_LIBS = $(OSMODIR)/src/target/firmware/comm/libcomm.a \ # ^^^ Stupid hack! Why do I have to put it twice??? endif -CROSSDEV = arm-elf- +CROSSDEV = arm-nuttx-elf- CC = $(CROSSDEV)gcc CPP = $(CROSSDEV)gcc -E LD = $(CROSSDEV)ld diff --git a/nuttx/configs/compal_e99/nsh_compalram/Make.defs b/nuttx/configs/compal_e99/nsh_compalram/Make.defs index cec8bdd1fb..4759fc76a4 100644 --- a/nuttx/configs/compal_e99/nsh_compalram/Make.defs +++ b/nuttx/configs/compal_e99/nsh_compalram/Make.defs @@ -45,7 +45,7 @@ EXTRA_LIBS = $(OSMODIR)/src/target/firmware/comm/libcomm.a \ # ^^^ Stupid hack! Why do I have to put it twice??? endif -CROSSDEV = arm-elf- +CROSSDEV = arm-nuttx-elf- CC = $(CROSSDEV)gcc CPP = $(CROSSDEV)gcc -E LD = $(CROSSDEV)ld diff --git a/nuttx/configs/compal_e99/nsh_highram/Make.defs b/nuttx/configs/compal_e99/nsh_highram/Make.defs index b3c04930db..e99d5635d0 100644 --- a/nuttx/configs/compal_e99/nsh_highram/Make.defs +++ b/nuttx/configs/compal_e99/nsh_highram/Make.defs @@ -45,7 +45,7 @@ EXTRA_LIBS = $(OSMODIR)/src/target/firmware/comm/libcomm.a \ # ^^^ Stupid hack! Why do I have to put it twice??? endif -CROSSDEV = arm-elf- +CROSSDEV = arm-nuttx-elf- CC = $(CROSSDEV)gcc CPP = $(CROSSDEV)gcc -E LD = $(CROSSDEV)ld diff --git a/nuttx/configs/demo9s12ne64/ostest/Make.defs b/nuttx/configs/demo9s12ne64/ostest/Make.defs index 9ad5036c3f..727ebb5614 100644 --- a/nuttx/configs/demo9s12ne64/ostest/Make.defs +++ b/nuttx/configs/demo9s12ne64/ostest/Make.defs @@ -39,7 +39,7 @@ include ${TOPDIR}/tools/Config.mk # Setup for the selected toolchain # NuttX buildroot under Linux or Cygwin -CROSSDEV = m9s12x-elf- +CROSSDEV = m9s12x-nuttx-elf- MAXOPTIMIZATION = -Os WINTOOL = n diff --git a/nuttx/configs/ea3131/README.txt b/nuttx/configs/ea3131/README.txt index c237345d14..a99011ec5b 100644 --- a/nuttx/configs/ea3131/README.txt +++ b/nuttx/configs/ea3131/README.txt @@ -265,7 +265,7 @@ Using OpenOCD and GDB Once the OpenOCD daemon has been started, you can connect to it via GDB using the following GDB command: - arm-elf-gdb + arm-nuttx-elf-gdb (gdb) target remote localhost:3333 And you can load the NuttX ELF file: diff --git a/nuttx/configs/ea3131/nsh/Make.defs b/nuttx/configs/ea3131/nsh/Make.defs index 9ef28c3636..cd49f56af7 100644 --- a/nuttx/configs/ea3131/nsh/Make.defs +++ b/nuttx/configs/ea3131/nsh/Make.defs @@ -56,7 +56,7 @@ ifeq ($(CONFIG_LPC31_DEVKITARM),y) endif ifeq ($(CONFIG_LPC31_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- MAXOPTIMIZATION = -Os endif diff --git a/nuttx/configs/ea3131/ostest/Make.defs b/nuttx/configs/ea3131/ostest/Make.defs index 3528b80b5d..f07f4d4529 100644 --- a/nuttx/configs/ea3131/ostest/Make.defs +++ b/nuttx/configs/ea3131/ostest/Make.defs @@ -56,7 +56,7 @@ ifeq ($(CONFIG_LPC31_DEVKITARM),y) endif ifeq ($(CONFIG_LPC31_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- MAXOPTIMIZATION = -Os endif diff --git a/nuttx/configs/ea3131/pgnsh/Make.defs b/nuttx/configs/ea3131/pgnsh/Make.defs index 7dace9854a..1097a8d728 100644 --- a/nuttx/configs/ea3131/pgnsh/Make.defs +++ b/nuttx/configs/ea3131/pgnsh/Make.defs @@ -56,7 +56,7 @@ ifeq ($(CONFIG_LPC31_DEVKITARM),y) endif ifeq ($(CONFIG_LPC31_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- MAXOPTIMIZATION = -Os endif diff --git a/nuttx/configs/ea3131/usbserial/Make.defs b/nuttx/configs/ea3131/usbserial/Make.defs index eb0da53f55..3fe5f8f931 100644 --- a/nuttx/configs/ea3131/usbserial/Make.defs +++ b/nuttx/configs/ea3131/usbserial/Make.defs @@ -56,7 +56,7 @@ ifeq ($(CONFIG_LPC31_DEVKITARM),y) endif ifeq ($(CONFIG_LPC31_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- MAXOPTIMIZATION = -Os endif diff --git a/nuttx/configs/ea3131/usbstorage/Make.defs b/nuttx/configs/ea3131/usbstorage/Make.defs index fc679e24ca..de351b2567 100644 --- a/nuttx/configs/ea3131/usbstorage/Make.defs +++ b/nuttx/configs/ea3131/usbstorage/Make.defs @@ -56,7 +56,7 @@ ifeq ($(CONFIG_LPC31_DEVKITARM),y) endif ifeq ($(CONFIG_LPC31_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- MAXOPTIMIZATION = -Os endif diff --git a/nuttx/configs/ea3152/README.txt b/nuttx/configs/ea3152/README.txt index 90be2a2201..5b6eb17a93 100644 --- a/nuttx/configs/ea3152/README.txt +++ b/nuttx/configs/ea3152/README.txt @@ -264,7 +264,7 @@ Using OpenOCD and GDB Once the OpenOCD daemon has been started, you can connect to it via GDB using the following GDB command: - arm-elf-gdb + arm-nuttx-elf-gdb (gdb) target remote localhost:3333 And you can load the NuttX ELF file: diff --git a/nuttx/configs/ea3152/ostest/Make.defs b/nuttx/configs/ea3152/ostest/Make.defs index 8872b60e41..9bb350e36c 100644 --- a/nuttx/configs/ea3152/ostest/Make.defs +++ b/nuttx/configs/ea3152/ostest/Make.defs @@ -56,7 +56,7 @@ ifeq ($(CONFIG_LPC31_DEVKITARM),y) endif ifeq ($(CONFIG_LPC31_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- MAXOPTIMIZATION = -Os endif diff --git a/nuttx/configs/eagle100/README.txt b/nuttx/configs/eagle100/README.txt index e03a92d5c6..47c4f89df0 100644 --- a/nuttx/configs/eagle100/README.txt +++ b/nuttx/configs/eagle100/README.txt @@ -36,7 +36,7 @@ GNU Toolchain Options make # Will build for the devkitARM toolchain make CROSSDEV=arm-eabi- # Will build for the devkitARM toolchain make CROSSDEV=arm-none-eabi- # Will build for the CodeSourcery toolchain - make CROSSDEV=arm-elf- # Will build for the NuttX buildroot toolchain + make CROSSDEV=arm-nuttx-elf- # Will build for the NuttX buildroot toolchain Of course, hard coding this CROSS_COMPILE value in Make.defs file will save some repetitive typing. diff --git a/nuttx/configs/eagle100/httpd/Make.defs b/nuttx/configs/eagle100/httpd/Make.defs index 1b6dc01cf0..8d3cc9c25f 100644 --- a/nuttx/configs/eagle100/httpd/Make.defs +++ b/nuttx/configs/eagle100/httpd/Make.defs @@ -40,7 +40,7 @@ include ${TOPDIR}/tools/Config.mk # make -- Will build for the devkitARM toolchain # make CROSSDEV=arm-eabi- -- Will build for the devkitARM toolchain # make CROSSDEV=arm-none-eabi- -- Will build for the CodeSourcery toolchain -# make CROSSDEV=arm-elf- -- Will build for the NuttX buildroot toolchain +# make CROSSDEV=arm-nuttx-elf- -- Will build for the NuttX buildroot toolchain CROSSDEV = arm-eabi- CC = $(CROSSDEV)gcc @@ -55,7 +55,7 @@ OBJDUMP = $(CROSSDEV)objdump ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'} ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} -ifeq ($(CROSSDEV),arm-elf-) +ifeq ($(CROSSDEV),arm-nuttx-elf-) MKDEP = $(TOPDIR)/tools/mkdeps.sh ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft ARCHINCLUDES = -I. -isystem $(TOPDIR)/include @@ -106,7 +106,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/eagle100/nettest/Make.defs b/nuttx/configs/eagle100/nettest/Make.defs index ef761182f3..ca50492828 100644 --- a/nuttx/configs/eagle100/nettest/Make.defs +++ b/nuttx/configs/eagle100/nettest/Make.defs @@ -40,7 +40,7 @@ include ${TOPDIR}/tools/Config.mk # make -- Will build for the devkitARM toolchain # make CROSSDEV=arm-eabi- -- Will build for the devkitARM toolchain # make CROSSDEV=arm-none-eabi- -- Will build for the CodeSourcery toolchain -# make CROSSDEV=arm-elf- -- Will build for the NuttX buildroot toolchain +# make CROSSDEV=arm-nuttx-elf- -- Will build for the NuttX buildroot toolchain CROSSDEV = arm-eabi- CC = $(CROSSDEV)gcc @@ -55,7 +55,7 @@ OBJDUMP = $(CROSSDEV)objdump ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'} ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} -ifeq ($(CROSSDEV),arm-elf-) +ifeq ($(CROSSDEV),arm-nuttx-elf-) MKDEP = $(TOPDIR)/tools/mkdeps.sh ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft ARCHINCLUDES = -I. -isystem $(TOPDIR)/include @@ -106,7 +106,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/eagle100/nsh/Make.defs b/nuttx/configs/eagle100/nsh/Make.defs index 4f024e2636..4992994951 100644 --- a/nuttx/configs/eagle100/nsh/Make.defs +++ b/nuttx/configs/eagle100/nsh/Make.defs @@ -40,7 +40,7 @@ include ${TOPDIR}/tools/Config.mk # make -- Will build for the devkitARM toolchain # make CROSSDEV=arm-eabi- -- Will build for the devkitARM toolchain # make CROSSDEV=arm-none-eabi- -- Will build for the CodeSourcery toolchain -# make CROSSDEV=arm-elf- -- Will build for the NuttX buildroot toolchain +# make CROSSDEV=arm-nuttx-elf- -- Will build for the NuttX buildroot toolchain CROSSDEV = arm-eabi- CC = $(CROSSDEV)gcc @@ -55,7 +55,7 @@ OBJDUMP = $(CROSSDEV)objdump ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'} ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} -ifeq ($(CROSSDEV),arm-elf-) +ifeq ($(CROSSDEV),arm-nuttx-elf-) MKDEP = $(TOPDIR)/tools/mkdeps.sh ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft ARCHINCLUDES = -I. -isystem $(TOPDIR)/include @@ -106,7 +106,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/eagle100/nxflat/Make.defs b/nuttx/configs/eagle100/nxflat/Make.defs index d3107f1126..d735c3942a 100644 --- a/nuttx/configs/eagle100/nxflat/Make.defs +++ b/nuttx/configs/eagle100/nxflat/Make.defs @@ -40,7 +40,7 @@ include ${TOPDIR}/tools/Config.mk # make -- Will build for the devkitARM toolchain # make CROSSDEV=arm-eabi- -- Will build for the devkitARM toolchain # make CROSSDEV=arm-none-eabi- -- Will build for the CodeSourcery toolchain -# make CROSSDEV=arm-elf- -- Will build for the NuttX buildroot toolchain +# make CROSSDEV=arm-nuttx-elf- -- Will build for the NuttX buildroot toolchain CROSSDEV = arm-eabi- CC = $(CROSSDEV)gcc @@ -58,7 +58,7 @@ LDNXFLAT = ldnxflat ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'} ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} -ifeq ($(CROSSDEV),arm-elf-) +ifeq ($(CROSSDEV),arm-nuttx-elf-) MKDEP = $(TOPDIR)/tools/mkdeps.sh ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft ARCHINCLUDES = -I. -isystem $(TOPDIR)/include @@ -109,7 +109,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/eagle100/ostest/Make.defs b/nuttx/configs/eagle100/ostest/Make.defs index 7dd98c21af..641fcbaba2 100644 --- a/nuttx/configs/eagle100/ostest/Make.defs +++ b/nuttx/configs/eagle100/ostest/Make.defs @@ -40,7 +40,7 @@ include ${TOPDIR}/tools/Config.mk # make -- Will build for the devkitARM toolchain # make CROSSDEV=arm-eabi- -- Will build for the devkitARM toolchain # make CROSSDEV=arm-none-eabi- -- Will build for the CodeSourcery toolchain -# make CROSSDEV=arm-elf- -- Will build for the NuttX buildroot toolchain +# make CROSSDEV=arm-nuttx-elf- -- Will build for the NuttX buildroot toolchain CROSSDEV = arm-eabi- CC = $(CROSSDEV)gcc @@ -55,7 +55,7 @@ OBJDUMP = $(CROSSDEV)objdump ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'} ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} -ifeq ($(CROSSDEV),arm-elf-) +ifeq ($(CROSSDEV),arm-nuttx-elf-) MKDEP = $(TOPDIR)/tools/mkdeps.sh ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft ARCHINCLUDES = -I. -isystem $(TOPDIR)/include @@ -106,7 +106,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/eagle100/thttpd/Make.defs b/nuttx/configs/eagle100/thttpd/Make.defs index a864867e72..999db3a591 100644 --- a/nuttx/configs/eagle100/thttpd/Make.defs +++ b/nuttx/configs/eagle100/thttpd/Make.defs @@ -40,7 +40,7 @@ include ${TOPDIR}/tools/Config.mk # make -- Will build for the devkitARM toolchain # make CROSSDEV=arm-eabi- -- Will build for the devkitARM toolchain # make CROSSDEV=arm-none-eabi- -- Will build for the CodeSourcery toolchain -# make CROSSDEV=arm-elf- -- Will build for the NuttX buildroot toolchain +# make CROSSDEV=arm-nuttx-elf- -- Will build for the NuttX buildroot toolchain CROSSDEV = arm-eabi- CC = $(CROSSDEV)gcc @@ -58,7 +58,7 @@ LDNXFLAT = ldnxflat ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'} ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} -ifeq ($(CROSSDEV),arm-elf-) +ifeq ($(CROSSDEV),arm-nuttx-elf-) MKDEP = $(TOPDIR)/tools/mkdeps.sh ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft ARCHINCLUDES = -I. -isystem $(TOPDIR)/include @@ -109,7 +109,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/ekk-lm3s9b96/nsh/Make.defs b/nuttx/configs/ekk-lm3s9b96/nsh/Make.defs index a4223e5137..1be7fc8f0b 100644 --- a/nuttx/configs/ekk-lm3s9b96/nsh/Make.defs +++ b/nuttx/configs/ekk-lm3s9b96/nsh/Make.defs @@ -59,7 +59,7 @@ ifeq ($(CONFIG_LM3S_DEVKITARM),y) endif ifeq ($(CONFIG_LM3S_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -121,7 +121,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/ekk-lm3s9b96/ostest/Make.defs b/nuttx/configs/ekk-lm3s9b96/ostest/Make.defs index 2da0c421a6..e0fae20f0f 100644 --- a/nuttx/configs/ekk-lm3s9b96/ostest/Make.defs +++ b/nuttx/configs/ekk-lm3s9b96/ostest/Make.defs @@ -59,7 +59,7 @@ ifeq ($(CONFIG_LM3S_DEVKITARM),y) endif ifeq ($(CONFIG_LM3S_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -121,7 +121,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/fire-stm32v2/nsh/Make.defs b/nuttx/configs/fire-stm32v2/nsh/Make.defs index 567e820639..aaf0e8980c 100644 --- a/nuttx/configs/fire-stm32v2/nsh/Make.defs +++ b/nuttx/configs/fire-stm32v2/nsh/Make.defs @@ -82,8 +82,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -153,7 +153,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/hymini-stm32v/buttons/Make.defs b/nuttx/configs/hymini-stm32v/buttons/Make.defs index f78c3aed35..bcc1f6845f 100644 --- a/nuttx/configs/hymini-stm32v/buttons/Make.defs +++ b/nuttx/configs/hymini-stm32v/buttons/Make.defs @@ -70,7 +70,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/hymini-stm32v/nsh/Make.defs b/nuttx/configs/hymini-stm32v/nsh/Make.defs index 91aa063835..fae6edc080 100644 --- a/nuttx/configs/hymini-stm32v/nsh/Make.defs +++ b/nuttx/configs/hymini-stm32v/nsh/Make.defs @@ -70,7 +70,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/hymini-stm32v/nsh2/Make.defs b/nuttx/configs/hymini-stm32v/nsh2/Make.defs index f5c9d11c69..1cf89238ea 100644 --- a/nuttx/configs/hymini-stm32v/nsh2/Make.defs +++ b/nuttx/configs/hymini-stm32v/nsh2/Make.defs @@ -70,7 +70,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/hymini-stm32v/nx/Make.defs b/nuttx/configs/hymini-stm32v/nx/Make.defs index ac140b3543..8ebded0944 100644 --- a/nuttx/configs/hymini-stm32v/nx/Make.defs +++ b/nuttx/configs/hymini-stm32v/nx/Make.defs @@ -70,7 +70,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/hymini-stm32v/nxlines/Make.defs b/nuttx/configs/hymini-stm32v/nxlines/Make.defs index 897af1fcd8..15521d6212 100644 --- a/nuttx/configs/hymini-stm32v/nxlines/Make.defs +++ b/nuttx/configs/hymini-stm32v/nxlines/Make.defs @@ -73,7 +73,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -134,7 +134,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/hymini-stm32v/usbserial/Make.defs b/nuttx/configs/hymini-stm32v/usbserial/Make.defs index 29be9190fe..b58c4c1fe1 100644 --- a/nuttx/configs/hymini-stm32v/usbserial/Make.defs +++ b/nuttx/configs/hymini-stm32v/usbserial/Make.defs @@ -70,7 +70,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/hymini-stm32v/usbstorage/Make.defs b/nuttx/configs/hymini-stm32v/usbstorage/Make.defs index 3e89daa6d2..f3264ab937 100644 --- a/nuttx/configs/hymini-stm32v/usbstorage/Make.defs +++ b/nuttx/configs/hymini-stm32v/usbstorage/Make.defs @@ -70,7 +70,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/kwikstik-k40/ostest/Make.defs b/nuttx/configs/kwikstik-k40/ostest/Make.defs index 0f03b6c19d..43a5dd01e0 100644 --- a/nuttx/configs/kwikstik-k40/ostest/Make.defs +++ b/nuttx/configs/kwikstik-k40/ostest/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_KINETIS_DEVKITARM),y) endif ifeq ($(CONFIG_KINETIS_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft -mlong-calls MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/lincoln60/nsh/Make.defs b/nuttx/configs/lincoln60/nsh/Make.defs index cca519da40..9750a0e87c 100644 --- a/nuttx/configs/lincoln60/nsh/Make.defs +++ b/nuttx/configs/lincoln60/nsh/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/lincoln60/ostest/Make.defs b/nuttx/configs/lincoln60/ostest/Make.defs index 29ef7c3277..c90939429b 100644 --- a/nuttx/configs/lincoln60/ostest/Make.defs +++ b/nuttx/configs/lincoln60/ostest/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/lm3s6432-s2e/nsh/Make.defs b/nuttx/configs/lm3s6432-s2e/nsh/Make.defs index 3bac1a4dbf..ef39674b2a 100644 --- a/nuttx/configs/lm3s6432-s2e/nsh/Make.defs +++ b/nuttx/configs/lm3s6432-s2e/nsh/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LM3S_DEVKITARM),y) endif ifeq ($(CONFIG_LM3S_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/lm3s6432-s2e/ostest/Make.defs b/nuttx/configs/lm3s6432-s2e/ostest/Make.defs index 7d528cdf0f..6036891832 100644 --- a/nuttx/configs/lm3s6432-s2e/ostest/Make.defs +++ b/nuttx/configs/lm3s6432-s2e/ostest/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LM3S_DEVKITARM),y) endif ifeq ($(CONFIG_LM3S_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/lm3s6965-ek/nsh/Make.defs b/nuttx/configs/lm3s6965-ek/nsh/Make.defs index 52a3c7bd1b..17df0ebf7b 100644 --- a/nuttx/configs/lm3s6965-ek/nsh/Make.defs +++ b/nuttx/configs/lm3s6965-ek/nsh/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LM3S_DEVKITARM),y) endif ifeq ($(CONFIG_LM3S_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/lm3s6965-ek/nx/Make.defs b/nuttx/configs/lm3s6965-ek/nx/Make.defs index 21b60450f6..5ab0cfd260 100644 --- a/nuttx/configs/lm3s6965-ek/nx/Make.defs +++ b/nuttx/configs/lm3s6965-ek/nx/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LM3S_DEVKITARM),y) endif ifeq ($(CONFIG_LM3S_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/lm3s6965-ek/ostest/Make.defs b/nuttx/configs/lm3s6965-ek/ostest/Make.defs index a834a57ef0..5e49273a0c 100644 --- a/nuttx/configs/lm3s6965-ek/ostest/Make.defs +++ b/nuttx/configs/lm3s6965-ek/ostest/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LM3S_DEVKITARM),y) endif ifeq ($(CONFIG_LM3S_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/lm3s8962-ek/nsh/Make.defs b/nuttx/configs/lm3s8962-ek/nsh/Make.defs index c37875c642..cc7bce1e5c 100644 --- a/nuttx/configs/lm3s8962-ek/nsh/Make.defs +++ b/nuttx/configs/lm3s8962-ek/nsh/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LM3S_DEVKITARM),y) endif ifeq ($(CONFIG_LM3S_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/lm3s8962-ek/nx/Make.defs b/nuttx/configs/lm3s8962-ek/nx/Make.defs index be150074cc..b97aaa31ec 100644 --- a/nuttx/configs/lm3s8962-ek/nx/Make.defs +++ b/nuttx/configs/lm3s8962-ek/nx/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LM3S_DEVKITARM),y) endif ifeq ($(CONFIG_LM3S_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/lm3s8962-ek/ostest/Make.defs b/nuttx/configs/lm3s8962-ek/ostest/Make.defs index 43bcfcddde..4b4863d7cb 100644 --- a/nuttx/configs/lm3s8962-ek/ostest/Make.defs +++ b/nuttx/configs/lm3s8962-ek/ostest/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LM3S_DEVKITARM),y) endif ifeq ($(CONFIG_LM3S_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/lpc4330-xplorer/nsh/Make.defs b/nuttx/configs/lpc4330-xplorer/nsh/Make.defs index 341671a977..960fb2a41a 100644 --- a/nuttx/configs/lpc4330-xplorer/nsh/Make.defs +++ b/nuttx/configs/lpc4330-xplorer/nsh/Make.defs @@ -93,8 +93,8 @@ ifeq ($(CONFIG_LPC43_DEVKITARM),y) endif ifeq ($(CONFIG_LPC43_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m4 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -176,7 +176,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/lpc4330-xplorer/ostest/Make.defs b/nuttx/configs/lpc4330-xplorer/ostest/Make.defs index 341671a977..960fb2a41a 100644 --- a/nuttx/configs/lpc4330-xplorer/ostest/Make.defs +++ b/nuttx/configs/lpc4330-xplorer/ostest/Make.defs @@ -93,8 +93,8 @@ ifeq ($(CONFIG_LPC43_DEVKITARM),y) endif ifeq ($(CONFIG_LPC43_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m4 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -176,7 +176,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/lpcxpresso-lpc1768/dhcpd/Make.defs b/nuttx/configs/lpcxpresso-lpc1768/dhcpd/Make.defs index 8ece92ca9c..804e20ecd1 100644 --- a/nuttx/configs/lpcxpresso-lpc1768/dhcpd/Make.defs +++ b/nuttx/configs/lpcxpresso-lpc1768/dhcpd/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/lpcxpresso-lpc1768/nsh/Make.defs b/nuttx/configs/lpcxpresso-lpc1768/nsh/Make.defs index 21d84b4940..8c6ad9ab85 100644 --- a/nuttx/configs/lpcxpresso-lpc1768/nsh/Make.defs +++ b/nuttx/configs/lpcxpresso-lpc1768/nsh/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/lpcxpresso-lpc1768/nx/Make.defs b/nuttx/configs/lpcxpresso-lpc1768/nx/Make.defs index 9a7d190692..a535fd03d0 100644 --- a/nuttx/configs/lpcxpresso-lpc1768/nx/Make.defs +++ b/nuttx/configs/lpcxpresso-lpc1768/nx/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/lpcxpresso-lpc1768/ostest/Make.defs b/nuttx/configs/lpcxpresso-lpc1768/ostest/Make.defs index 1dd92adb73..1b38f2d6b0 100644 --- a/nuttx/configs/lpcxpresso-lpc1768/ostest/Make.defs +++ b/nuttx/configs/lpcxpresso-lpc1768/ostest/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/lpcxpresso-lpc1768/thttpd/Make.defs b/nuttx/configs/lpcxpresso-lpc1768/thttpd/Make.defs index fc40cce07d..810d6d7da8 100644 --- a/nuttx/configs/lpcxpresso-lpc1768/thttpd/Make.defs +++ b/nuttx/configs/lpcxpresso-lpc1768/thttpd/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -137,7 +137,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/lpcxpresso-lpc1768/usbstorage/Make.defs b/nuttx/configs/lpcxpresso-lpc1768/usbstorage/Make.defs index d63e11efe1..5342dde5b0 100644 --- a/nuttx/configs/lpcxpresso-lpc1768/usbstorage/Make.defs +++ b/nuttx/configs/lpcxpresso-lpc1768/usbstorage/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/m68332evb/Make.defs b/nuttx/configs/m68332evb/Make.defs index fdae944f01..fb85cf8272 100644 --- a/nuttx/configs/m68332evb/Make.defs +++ b/nuttx/configs/m68332evb/Make.defs @@ -50,7 +50,7 @@ ARCHDEFINES = ARCHINCLUDES = -I. -isystem $(TOPDIR)/include ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/ld.script -CROSSDEV = m68k-elf- +CROSSDEV = m68k-nuttx-elf- CC = $(CROSSDEV)gcc CPP = $(CROSSDEV)gcc -E LD = $(CROSSDEV)ld diff --git a/nuttx/configs/m68332evb/doc/m68k-defconfig b/nuttx/configs/m68332evb/doc/m68k-defconfig index cbe3c11cd5..60f2e4cbd6 100644 --- a/nuttx/configs/m68332evb/doc/m68k-defconfig +++ b/nuttx/configs/m68332evb/doc/m68k-defconfig @@ -34,7 +34,7 @@ BR2_STAGING_DIR="$(BUILD_DIR)/staging_dir" BR2_NUTTX_DIR="$(TOPDIR)/../nuttx" BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" -BR2_GNU_BUILD_SUFFIX="m68k-elf" +BR2_GNU_BUILD_SUFFIX="m68k-nuttx-elf" BR2_GNU_TARGET_SUFFIX="elf" # BR2_PREFER_IMA is not set # BR2_DEPRECATED is not set diff --git a/nuttx/configs/mbed/hidkbd/Make.defs b/nuttx/configs/mbed/hidkbd/Make.defs index f033c685e4..262571e452 100644 --- a/nuttx/configs/mbed/hidkbd/Make.defs +++ b/nuttx/configs/mbed/hidkbd/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/mbed/nsh/Make.defs b/nuttx/configs/mbed/nsh/Make.defs index 468952aa25..40c4c94f31 100644 --- a/nuttx/configs/mbed/nsh/Make.defs +++ b/nuttx/configs/mbed/nsh/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/mcu123-lpc214x/README.txt b/nuttx/configs/mcu123-lpc214x/README.txt index 8236798cc8..b819abf368 100644 --- a/nuttx/configs/mcu123-lpc214x/README.txt +++ b/nuttx/configs/mcu123-lpc214x/README.txt @@ -42,7 +42,7 @@ GNU Toolchain Options make # Will build for the NuttX buildroot toolchain make CROSSDEV=arm-eabi- # Will build for the devkitARM toolchain make CROSSDEV=arm-none-eabi- # Will build for the CodeSourcery toolchain - make CROSSDEV=arm-elf- # Will build for the NuttX buildroot toolchain + make CROSSDEV=arm-nuttx-elf- # Will build for the NuttX buildroot toolchain Of course, hard coding this CROSS_COMPILE value in Make.defs file will save some repetitive typing. diff --git a/nuttx/configs/mcu123-lpc214x/composite/Make.defs b/nuttx/configs/mcu123-lpc214x/composite/Make.defs index 0173a21c6d..f2f0ee8e88 100644 --- a/nuttx/configs/mcu123-lpc214x/composite/Make.defs +++ b/nuttx/configs/mcu123-lpc214x/composite/Make.defs @@ -40,7 +40,7 @@ include ${TOPDIR}/tools/Config.mk # make -- Will build for the CodeSourcery toolchain # make CROSSDEV=arm-eabi- -- Will build for the devkitARM toolchain # make CROSSDEV=arm-none-eabi- -- Will build for the CodeSourcery toolchain -# make CROSSDEV=arm-elf- -- Will build for the NuttX buildroot toolchain +# make CROSSDEV=arm-nuttx-elf- -- Will build for the NuttX buildroot toolchain CROSSDEV = arm-none-eabi- CC = $(CROSSDEV)gcc @@ -63,7 +63,7 @@ OBJCOPYARGS = -R .note -R .note.gnu.build-id -R .comment endif endif -ifeq ($(CROSSDEV),arm-elf-) +ifeq ($(CROSSDEV),arm-nuttx-elf-) MKDEP = $(TOPDIR)/tools/mkdeps.sh ARCHINCLUDES = -I. -isystem $(TOPDIR)/include ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx @@ -118,7 +118,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/mcu123-lpc214x/nsh/Make.defs b/nuttx/configs/mcu123-lpc214x/nsh/Make.defs index daa7a34665..de09916e5f 100644 --- a/nuttx/configs/mcu123-lpc214x/nsh/Make.defs +++ b/nuttx/configs/mcu123-lpc214x/nsh/Make.defs @@ -40,9 +40,9 @@ include ${TOPDIR}/tools/Config.mk # make -- Will build for the NuttX buildroot toolchain # make CROSSDEV=arm-eabi- -- Will build for the devkitARM toolchain # make CROSSDEV=arm-none-eabi- -- Will build for the CodeSourcery toolchain -# make CROSSDEV=arm-elf- -- Will build for the NuttX buildroot toolchain +# make CROSSDEV=arm-nuttx-elf- -- Will build for the NuttX buildroot toolchain -CROSSDEV = arm-elf- +CROSSDEV = arm-nuttx-elf- CC = $(CROSSDEV)gcc CXX = $(CROSSDEV)g++ CPP = $(CROSSDEV)gcc -E @@ -63,7 +63,7 @@ OBJCOPYARGS = -R .note -R .note.gnu.build-id -R .comment endif endif -ifeq ($(CROSSDEV),arm-elf-) +ifeq ($(CROSSDEV),arm-nuttx-elf-) MKDEP = $(TOPDIR)/tools/mkdeps.sh ARCHINCLUDES = -I. -isystem $(TOPDIR)/include ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx @@ -118,7 +118,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/mcu123-lpc214x/ostest/Make.defs b/nuttx/configs/mcu123-lpc214x/ostest/Make.defs index d807c7bbd2..bc72ca9bdc 100644 --- a/nuttx/configs/mcu123-lpc214x/ostest/Make.defs +++ b/nuttx/configs/mcu123-lpc214x/ostest/Make.defs @@ -40,9 +40,9 @@ include ${TOPDIR}/tools/Config.mk # make -- Will build for the NuttX buildroot toolchain # make CROSSDEV=arm-eabi- -- Will build for the devkitARM toolchain # make CROSSDEV=arm-none-eabi- -- Will build for the CodeSourcery toolchain -# make CROSSDEV=arm-elf- -- Will build for the NuttX buildroot toolchain +# make CROSSDEV=arm-nuttx-elf- -- Will build for the NuttX buildroot toolchain -CROSSDEV = arm-elf- +CROSSDEV = arm-nuttx-elf- CC = $(CROSSDEV)gcc CXX = $(CROSSDEV)g++ CPP = $(CROSSDEV)gcc -E @@ -63,7 +63,7 @@ OBJCOPYARGS = -R .note -R .note.gnu.build-id -R .comment endif endif -ifeq ($(CROSSDEV),arm-elf-) +ifeq ($(CROSSDEV),arm-nuttx-elf-) MKDEP = $(TOPDIR)/tools/mkdeps.sh ARCHINCLUDES = -I. -isystem $(TOPDIR)/include ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx @@ -118,7 +118,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/mcu123-lpc214x/usbserial/Make.defs b/nuttx/configs/mcu123-lpc214x/usbserial/Make.defs index 22edf3bab6..106224ef12 100644 --- a/nuttx/configs/mcu123-lpc214x/usbserial/Make.defs +++ b/nuttx/configs/mcu123-lpc214x/usbserial/Make.defs @@ -40,9 +40,9 @@ include ${TOPDIR}/tools/Config.mk # make -- Will build for the NuttX buildroot toolchain # make CROSSDEV=arm-eabi- -- Will build for the devkitARM toolchain # make CROSSDEV=arm-none-eabi- -- Will build for the CodeSourcery toolchain -# make CROSSDEV=arm-elf- -- Will build for the NuttX buildroot toolchain +# make CROSSDEV=arm-nuttx-elf- -- Will build for the NuttX buildroot toolchain -CROSSDEV = arm-elf- +CROSSDEV = arm-nuttx-elf- CC = $(CROSSDEV)gcc CXX = $(CROSSDEV)g++ CPP = $(CROSSDEV)gcc -E @@ -63,7 +63,7 @@ OBJCOPYARGS = -R .note -R .note.gnu.build-id -R .comment endif endif -ifeq ($(CROSSDEV),arm-elf-) +ifeq ($(CROSSDEV),arm-nuttx-elf-) MKDEP = $(TOPDIR)/tools/mkdeps.sh ARCHINCLUDES = -I. -isystem $(TOPDIR)/include ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx @@ -118,7 +118,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/mcu123-lpc214x/usbstorage/Make.defs b/nuttx/configs/mcu123-lpc214x/usbstorage/Make.defs index 732a6733ba..bf1b9cab45 100644 --- a/nuttx/configs/mcu123-lpc214x/usbstorage/Make.defs +++ b/nuttx/configs/mcu123-lpc214x/usbstorage/Make.defs @@ -40,9 +40,9 @@ include ${TOPDIR}/tools/Config.mk # make -- Will build for the NuttX buildroot toolchain # make CROSSDEV=arm-eabi- -- Will build for the devkitARM toolchain # make CROSSDEV=arm-none-eabi- -- Will build for the CodeSourcery toolchain -# make CROSSDEV=arm-elf- -- Will build for the NuttX buildroot toolchain +# make CROSSDEV=arm-nuttx-elf- -- Will build for the NuttX buildroot toolchain -CROSSDEV = arm-elf- +CROSSDEV = arm-nuttx-elf- CC = $(CROSSDEV)gcc CXX = $(CROSSDEV)g++ CPP = $(CROSSDEV)gcc -E @@ -63,7 +63,7 @@ OBJCOPYARGS = -R .note -R .note.gnu.build-id -R .comment endif endif -ifeq ($(CROSSDEV),arm-elf-) +ifeq ($(CROSSDEV),arm-nuttx-elf-) MKDEP = $(TOPDIR)/tools/mkdeps.sh ARCHINCLUDES = -I. -isystem $(TOPDIR)/include ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx @@ -118,7 +118,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/micropendous3/README.txt b/nuttx/configs/micropendous3/README.txt index e7b2041aa5..c05f1ddd5b 100644 --- a/nuttx/configs/micropendous3/README.txt +++ b/nuttx/configs/micropendous3/README.txt @@ -523,7 +523,7 @@ Where is one of the following: FLASH/SRAM Requirements (as of 6/16/2011): - $ avr-elf-size nuttx + $ avr-nuttx-elf-size nuttx text data bss dec hex filename 24816 978 308 26102 65f6 nuttx diff --git a/nuttx/configs/micropendous3/hello/Make.defs b/nuttx/configs/micropendous3/hello/Make.defs index 058f166905..178f355567 100644 --- a/nuttx/configs/micropendous3/hello/Make.defs +++ b/nuttx/configs/micropendous3/hello/Make.defs @@ -57,7 +57,7 @@ endif ifeq ($(CONFIG_AVR_BUILDROOT),y) # NuttX buildroot GCC toolchain under Linux or Cygwin - CROSSDEV = avr-elf- + CROSSDEV = avr-nuttx-elf- MAXOPTIMIZATION = -O2 ARCHCPUFLAGS = -mmcu=at90usb647 LDFLAGS += -nostartfiles -nodefaultlibs diff --git a/nuttx/configs/mx1ads/ostest/Make.defs b/nuttx/configs/mx1ads/ostest/Make.defs index c80af5c62d..71e053b0aa 100644 --- a/nuttx/configs/mx1ads/ostest/Make.defs +++ b/nuttx/configs/mx1ads/ostest/Make.defs @@ -36,7 +36,7 @@ include ${TOPDIR}/.config include ${TOPDIR}/tools/Config.mk -CROSSDEV = arm-elf- +CROSSDEV = arm-nuttx-elf- CC = $(CROSSDEV)gcc CXX = $(CROSSDEV)g++ CPP = $(CROSSDEV)gcc -E diff --git a/nuttx/configs/ne64badge/ostest/Make.defs b/nuttx/configs/ne64badge/ostest/Make.defs index 4dc164d153..9521a0a660 100644 --- a/nuttx/configs/ne64badge/ostest/Make.defs +++ b/nuttx/configs/ne64badge/ostest/Make.defs @@ -39,7 +39,7 @@ include ${TOPDIR}/tools/Config.mk # Setup for the selected toolchain # NuttX buildroot under Linux or Cygwin -CROSSDEV = m9s12x-elf- +CROSSDEV = m9s12x-nuttx-elf- MAXOPTIMIZATION = -Os WINTOOL = n diff --git a/nuttx/configs/ntosd-dm320/nettest/Make.defs b/nuttx/configs/ntosd-dm320/nettest/Make.defs index b3d49bc731..30d369c2ac 100644 --- a/nuttx/configs/ntosd-dm320/nettest/Make.defs +++ b/nuttx/configs/ntosd-dm320/nettest/Make.defs @@ -56,7 +56,7 @@ ifeq ($(CONFIG_DM320_DEVKITARM),y) endif ifeq ($(CONFIG_DM320_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- MAXOPTIMIZATION = -Os endif diff --git a/nuttx/configs/ntosd-dm320/nsh/Make.defs b/nuttx/configs/ntosd-dm320/nsh/Make.defs index 6a590a442a..14038f7562 100644 --- a/nuttx/configs/ntosd-dm320/nsh/Make.defs +++ b/nuttx/configs/ntosd-dm320/nsh/Make.defs @@ -56,7 +56,7 @@ ifeq ($(CONFIG_DM320_DEVKITARM),y) endif ifeq ($(CONFIG_DM320_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- MAXOPTIMIZATION = -Os endif diff --git a/nuttx/configs/ntosd-dm320/ostest/Make.defs b/nuttx/configs/ntosd-dm320/ostest/Make.defs index dda36c8feb..4618c42467 100644 --- a/nuttx/configs/ntosd-dm320/ostest/Make.defs +++ b/nuttx/configs/ntosd-dm320/ostest/Make.defs @@ -56,7 +56,7 @@ ifeq ($(CONFIG_DM320_DEVKITARM),y) endif ifeq ($(CONFIG_DM320_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- MAXOPTIMIZATION = -Os endif diff --git a/nuttx/configs/ntosd-dm320/poll/Make.defs b/nuttx/configs/ntosd-dm320/poll/Make.defs index a3abff2ef2..c06139bd6d 100644 --- a/nuttx/configs/ntosd-dm320/poll/Make.defs +++ b/nuttx/configs/ntosd-dm320/poll/Make.defs @@ -56,7 +56,7 @@ ifeq ($(CONFIG_DM320_DEVKITARM),y) endif ifeq ($(CONFIG_DM320_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- MAXOPTIMIZATION = -Os endif diff --git a/nuttx/configs/ntosd-dm320/thttpd/Make.defs b/nuttx/configs/ntosd-dm320/thttpd/Make.defs index 40ecf053f3..075f72eaa2 100644 --- a/nuttx/configs/ntosd-dm320/thttpd/Make.defs +++ b/nuttx/configs/ntosd-dm320/thttpd/Make.defs @@ -56,7 +56,7 @@ ifeq ($(CONFIG_DM320_DEVKITARM),y) endif ifeq ($(CONFIG_DM320_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- MAXOPTIMIZATION = -Os endif diff --git a/nuttx/configs/ntosd-dm320/udp/Make.defs b/nuttx/configs/ntosd-dm320/udp/Make.defs index 6122aeb11c..66750f13d6 100644 --- a/nuttx/configs/ntosd-dm320/udp/Make.defs +++ b/nuttx/configs/ntosd-dm320/udp/Make.defs @@ -56,7 +56,7 @@ ifeq ($(CONFIG_DM320_DEVKITARM),y) endif ifeq ($(CONFIG_DM320_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- MAXOPTIMIZATION = -Os endif diff --git a/nuttx/configs/ntosd-dm320/uip/Make.defs b/nuttx/configs/ntosd-dm320/uip/Make.defs index 758924a157..d59b96e7c7 100644 --- a/nuttx/configs/ntosd-dm320/uip/Make.defs +++ b/nuttx/configs/ntosd-dm320/uip/Make.defs @@ -56,7 +56,7 @@ ifeq ($(CONFIG_DM320_DEVKITARM),y) endif ifeq ($(CONFIG_DM320_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- MAXOPTIMIZATION = -Os endif diff --git a/nuttx/configs/nucleus2g/nsh/Make.defs b/nuttx/configs/nucleus2g/nsh/Make.defs index 65ec1c8f01..3b8f857a6a 100644 --- a/nuttx/configs/nucleus2g/nsh/Make.defs +++ b/nuttx/configs/nucleus2g/nsh/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/nucleus2g/ostest/Make.defs b/nuttx/configs/nucleus2g/ostest/Make.defs index 413f401787..aa0e6f8648 100644 --- a/nuttx/configs/nucleus2g/ostest/Make.defs +++ b/nuttx/configs/nucleus2g/ostest/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/nucleus2g/usbserial/Make.defs b/nuttx/configs/nucleus2g/usbserial/Make.defs index 5e473323eb..483fd52609 100644 --- a/nuttx/configs/nucleus2g/usbserial/Make.defs +++ b/nuttx/configs/nucleus2g/usbserial/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/nucleus2g/usbstorage/Make.defs b/nuttx/configs/nucleus2g/usbstorage/Make.defs index 35487f85be..7a9c1fa6bc 100644 --- a/nuttx/configs/nucleus2g/usbstorage/Make.defs +++ b/nuttx/configs/nucleus2g/usbstorage/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/olimex-lpc1766stk/README.txt b/nuttx/configs/olimex-lpc1766stk/README.txt index aaf40f9ff2..a8bea4d0ef 100644 --- a/nuttx/configs/olimex-lpc1766stk/README.txt +++ b/nuttx/configs/olimex-lpc1766stk/README.txt @@ -534,7 +534,7 @@ Using OpenOCD and GDB with an FT2232 JTAG emulator Once the OpenOCD daemon has been started, you can connect to it via GDB using the following GDB command: - arm-elf-gdb + arm-nuttx-elf-gdb (gdb) target remote localhost:3333 NOTE: The name of your GDB program may differ. For example, with the diff --git a/nuttx/configs/olimex-lpc1766stk/ftpc/Make.defs b/nuttx/configs/olimex-lpc1766stk/ftpc/Make.defs index 82cf0a2cd6..5671fdffb5 100644 --- a/nuttx/configs/olimex-lpc1766stk/ftpc/Make.defs +++ b/nuttx/configs/olimex-lpc1766stk/ftpc/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -123,7 +123,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/olimex-lpc1766stk/hidkbd/Make.defs b/nuttx/configs/olimex-lpc1766stk/hidkbd/Make.defs index dd97168142..1e7160c385 100644 --- a/nuttx/configs/olimex-lpc1766stk/hidkbd/Make.defs +++ b/nuttx/configs/olimex-lpc1766stk/hidkbd/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/olimex-lpc1766stk/nettest/Make.defs b/nuttx/configs/olimex-lpc1766stk/nettest/Make.defs index 634d97315e..2502cf97b8 100644 --- a/nuttx/configs/olimex-lpc1766stk/nettest/Make.defs +++ b/nuttx/configs/olimex-lpc1766stk/nettest/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/olimex-lpc1766stk/nsh/Make.defs b/nuttx/configs/olimex-lpc1766stk/nsh/Make.defs index af9750f406..7e62fd7fb2 100644 --- a/nuttx/configs/olimex-lpc1766stk/nsh/Make.defs +++ b/nuttx/configs/olimex-lpc1766stk/nsh/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/olimex-lpc1766stk/nx/Make.defs b/nuttx/configs/olimex-lpc1766stk/nx/Make.defs index 685d827dad..735e2bd0a2 100644 --- a/nuttx/configs/olimex-lpc1766stk/nx/Make.defs +++ b/nuttx/configs/olimex-lpc1766stk/nx/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/olimex-lpc1766stk/ostest/Make.defs b/nuttx/configs/olimex-lpc1766stk/ostest/Make.defs index 84467ae64b..7a9475761a 100644 --- a/nuttx/configs/olimex-lpc1766stk/ostest/Make.defs +++ b/nuttx/configs/olimex-lpc1766stk/ostest/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/olimex-lpc1766stk/slip-httpd/Make.defs b/nuttx/configs/olimex-lpc1766stk/slip-httpd/Make.defs index 61b7f41e74..35d2c6480f 100644 --- a/nuttx/configs/olimex-lpc1766stk/slip-httpd/Make.defs +++ b/nuttx/configs/olimex-lpc1766stk/slip-httpd/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -123,7 +123,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/olimex-lpc1766stk/thttpd/Make.defs b/nuttx/configs/olimex-lpc1766stk/thttpd/Make.defs index 0e37dbaa32..dbd84c2a6f 100644 --- a/nuttx/configs/olimex-lpc1766stk/thttpd/Make.defs +++ b/nuttx/configs/olimex-lpc1766stk/thttpd/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -123,7 +123,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/olimex-lpc1766stk/usbserial/Make.defs b/nuttx/configs/olimex-lpc1766stk/usbserial/Make.defs index 7a56eb6223..07cd41d468 100644 --- a/nuttx/configs/olimex-lpc1766stk/usbserial/Make.defs +++ b/nuttx/configs/olimex-lpc1766stk/usbserial/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/olimex-lpc1766stk/usbstorage/Make.defs b/nuttx/configs/olimex-lpc1766stk/usbstorage/Make.defs index 627cdd64e3..76a6927ee3 100644 --- a/nuttx/configs/olimex-lpc1766stk/usbstorage/Make.defs +++ b/nuttx/configs/olimex-lpc1766stk/usbstorage/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/olimex-lpc1766stk/wlan/Make.defs b/nuttx/configs/olimex-lpc1766stk/wlan/Make.defs index 1087fd8ccf..0cc0d7edd3 100644 --- a/nuttx/configs/olimex-lpc1766stk/wlan/Make.defs +++ b/nuttx/configs/olimex-lpc1766stk/wlan/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LPC17_DEVKITARM),y) endif ifeq ($(CONFIG_LPC17_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/olimex-lpc2378/nsh/Make.defs b/nuttx/configs/olimex-lpc2378/nsh/Make.defs index f81cfb448c..2821aa73c2 100644 --- a/nuttx/configs/olimex-lpc2378/nsh/Make.defs +++ b/nuttx/configs/olimex-lpc2378/nsh/Make.defs @@ -61,7 +61,7 @@ ifeq ($(CONFIG_OLIMEX_LPC2378_DEVKITARM),y) endif ifeq ($(CONFIG_OLIMEX_LPC2378_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- MAXOPTIMIZATION = -Os endif @@ -137,7 +137,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG),y) diff --git a/nuttx/configs/olimex-lpc2378/ostest/Make.defs b/nuttx/configs/olimex-lpc2378/ostest/Make.defs index d13e5eda09..69be8db5b1 100644 --- a/nuttx/configs/olimex-lpc2378/ostest/Make.defs +++ b/nuttx/configs/olimex-lpc2378/ostest/Make.defs @@ -61,7 +61,7 @@ ifeq ($(CONFIG_OLIMEX_LPC2378_DEVKITARM),y) endif ifeq ($(CONFIG_OLIMEX_LPC2378_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- MAXOPTIMIZATION = -Os endif @@ -137,7 +137,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG),y) diff --git a/nuttx/configs/olimex-stm32-p107/nsh/Make.defs b/nuttx/configs/olimex-stm32-p107/nsh/Make.defs index a1a30f8791..0108ef1eec 100644 --- a/nuttx/configs/olimex-stm32-p107/nsh/Make.defs +++ b/nuttx/configs/olimex-stm32-p107/nsh/Make.defs @@ -70,7 +70,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/olimex-stm32-p107/ostest/Make.defs b/nuttx/configs/olimex-stm32-p107/ostest/Make.defs index 2e8cf87ac5..7cf5e765ff 100644 --- a/nuttx/configs/olimex-stm32-p107/ostest/Make.defs +++ b/nuttx/configs/olimex-stm32-p107/ostest/Make.defs @@ -70,7 +70,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/olimex-strp711/README.txt b/nuttx/configs/olimex-strp711/README.txt index 955887d7b7..74168dbfa9 100644 --- a/nuttx/configs/olimex-strp711/README.txt +++ b/nuttx/configs/olimex-strp711/README.txt @@ -127,7 +127,7 @@ GNU Toolchain Options make # Will build for the NuttX buildroot toolchain make CROSSDEV=arm-eabi- # Will build for the devkitARM toolchain make CROSSDEV=arm-none-eabi- # Will build for the CodeSourcery toolchain - make CROSSDEV=arm-elf- # Will build for the NuttX buildroot toolchain + make CROSSDEV=arm-nuttx-elf- # Will build for the NuttX buildroot toolchain Of course, hard coding this CROSS_COMPILE value in Make.defs file will save some repetitive typing. @@ -267,7 +267,7 @@ GENERAL STEPS: 6. GDB - start arm-elf-gdb + start arm-nuttx-elf-gdb type 'file ' to load the executable type 'set debug remote 1' to enable tracing of gdb protocol (if required) type 'target remote localhost:3333' to connect to the target @@ -301,7 +301,7 @@ Windows OpenOCD will Olimex JTAG Once the OpenOCD daemon has been started, you can connect to it via GDB using the following GDB command: - arm-elf-gdb + arm-nuttx-elf-gdb (gdb) target remote localhost:3333 And you can load the NuttX ELF file into FLASH: diff --git a/nuttx/configs/olimex-strp711/nettest/Make.defs b/nuttx/configs/olimex-strp711/nettest/Make.defs index 9676e54fae..e4b8a9852c 100644 --- a/nuttx/configs/olimex-strp711/nettest/Make.defs +++ b/nuttx/configs/olimex-strp711/nettest/Make.defs @@ -40,9 +40,9 @@ include ${TOPDIR}/tools/Config.mk # make -- Will build for the NuttX buildroot toolchain # make CROSSDEV=arm-eabi- -- Will build for the devkitARM toolchain # make CROSSDEV=arm-none-eabi- -- Will build for the CodeSourcery toolchain -# make CROSSDEV=arm-elf- -- Will build for the NuttX buildroot toolchain +# make CROSSDEV=arm-nuttx-elf- -- Will build for the NuttX buildroot toolchain -CROSSDEV = arm-elf- +CROSSDEV = arm-nuttx-elf- CC = $(CROSSDEV)gcc CXX = $(CROSSDEV)g++ CPP = $(CROSSDEV)gcc -E @@ -63,7 +63,7 @@ OBJCOPYARGS = -R .note -R .note.gnu.build-id -R .comment endif endif -ifeq ($(CROSSDEV),arm-elf-) +ifeq ($(CROSSDEV),arm-nuttx-elf-) MKDEP = $(TOPDIR)/tools/mkdeps.sh ARCHINCLUDES = -I. -isystem $(TOPDIR)/include ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx @@ -118,7 +118,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/olimex-strp711/nsh/Make.defs b/nuttx/configs/olimex-strp711/nsh/Make.defs index ad75862fa1..9ef265d0e1 100644 --- a/nuttx/configs/olimex-strp711/nsh/Make.defs +++ b/nuttx/configs/olimex-strp711/nsh/Make.defs @@ -40,9 +40,9 @@ include ${TOPDIR}/tools/Config.mk # make -- Will build for the NuttX buildroot toolchain # make CROSSDEV=arm-eabi- -- Will build for the devkitARM toolchain # make CROSSDEV=arm-none-eabi- -- Will build for the CodeSourcery toolchain -# make CROSSDEV=arm-elf- -- Will build for the NuttX buildroot toolchain +# make CROSSDEV=arm-nuttx-elf- -- Will build for the NuttX buildroot toolchain -CROSSDEV = arm-elf- +CROSSDEV = arm-nuttx-elf- CC = $(CROSSDEV)gcc CXX = $(CROSSDEV)g++ CPP = $(CROSSDEV)gcc -E @@ -63,7 +63,7 @@ OBJCOPYARGS = -R .note -R .note.gnu.build-id -R .comment endif endif -ifeq ($(CROSSDEV),arm-elf-) +ifeq ($(CROSSDEV),arm-nuttx-elf-) MKDEP = $(TOPDIR)/tools/mkdeps.sh ARCHINCLUDES = -I. -isystem $(TOPDIR)/include ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx @@ -118,7 +118,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/olimex-strp711/ostest/Make.defs b/nuttx/configs/olimex-strp711/ostest/Make.defs index 38fc7f5f22..f4bb09d991 100644 --- a/nuttx/configs/olimex-strp711/ostest/Make.defs +++ b/nuttx/configs/olimex-strp711/ostest/Make.defs @@ -40,9 +40,9 @@ include ${TOPDIR}/tools/Config.mk # make -- Will build for the NuttX buildroot toolchain # make CROSSDEV=arm-eabi- -- Will build for the devkitARM toolchain # make CROSSDEV=arm-none-eabi- -- Will build for the CodeSourcery toolchain -# make CROSSDEV=arm-elf- -- Will build for the NuttX buildroot toolchain +# make CROSSDEV=arm-nuttx-elf- -- Will build for the NuttX buildroot toolchain -CROSSDEV = arm-elf- +CROSSDEV = arm-nuttx-elf- CC = $(CROSSDEV)gcc CXX = $(CROSSDEV)g++ CPP = $(CROSSDEV)gcc -E @@ -63,7 +63,7 @@ OBJCOPYARGS = -R .note -R .note.gnu.build-id -R .comment endif endif -ifeq ($(CROSSDEV),arm-elf-) +ifeq ($(CROSSDEV),arm-nuttx-elf-) MKDEP = $(TOPDIR)/tools/mkdeps.sh ARCHINCLUDES = -I. -isystem $(TOPDIR)/include ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx @@ -118,7 +118,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/qemu-i486/nsh/Make.defs b/nuttx/configs/qemu-i486/nsh/Make.defs index c68d3d34e9..8b5fe61f65 100644 --- a/nuttx/configs/qemu-i486/nsh/Make.defs +++ b/nuttx/configs/qemu-i486/nsh/Make.defs @@ -78,7 +78,7 @@ endif # Cygwin toolchains don't generate ELF binaries. ifeq ($(HOSTOS),Cygwin) -CROSSDEV = i486-elf- +CROSSDEV = i486-nuttx-elf- else CROSSDEV = endif diff --git a/nuttx/configs/qemu-i486/ostest/Make.defs b/nuttx/configs/qemu-i486/ostest/Make.defs index fa7dc7bf84..0a2423456e 100644 --- a/nuttx/configs/qemu-i486/ostest/Make.defs +++ b/nuttx/configs/qemu-i486/ostest/Make.defs @@ -78,7 +78,7 @@ endif # Cygwin toolchains don't generate ELF binaries. ifeq ($(HOSTOS),Cygwin) -CROSSDEV = i486-elf- +CROSSDEV = i486-nuttx-elf- else CROSSDEV = endif diff --git a/nuttx/configs/sam3u-ek/knsh/Make.defs b/nuttx/configs/sam3u-ek/knsh/Make.defs index cce80669a8..bbe8b23c06 100644 --- a/nuttx/configs/sam3u-ek/knsh/Make.defs +++ b/nuttx/configs/sam3u-ek/knsh/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_SAM3U_DEVKITARM),y) endif ifeq ($(CONFIG_SAM3U_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/sam3u-ek/nsh/Make.defs b/nuttx/configs/sam3u-ek/nsh/Make.defs index e4f24326d3..0f236114f0 100644 --- a/nuttx/configs/sam3u-ek/nsh/Make.defs +++ b/nuttx/configs/sam3u-ek/nsh/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_SAM3U_DEVKITARM),y) endif ifeq ($(CONFIG_SAM3U_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/sam3u-ek/nx/Make.defs b/nuttx/configs/sam3u-ek/nx/Make.defs index e98aaf9d69..10cabe5a56 100644 --- a/nuttx/configs/sam3u-ek/nx/Make.defs +++ b/nuttx/configs/sam3u-ek/nx/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_SAM3U_DEVKITARM),y) endif ifeq ($(CONFIG_SAM3U_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/sam3u-ek/ostest/Make.defs b/nuttx/configs/sam3u-ek/ostest/Make.defs index 7d38aedb2c..7689fb2a18 100644 --- a/nuttx/configs/sam3u-ek/ostest/Make.defs +++ b/nuttx/configs/sam3u-ek/ostest/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_SAM3U_DEVKITARM),y) endif ifeq ($(CONFIG_SAM3U_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/sam3u-ek/touchscreen/Make.defs b/nuttx/configs/sam3u-ek/touchscreen/Make.defs index 1dccbc6bc2..2047daf684 100644 --- a/nuttx/configs/sam3u-ek/touchscreen/Make.defs +++ b/nuttx/configs/sam3u-ek/touchscreen/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_SAM3U_DEVKITARM),y) endif ifeq ($(CONFIG_SAM3U_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/shenzhou/nsh/Make.defs b/nuttx/configs/shenzhou/nsh/Make.defs index 847866420a..95495d4c43 100644 --- a/nuttx/configs/shenzhou/nsh/Make.defs +++ b/nuttx/configs/shenzhou/nsh/Make.defs @@ -82,8 +82,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -153,7 +153,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/shenzhou/nxwm/Make.defs b/nuttx/configs/shenzhou/nxwm/Make.defs index 0025282b44..96e0ffd4b2 100644 --- a/nuttx/configs/shenzhou/nxwm/Make.defs +++ b/nuttx/configs/shenzhou/nxwm/Make.defs @@ -82,8 +82,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -153,7 +153,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/skp16c26/README.txt b/nuttx/configs/skp16c26/README.txt index dc94bbf8d4..31332b59b6 100644 --- a/nuttx/configs/skp16c26/README.txt +++ b/nuttx/configs/skp16c26/README.txt @@ -1,112 +1,112 @@ -configs/skp16c26/README.txt -^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -1. The buildroot package can be used to build an M16C toolchain. The toolchain - buildroot can be downloaded from misc/buildroot in the NuttX SVN. Insructions - for building the toolchain are provided below. - - However, the target cannot be built because the GNU m16c-elf-ld link fails with - the following message: - - m32c-elf-ld: BFD (GNU Binutils) 2.19 assertion fail /home/Owner/projects/nuttx/buildroot/toolchain_build_m32c/binutils-2.19/bfd/elf32-m32c.c:482 - - Where the reference line is: - - /* If the symbol is out of range for a 16-bit address, - we must have allocated a plt entry. */ - BFD_ASSERT (*plt_offset != (bfd_vma) -1); - - No workaround is known at this time. This is a show stopper for M16C. - -2. A supported version of the M16C toolchain is available here: - - http://www.kpitgnutools.com/index.php - - This download is free but requires registration. Unfortunately, this v0901 of - this toolchain shows the same behavior: - - c:\Hew3\Tools\KPIT Cummins\GNUM16CM32C-ELF\v0901\m32c-elf\bin\m32c-elf-ld.exe: BFD (GNU Binutils) 2.19-GNUM16CM32C_v0901 assertion fail /home/kpit/fsfsrc/binutils-2.19/bfd/elf32-m32c.c:482 - -It is possible that this error messasge my be telling me -- a very roundabout way -- -that I have exceeded the FLASH region, but I think that unlikely (it is difficult -to know if the link does not complete gracefully). - -BUILDING THE R8C/M16C/M32C GNU TOOLCHAIN USING BUILDROOT -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -NOTE: See the toolchain issues above -- you may not want to waste your time. - -1. CD to the correct directory. - - Change to the directory just above the NuttX installation. If is - where NuttX is installed, then cd to /.. - -2. Get and Install the buildroot Module - - a. Using a release tarball: - - cd /.. - Download the appropriate buildroot package. - unpack the buildroot package - rename the directory to buildroot - - b. Using SVN - - Check out the misc/buildroot module. SVN checkout instructions: - - svn checkout svn://svn.code.sf.net/p/nuttx/code/trunk/buildroot buildroot - - Make the archive directory: - - mkdir archive - - The /../buildroot is where the toolchain is built; - The /../archive directory is where toolchain sources will be downloaded. - -3. Make sure that NuttX is configured - - cd /tools - ./configure.sh - -4. Configure and Make the buildroot - - cd buildroot - cp configs/m32c-defconfig-4.2.4 .config - make oldconfig - make - - This will download the large source packages for the toolchain and build the toolchain. - The resulting binaries will be under buildroot/build_m32c. There will also be a - large build directory called toolchain_build_m32c; this directory can be removed once - the build completes successfully. - -Cygwin GCC BUILD NOTES -^^^^^^^^^^^^^^^^^^^^^^ - On Cygwin, the buildroot 'make' command will fail with an error like: - - "... - build/genchecksum cc1-dummy > cc1-checksum.c - opening cc1-dummy: No such file or directory - ..." - - This is caused because on Cygwin, host executables will be generated with the extension .exe - and, apparently, the make variable "exeext" is set incorrectly. A work around after the - above occurs is: - - cd toolchain_build_m32c/gcc-4.2.4-initial/gcc # Go to the directory where error occurred - mv cc1-dummy.exe cc1-dummy # Rename the executable without .exe - rm cc1-checksum.c # Get rid of the bad generated file - - Then resume the buildroot make: - - cd - # Back to the buildroot make directory - make # Restart the build - - GCC is built twice. First a initial, "bootstap" GCC is produced in - toolchain_build_m32c/gcc-4.2.4-initial, then the final GCC is produced in - toolchain_build_m32c/gcc-4.2.4-final. The above error will occur twice: Once for - the intial GCC build (see above) and once for the final GCC build. For the final GCC - build, the workaround is the same except that the directory will be - toolchain_build_m32c/gcc-4.2.4-final/gcc. - - \ No newline at end of file +configs/skp16c26/README.txt +^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +1. The buildroot package can be used to build an M16C toolchain. The toolchain + buildroot can be downloaded from misc/buildroot in the NuttX SVN. Insructions + for building the toolchain are provided below. + + However, the target cannot be built because the GNU m16c-nuttx-elf-ld link fails with + the following message: + + m32c-nuttx-elf-ld: BFD (GNU Binutils) 2.19 assertion fail /home/Owner/projects/nuttx/buildroot/toolchain_build_m32c/binutils-2.19/bfd/elf32-m32c.c:482 + + Where the reference line is: + + /* If the symbol is out of range for a 16-bit address, + we must have allocated a plt entry. */ + BFD_ASSERT (*plt_offset != (bfd_vma) -1); + + No workaround is known at this time. This is a show stopper for M16C. + +2. A supported version of the M16C toolchain is available here: + + http://www.kpitgnutools.com/index.php + + This download is free but requires registration. Unfortunately, this v0901 of + this toolchain shows the same behavior: + + c:\Hew3\Tools\KPIT Cummins\GNUM16CM32C-ELF\v0901\m32c-elf\bin\m32c-elf-ld.exe: BFD (GNU Binutils) 2.19-GNUM16CM32C_v0901 assertion fail /home/kpit/fsfsrc/binutils-2.19/bfd/elf32-m32c.c:482 + +It is possible that this error messasge my be telling me -- a very roundabout way -- +that I have exceeded the FLASH region, but I think that unlikely (it is difficult +to know if the link does not complete gracefully). + +BUILDING THE R8C/M16C/M32C GNU TOOLCHAIN USING BUILDROOT +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +NOTE: See the toolchain issues above -- you may not want to waste your time. + +1. CD to the correct directory. + + Change to the directory just above the NuttX installation. If is + where NuttX is installed, then cd to /.. + +2. Get and Install the buildroot Module + + a. Using a release tarball: + + cd /.. + Download the appropriate buildroot package. + unpack the buildroot package + rename the directory to buildroot + + b. Using SVN + + Check out the misc/buildroot module. SVN checkout instructions: + + svn checkout svn://svn.code.sf.net/p/nuttx/code/trunk/buildroot buildroot + + Make the archive directory: + + mkdir archive + + The /../buildroot is where the toolchain is built; + The /../archive directory is where toolchain sources will be downloaded. + +3. Make sure that NuttX is configured + + cd /tools + ./configure.sh + +4. Configure and Make the buildroot + + cd buildroot + cp configs/m32c-defconfig-4.2.4 .config + make oldconfig + make + + This will download the large source packages for the toolchain and build the toolchain. + The resulting binaries will be under buildroot/build_m32c. There will also be a + large build directory called toolchain_build_m32c; this directory can be removed once + the build completes successfully. + +Cygwin GCC BUILD NOTES +^^^^^^^^^^^^^^^^^^^^^^ + On Cygwin, the buildroot 'make' command will fail with an error like: + + "... + build/genchecksum cc1-dummy > cc1-checksum.c + opening cc1-dummy: No such file or directory + ..." + + This is caused because on Cygwin, host executables will be generated with the extension .exe + and, apparently, the make variable "exeext" is set incorrectly. A work around after the + above occurs is: + + cd toolchain_build_m32c/gcc-4.2.4-initial/gcc # Go to the directory where error occurred + mv cc1-dummy.exe cc1-dummy # Rename the executable without .exe + rm cc1-checksum.c # Get rid of the bad generated file + + Then resume the buildroot make: + + cd - # Back to the buildroot make directory + make # Restart the build + + GCC is built twice. First a initial, "bootstap" GCC is produced in + toolchain_build_m32c/gcc-4.2.4-initial, then the final GCC is produced in + toolchain_build_m32c/gcc-4.2.4-final. The above error will occur twice: Once for + the intial GCC build (see above) and once for the final GCC build. For the final GCC + build, the workaround is the same except that the directory will be + toolchain_build_m32c/gcc-4.2.4-final/gcc. + + diff --git a/nuttx/configs/skp16c26/ostest/Make.defs b/nuttx/configs/skp16c26/ostest/Make.defs index 79f0140133..a7444daae3 100644 --- a/nuttx/configs/skp16c26/ostest/Make.defs +++ b/nuttx/configs/skp16c26/ostest/Make.defs @@ -36,7 +36,7 @@ include ${TOPDIR}/.config include ${TOPDIR}/tools/Config.mk -CROSSDEV = m32c-elf- +CROSSDEV = m32c-nuttx-elf- CC = $(CROSSDEV)gcc CPP = $(CROSSDEV)gcc -E LD = $(CROSSDEV)ld diff --git a/nuttx/configs/stm3210e-eval/RIDE/Make.defs b/nuttx/configs/stm3210e-eval/RIDE/Make.defs index f24075038d..dfd0f600b7 100644 --- a/nuttx/configs/stm3210e-eval/RIDE/Make.defs +++ b/nuttx/configs/stm3210e-eval/RIDE/Make.defs @@ -70,7 +70,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3210e-eval/buttons/Make.defs b/nuttx/configs/stm3210e-eval/buttons/Make.defs index ed7d6e7f00..9f0691bba8 100644 --- a/nuttx/configs/stm3210e-eval/buttons/Make.defs +++ b/nuttx/configs/stm3210e-eval/buttons/Make.defs @@ -70,7 +70,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3210e-eval/composite/Make.defs b/nuttx/configs/stm3210e-eval/composite/Make.defs index e084664298..9b855671f3 100644 --- a/nuttx/configs/stm3210e-eval/composite/Make.defs +++ b/nuttx/configs/stm3210e-eval/composite/Make.defs @@ -70,7 +70,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3210e-eval/nsh/Make.defs b/nuttx/configs/stm3210e-eval/nsh/Make.defs index 1e8e945b64..afdf0c0971 100644 --- a/nuttx/configs/stm3210e-eval/nsh/Make.defs +++ b/nuttx/configs/stm3210e-eval/nsh/Make.defs @@ -70,7 +70,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3210e-eval/nsh2/Make.defs b/nuttx/configs/stm3210e-eval/nsh2/Make.defs index 049c9d7a80..7d36c9a00d 100644 --- a/nuttx/configs/stm3210e-eval/nsh2/Make.defs +++ b/nuttx/configs/stm3210e-eval/nsh2/Make.defs @@ -70,7 +70,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3210e-eval/nx/Make.defs b/nuttx/configs/stm3210e-eval/nx/Make.defs index a553e01630..bb0ba5b6df 100644 --- a/nuttx/configs/stm3210e-eval/nx/Make.defs +++ b/nuttx/configs/stm3210e-eval/nx/Make.defs @@ -70,7 +70,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3210e-eval/nxconsole/Make.defs b/nuttx/configs/stm3210e-eval/nxconsole/Make.defs index d55f4c61d4..84b36b2676 100644 --- a/nuttx/configs/stm3210e-eval/nxconsole/Make.defs +++ b/nuttx/configs/stm3210e-eval/nxconsole/Make.defs @@ -73,7 +73,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -134,7 +134,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3210e-eval/nxlines/Make.defs b/nuttx/configs/stm3210e-eval/nxlines/Make.defs index 83bd9eb5e8..a896a901e6 100644 --- a/nuttx/configs/stm3210e-eval/nxlines/Make.defs +++ b/nuttx/configs/stm3210e-eval/nxlines/Make.defs @@ -73,7 +73,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -134,7 +134,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3210e-eval/nxtext/Make.defs b/nuttx/configs/stm3210e-eval/nxtext/Make.defs index 4a082fc745..00370c3b0f 100644 --- a/nuttx/configs/stm3210e-eval/nxtext/Make.defs +++ b/nuttx/configs/stm3210e-eval/nxtext/Make.defs @@ -73,7 +73,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -134,7 +134,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3210e-eval/ostest/Make.defs b/nuttx/configs/stm3210e-eval/ostest/Make.defs index 41a1974570..09b3f03954 100644 --- a/nuttx/configs/stm3210e-eval/ostest/Make.defs +++ b/nuttx/configs/stm3210e-eval/ostest/Make.defs @@ -70,7 +70,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3210e-eval/pm/Make.defs b/nuttx/configs/stm3210e-eval/pm/Make.defs index c298c4364b..0cc96fa4ee 100644 --- a/nuttx/configs/stm3210e-eval/pm/Make.defs +++ b/nuttx/configs/stm3210e-eval/pm/Make.defs @@ -70,7 +70,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3210e-eval/usbserial/Make.defs b/nuttx/configs/stm3210e-eval/usbserial/Make.defs index f45de369e9..cda6edf4ee 100644 --- a/nuttx/configs/stm3210e-eval/usbserial/Make.defs +++ b/nuttx/configs/stm3210e-eval/usbserial/Make.defs @@ -70,7 +70,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3210e-eval/usbstorage/Make.defs b/nuttx/configs/stm3210e-eval/usbstorage/Make.defs index e0a4de6f9e..36688bc805 100644 --- a/nuttx/configs/stm3210e-eval/usbstorage/Make.defs +++ b/nuttx/configs/stm3210e-eval/usbstorage/Make.defs @@ -70,7 +70,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3220g-eval/dhcpd/Make.defs b/nuttx/configs/stm3220g-eval/dhcpd/Make.defs index 4a94997a5c..f75e94501f 100644 --- a/nuttx/configs/stm3220g-eval/dhcpd/Make.defs +++ b/nuttx/configs/stm3220g-eval/dhcpd/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3220g-eval/nettest/Make.defs b/nuttx/configs/stm3220g-eval/nettest/Make.defs index c69852119f..f307d9475d 100644 --- a/nuttx/configs/stm3220g-eval/nettest/Make.defs +++ b/nuttx/configs/stm3220g-eval/nettest/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3220g-eval/nsh/Make.defs b/nuttx/configs/stm3220g-eval/nsh/Make.defs index 4b2bbef30a..9fe8b0ffab 100644 --- a/nuttx/configs/stm3220g-eval/nsh/Make.defs +++ b/nuttx/configs/stm3220g-eval/nsh/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3220g-eval/nsh2/Make.defs b/nuttx/configs/stm3220g-eval/nsh2/Make.defs index d813508680..64f158ecb5 100644 --- a/nuttx/configs/stm3220g-eval/nsh2/Make.defs +++ b/nuttx/configs/stm3220g-eval/nsh2/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3220g-eval/nxwm/Make.defs b/nuttx/configs/stm3220g-eval/nxwm/Make.defs index 616529e7e2..37280e0c44 100644 --- a/nuttx/configs/stm3220g-eval/nxwm/Make.defs +++ b/nuttx/configs/stm3220g-eval/nxwm/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3220g-eval/ostest/Make.defs b/nuttx/configs/stm3220g-eval/ostest/Make.defs index 9d8c07dfa2..41e8fff142 100644 --- a/nuttx/configs/stm3220g-eval/ostest/Make.defs +++ b/nuttx/configs/stm3220g-eval/ostest/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3220g-eval/telnetd/Make.defs b/nuttx/configs/stm3220g-eval/telnetd/Make.defs index 10725d7279..416bfaa47b 100644 --- a/nuttx/configs/stm3220g-eval/telnetd/Make.defs +++ b/nuttx/configs/stm3220g-eval/telnetd/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3240g-eval/dhcpd/Make.defs b/nuttx/configs/stm3240g-eval/dhcpd/Make.defs index 7fb1e0b7f8..1c7a7cff0e 100644 --- a/nuttx/configs/stm3240g-eval/dhcpd/Make.defs +++ b/nuttx/configs/stm3240g-eval/dhcpd/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3240g-eval/discover/Make.defs b/nuttx/configs/stm3240g-eval/discover/Make.defs index abcae0f5f0..9cf9d59585 100644 --- a/nuttx/configs/stm3240g-eval/discover/Make.defs +++ b/nuttx/configs/stm3240g-eval/discover/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3240g-eval/nettest/Make.defs b/nuttx/configs/stm3240g-eval/nettest/Make.defs index a0a1cd58fd..e8af4cbb5d 100644 --- a/nuttx/configs/stm3240g-eval/nettest/Make.defs +++ b/nuttx/configs/stm3240g-eval/nettest/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3240g-eval/nsh/Make.defs b/nuttx/configs/stm3240g-eval/nsh/Make.defs index ab0ede05e6..e88f1054b4 100644 --- a/nuttx/configs/stm3240g-eval/nsh/Make.defs +++ b/nuttx/configs/stm3240g-eval/nsh/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3240g-eval/nsh2/Make.defs b/nuttx/configs/stm3240g-eval/nsh2/Make.defs index 7a0e19582f..3e7fa8bd2a 100644 --- a/nuttx/configs/stm3240g-eval/nsh2/Make.defs +++ b/nuttx/configs/stm3240g-eval/nsh2/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3240g-eval/nxconsole/Make.defs b/nuttx/configs/stm3240g-eval/nxconsole/Make.defs index 6c200d3ce0..aedfacc80a 100644 --- a/nuttx/configs/stm3240g-eval/nxconsole/Make.defs +++ b/nuttx/configs/stm3240g-eval/nxconsole/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3240g-eval/nxwm/Make.defs b/nuttx/configs/stm3240g-eval/nxwm/Make.defs index 167792094f..631cfab861 100644 --- a/nuttx/configs/stm3240g-eval/nxwm/Make.defs +++ b/nuttx/configs/stm3240g-eval/nxwm/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3240g-eval/ostest/Make.defs b/nuttx/configs/stm3240g-eval/ostest/Make.defs index a7e7a1392d..875d39f22d 100644 --- a/nuttx/configs/stm3240g-eval/ostest/Make.defs +++ b/nuttx/configs/stm3240g-eval/ostest/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3240g-eval/telnetd/Make.defs b/nuttx/configs/stm3240g-eval/telnetd/Make.defs index 1ddbddaabd..d0ed37f28d 100644 --- a/nuttx/configs/stm3240g-eval/telnetd/Make.defs +++ b/nuttx/configs/stm3240g-eval/telnetd/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3240g-eval/webserver/Make.defs b/nuttx/configs/stm3240g-eval/webserver/Make.defs index 0669350803..fbe1ffb0ec 100644 --- a/nuttx/configs/stm3240g-eval/webserver/Make.defs +++ b/nuttx/configs/stm3240g-eval/webserver/Make.defs @@ -89,8 +89,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -154,7 +154,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm3240g-eval/xmlrpc/Make.defs b/nuttx/configs/stm3240g-eval/xmlrpc/Make.defs index eb02622e66..61b0d5c4e4 100644 --- a/nuttx/configs/stm3240g-eval/xmlrpc/Make.defs +++ b/nuttx/configs/stm3240g-eval/xmlrpc/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm32f4discovery/nsh/Make.defs b/nuttx/configs/stm32f4discovery/nsh/Make.defs index 4a776bffe5..f4110cce3e 100644 --- a/nuttx/configs/stm32f4discovery/nsh/Make.defs +++ b/nuttx/configs/stm32f4discovery/nsh/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm32f4discovery/nxlines/Make.defs b/nuttx/configs/stm32f4discovery/nxlines/Make.defs index c728da7b3c..8dab2009ce 100644 --- a/nuttx/configs/stm32f4discovery/nxlines/Make.defs +++ b/nuttx/configs/stm32f4discovery/nxlines/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm32f4discovery/ostest/Make.defs b/nuttx/configs/stm32f4discovery/ostest/Make.defs index 7ee4375893..f20fddb843 100644 --- a/nuttx/configs/stm32f4discovery/ostest/Make.defs +++ b/nuttx/configs/stm32f4discovery/ostest/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/stm32f4discovery/pm/Make.defs b/nuttx/configs/stm32f4discovery/pm/Make.defs index 8dc63684e2..f96f439ee4 100644 --- a/nuttx/configs/stm32f4discovery/pm/Make.defs +++ b/nuttx/configs/stm32f4discovery/pm/Make.defs @@ -90,8 +90,8 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- - ARCROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- + ARCROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -155,7 +155,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/teensy/hello/Make.defs b/nuttx/configs/teensy/hello/Make.defs index 72d51de14b..cca88363cd 100644 --- a/nuttx/configs/teensy/hello/Make.defs +++ b/nuttx/configs/teensy/hello/Make.defs @@ -57,7 +57,7 @@ endif ifeq ($(CONFIG_AVR_BUILDROOT),y) # NuttX buildroot GCC toolchain under Linux or Cygwin - CROSSDEV = avr-elf- + CROSSDEV = avr-nuttx-elf- MAXOPTIMIZATION = -O2 ARCHCPUFLAGS = -mmcu=at90usb1286 LDFLAGS += -nostartfiles -nodefaultlibs diff --git a/nuttx/configs/teensy/nsh/Make.defs b/nuttx/configs/teensy/nsh/Make.defs index e58b1596ec..13f8e79027 100644 --- a/nuttx/configs/teensy/nsh/Make.defs +++ b/nuttx/configs/teensy/nsh/Make.defs @@ -57,7 +57,7 @@ endif ifeq ($(CONFIG_AVR_BUILDROOT),y) # NuttX buildroot GCC toolchain under Linux or Cygwin - CROSSDEV = avr-elf- + CROSSDEV = avr-nuttx-elf- MAXOPTIMIZATION = -O2 ARCHCPUFLAGS = -mmcu=at90usb1286 LDFLAGS += -nostartfiles -nodefaultlibs diff --git a/nuttx/configs/teensy/usbstorage/Make.defs b/nuttx/configs/teensy/usbstorage/Make.defs index b221491d64..706daf81f6 100644 --- a/nuttx/configs/teensy/usbstorage/Make.defs +++ b/nuttx/configs/teensy/usbstorage/Make.defs @@ -57,7 +57,7 @@ endif ifeq ($(CONFIG_AVR_BUILDROOT),y) # NuttX buildroot GCC toolchain under Linux or Cygwin - CROSSDEV = avr-elf- + CROSSDEV = avr-nuttx-elf- MAXOPTIMIZATION = -O2 ARCHCPUFLAGS = -mmcu=at90usb1286 LDFLAGS += -nostartfiles -nodefaultlibs diff --git a/nuttx/configs/twr-k60n512/nsh/Make.defs b/nuttx/configs/twr-k60n512/nsh/Make.defs index ebeea90a54..99041bcc29 100644 --- a/nuttx/configs/twr-k60n512/nsh/Make.defs +++ b/nuttx/configs/twr-k60n512/nsh/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_KINETIS_DEVKITARM),y) endif ifeq ($(CONFIG_KINETIS_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft -mlong-calls MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/twr-k60n512/ostest/Make.defs b/nuttx/configs/twr-k60n512/ostest/Make.defs index 2f5e208fe5..93c887a2d6 100644 --- a/nuttx/configs/twr-k60n512/ostest/Make.defs +++ b/nuttx/configs/twr-k60n512/ostest/Make.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_KINETIS_DEVKITARM),y) endif ifeq ($(CONFIG_KINETIS_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft -mlong-calls MAXOPTIMIZATION = -Os endif @@ -120,7 +120,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y) diff --git a/nuttx/configs/us7032evb1/nsh/Make.defs b/nuttx/configs/us7032evb1/nsh/Make.defs index d861f5d48d..9cbc41f5b9 100644 --- a/nuttx/configs/us7032evb1/nsh/Make.defs +++ b/nuttx/configs/us7032evb1/nsh/Make.defs @@ -50,7 +50,7 @@ ARCHDEFINES = ARCHINCLUDES = -I. -isystem $(TOPDIR)/include ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/nsh/ld.script -CROSSDEV = sh-elf- +CROSSDEV = sh-nuttx-elf- CC = $(CROSSDEV)gcc CPP = $(CROSSDEV)gcc -E LD = $(CROSSDEV)ld diff --git a/nuttx/configs/us7032evb1/ostest/Make.defs b/nuttx/configs/us7032evb1/ostest/Make.defs index 580c126286..32f45eddab 100644 --- a/nuttx/configs/us7032evb1/ostest/Make.defs +++ b/nuttx/configs/us7032evb1/ostest/Make.defs @@ -50,7 +50,7 @@ ARCHDEFINES = ARCHINCLUDES = -I. -isystem $(TOPDIR)/include ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/ostest/ld.script -CROSSDEV = sh-elf- +CROSSDEV = sh-nuttx-elf- CC = $(CROSSDEV)gcc CPP = $(CROSSDEV)gcc -E LD = $(CROSSDEV)ld diff --git a/nuttx/configs/vsn/nsh/Make.defs b/nuttx/configs/vsn/nsh/Make.defs index 15de85f605..abcdf49c16 100644 --- a/nuttx/configs/vsn/nsh/Make.defs +++ b/nuttx/configs/vsn/nsh/Make.defs @@ -70,7 +70,7 @@ ifeq ($(CONFIG_STM32_RAISONANCE),y) endif ifeq ($(CONFIG_STM32_BUILDROOT),y) # NuttX buildroot under Linux or Cygwin - CROSSDEV = arm-elf- + CROSSDEV = arm-nuttx-elf- ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft MAXOPTIMIZATION = -Os endif @@ -132,7 +132,7 @@ OBJEXT = .o LIBEXT = .a EXEEXT = -ifneq ($(CROSSDEV),arm-elf-) +ifneq ($(CROSSDEV),arm-nuttx-elf-) LDFLAGS += -nostartfiles -nodefaultlibs endif ifeq ($(CONFIG_DEBUG_SYMBOLS),y)