diff options
Diffstat (limited to 'misc/buildroot/toolchain/gcc/Makefile.in')
-rw-r--r-- | misc/buildroot/toolchain/gcc/Makefile.in | 14 |
1 files changed, 14 insertions, 0 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))) |