diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-04-23 02:27:06 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-04-23 02:27:06 +0000 |
commit | 239679bf37b4d5532beaf40a3207de9c238d0232 (patch) | |
tree | 5f56c128113fe6720caad1cd93a79fe6321d70d6 /misc/buildroot/toolchain | |
parent | f8e7d6864a9a99101b69cfcf1d3ef623616ac0f3 (diff) | |
download | nuttx-239679bf37b4d5532beaf40a3207de9c238d0232.tar.gz nuttx-239679bf37b4d5532beaf40a3207de9c238d0232.tar.bz2 nuttx-239679bf37b4d5532beaf40a3207de9c238d0232.zip |
Add logic to more clearly specific ARM architecture
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1722 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'misc/buildroot/toolchain')
-rw-r--r-- | misc/buildroot/toolchain/gcc/Makefile.in | 14 | ||||
-rw-r--r-- | misc/buildroot/toolchain/gcc/gcc-nuttx-3.x.mk | 2 | ||||
-rw-r--r-- | misc/buildroot/toolchain/gcc/gcc-nuttx-4.x.mk | 2 |
3 files changed, 16 insertions, 2 deletions
diff --git a/misc/buildroot/toolchain/gcc/Makefile.in b/misc/buildroot/toolchain/gcc/Makefile.in index 3d28e3a4e..54b81a51b 100644 --- a/misc/buildroot/toolchain/gcc/Makefile.in +++ b/misc/buildroot/toolchain/gcc/Makefile.in @@ -44,6 +44,20 @@ TARGET_SOFT_FLOAT:= ARCH_FPU_SUFFIX:= endif +# some additional defaults +ifneq ($(strip $(subst ",,$(BR2_GCC_TARGET_ARCH))),) +# "))) +GCC_WITH_ARCH:=--with-arch=$(BR2_GCC_TARGET_ARCH) +endif +ifneq ($(strip $(subst ",,$(BR2_GCC_TARGET_TUNE))),) +# "))) +GCC_WITH_TUNE:=--with-tune=$(BR2_GCC_TARGET_TUNE) +endif +ifneq ($(strip $(subst ",,$(BR2_GCC_TARGET_ABI))),) +# "))) +GCC_WITH_ABI:=--with-abi=$(BR2_GCC_TARGET_ABI) +endif + ifeq ($(strip $(BR2_PACKAGE_GCC_TARGET)),y) # pull in config opts from the user EXTRA_TARGET_GCC_CONFIG_OPTIONS:=$(strip $(subst ",, $(BR2_EXTRA_TARGET_GCC_CONFIG_OPTIONS))) diff --git a/misc/buildroot/toolchain/gcc/gcc-nuttx-3.x.mk b/misc/buildroot/toolchain/gcc/gcc-nuttx-3.x.mk index 5c088a9ff..2214cfda2 100644 --- a/misc/buildroot/toolchain/gcc/gcc-nuttx-3.x.mk +++ b/misc/buildroot/toolchain/gcc/gcc-nuttx-3.x.mk @@ -123,7 +123,7 @@ $(GCC_BUILD_DIR)/.configured: $(GCC_DIR)/.patched $(GCC_STAGING_PREREQ) $(THREADS) \ $(MULTILIB) \ $(SOFT_FLOAT_CONFIG_OPTION) \ - $(GCC_WITH_CPU) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) \ + $(GCC_WITH_ABI) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) \ $(GCC_USE_SJLJ_EXCEPTIONS) \ $(DISABLE_LARGEFILE) \ $(EXTRA_GCC_CONFIG_OPTIONS)); diff --git a/misc/buildroot/toolchain/gcc/gcc-nuttx-4.x.mk b/misc/buildroot/toolchain/gcc/gcc-nuttx-4.x.mk index df47208f5..41c0590ef 100644 --- a/misc/buildroot/toolchain/gcc/gcc-nuttx-4.x.mk +++ b/misc/buildroot/toolchain/gcc/gcc-nuttx-4.x.mk @@ -121,7 +121,7 @@ $(GCC_BUILD_DIR)/.configured: $(GCC_DIR)/.patched $(GCC_STAGING_PREREQ) $(THREADS) \ $(MULTILIB) \ $(SOFT_FLOAT_CONFIG_OPTION) \ - $(GCC_WITH_CPU) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) \ + $(GCC_WITH_ABI) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) \ $(GCC_USE_SJLJ_EXCEPTIONS) \ $(DISABLE_LARGEFILE) \ $(EXTRA_GCC_CONFIG_OPTIONS)); |