summaryrefslogtreecommitdiff
path: root/misc/buildroot/toolchain
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-23 02:25:53 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-23 02:25:53 +0000
commitf6cc3cf96afa3b5fd0d633fe532f45316da4bdad (patch)
tree33c0ae7de055a4b4bc9762893a936798421900ca /misc/buildroot/toolchain
parent8dc2d637b75a2edc0f53a1029a9a45fc2792bfb8 (diff)
downloadnuttx-f6cc3cf96afa3b5fd0d633fe532f45316da4bdad.tar.gz
nuttx-f6cc3cf96afa3b5fd0d633fe532f45316da4bdad.tar.bz2
nuttx-f6cc3cf96afa3b5fd0d633fe532f45316da4bdad.zip
Buildroot now builds armv6-m toolchain; NuTiny configuration now uses buildroot toolchain
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5665 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'misc/buildroot/toolchain')
-rw-r--r--misc/buildroot/toolchain/binutils/Config.in12
-rw-r--r--misc/buildroot/toolchain/gcc/Config.in8
-rw-r--r--misc/buildroot/toolchain/gcc/Makefile.in3
3 files changed, 13 insertions, 10 deletions
diff --git a/misc/buildroot/toolchain/binutils/Config.in b/misc/buildroot/toolchain/binutils/Config.in
index 028ac0412..96cff013f 100644
--- a/misc/buildroot/toolchain/binutils/Config.in
+++ b/misc/buildroot/toolchain/binutils/Config.in
@@ -4,23 +4,23 @@ comment "Binutils Options"
choice
prompt "Binutils Version"
- default BR2_BINUTILS_VERSION_2_19_1 if BR2_cortex_m3
- default BR2_BINUTILS_VERSION_2_19 if !BR2_avr32 && !BR2_cortex_m3 && !BR2_m9s12x
+ default BR2_BINUTILS_VERSION_2_19_1 if BR2_cortex_m3 || BR2_cortex_m0
+ default BR2_BINUTILS_VERSION_2_19 if !BR2_avr32 && !BR2_cortex_m3 && !BR2_cortex_m0 && !BR2_m9s12x
default BR2_BINUTILS_VERSION_2_18 if BR2_m9s12x
- default BR2_BINUTILS_VERSION_2_17 if !BR2_cortex_m3 && !BR2_m9s12x
+ default BR2_BINUTILS_VERSION_2_17 if !BR2_cortex_m3 && !BR2_cortex_m0 && !BR2_m9s12x
help
Select the version of binutils you wish to use.
config BR2_BINUTILS_VERSION_2_17
- depends !BR2_nios2 && !BR2_cortex_m3 && !BR2_m9s12x
+ depends !BR2_nios2 && !BR2_cortex_m3 && !BR2_cortex_m0 && !BR2_m9s12x
bool "binutils 2.17"
config BR2_BINUTILS_VERSION_2_18
- depends !BR2_avr32 && !BR2_nios2 && !BR2_cortex_m3
+ depends !BR2_avr32 && !BR2_nios2 && !BR2_cortex_m3 && !BR2_cortex_m0
bool "binutils 2.18"
config BR2_BINUTILS_VERSION_2_19
- depends !BR2_avr32 && !BR2_nios2 && !BR2_cortex_m3 && !BR2_m9s12x
+ depends !BR2_avr32 && !BR2_nios2 && !BR2_cortex_m3 && !BR2_cortex_m0 &&!BR2_m9s12x
bool "binutils 2.19"
config BR2_BINUTILS_VERSION_2_19_1
diff --git a/misc/buildroot/toolchain/gcc/Config.in b/misc/buildroot/toolchain/gcc/Config.in
index 822cfd4b9..edef88a3e 100644
--- a/misc/buildroot/toolchain/gcc/Config.in
+++ b/misc/buildroot/toolchain/gcc/Config.in
@@ -10,8 +10,8 @@ config BR2_PACKAGE_GCC
choice
prompt "GCC compiler Version"
- default BR2_GCC_VERSION_4_3_3 if BR2_cortex_m3
- default BR2_GCC_VERSION_4_2_4 if !BR2_avr32 && !BR2_cortex_m3 && !BR2_m9s12x
+ default BR2_GCC_VERSION_4_3_3 if BR2_cortex_m3 || BR2_cortex_m0
+ default BR2_GCC_VERSION_4_2_4 if !BR2_avr32 && !BR2_cortex_m3 && !BR2_cortex_m0 && !BR2_m9s12x
default BR2_GCC_VERSION_3_4_6 if BR2_avr32
default BR2_GCC_VERSION_3_3_6 if BR2_m9s12x
depends on BR2_PACKAGE_GCC
@@ -23,11 +23,11 @@ choice
bool "gcc 3.3.6"
config BR2_GCC_VERSION_3_4_6
- depends on !BR2_m32c && !BR2_cortex_m3 && !BR2_m9s12x
+ depends on !BR2_m32c && !BR2_cortex_m3 && !BR2_cortex_m0 && !BR2_m9s12x
bool "gcc 3.4.6"
config BR2_GCC_VERSION_4_2_4
- depends on !BR2_avr32 && !BR2_nios2 && !BR2_cortex_m3 && !BR2_m9s12x
+ depends on !BR2_avr32 && !BR2_nios2 && !BR2_cortex_m3 && !BR2_cortex_m0 && !BR2_m9s12x
select BR2_GCC_SUPPORTS_SYSROOT
bool "gcc 4.2.4"
diff --git a/misc/buildroot/toolchain/gcc/Makefile.in b/misc/buildroot/toolchain/gcc/Makefile.in
index aaec774dc..7ae07cfe8 100644
--- a/misc/buildroot/toolchain/gcc/Makefile.in
+++ b/misc/buildroot/toolchain/gcc/Makefile.in
@@ -57,6 +57,9 @@ ifneq ($(strip $(subst ",,$(BR2_GCC_TARGET_ABI))),)
# ")))
GCC_WITH_ABI:=--with-abi=$(BR2_GCC_TARGET_ABI)
endif
+ifdef BR2_cortex_m0
+GCC_WITH_MODE:=--with-mode=thumb
+endif
ifdef BR2_cortex_m3
GCC_WITH_MODE:=--with-mode=thumb
endif