toolchain: Add support for --with-cpu
authorKonrad Eisele <konrad@gaisler.com>
Tue, 9 Nov 2010 16:27:37 +0000 (13:27 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 25 Nov 2010 08:15:11 +0000 (09:15 +0100)
Add support for gcc configuration switch --with-cpu. Uses newly added
BR2_GCC_TARGET_CPU from the target config.

Signed-off-by: Konrad Eisele <konrad@gaisler.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
toolchain/gcc/Makefile.in
toolchain/gcc/gcc-uclibc-4.x.mk

index b6ebca902ff76acfa94508d2c1af7ba33c9c2455..2e55ed0f7bb472355291da96146302d97ecee351 100644 (file)
@@ -37,6 +37,9 @@ endif
 ifneq ($(call qstrip,$(BR2_GCC_TARGET_ABI)),)
 GCC_WITH_ABI:=--with-abi=$(BR2_GCC_TARGET_ABI)
 endif
+ifneq ($(call qstrip,$(BR2_GCC_TARGET_CPU)),)
+GCC_WITH_CPU:=--with-cpu=$(BR2_GCC_TARGET_CPU)
+endif
 
 # AVR32 GCC configuration
 ifeq ($(BR2_avr32),y)
index 684dca8e9820324112e18b297bf128fde3c2fe26..af085f77745bf9e3ffe82629189ce2b17467350a 100644 (file)
@@ -229,7 +229,7 @@ $(GCC_BUILD_DIR1)/.configured: $(GCC_DIR)/.patched
                $(THREADS) \
                $(GCC_DECIMAL_FLOAT) \
                $(SOFT_FLOAT_CONFIG_OPTION) \
-               $(GCC_WITH_ABI) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) \
+               $(GCC_WITH_ABI) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) $(GCC_WITH_CPU) \
                $(EXTRA_GCC_CONFIG_OPTIONS) \
                $(EXTRA_GCC1_CONFIG_OPTIONS) \
                $(QUIET) \
@@ -306,7 +306,7 @@ $(GCC_BUILD_DIR2)/.configured: $(GCC_DIR)/.patched
                $(MULTILIB) \
                $(GCC_DECIMAL_FLOAT) \
                $(SOFT_FLOAT_CONFIG_OPTION) \
-               $(GCC_WITH_ABI) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) \
+               $(GCC_WITH_ABI) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) $(GCC_WITH_CPU) \
                $(EXTRA_GCC_CONFIG_OPTIONS) \
                $(EXTRA_GCC2_CONFIG_OPTIONS) \
                $(QUIET) \
@@ -382,7 +382,7 @@ $(GCC_BUILD_DIR3)/.configured: $(GCC_SRC_DIR)/.patched $(GCC_STAGING_PREREQ)
                $(THREADS) \
                $(GCC_DECIMAL_FLOAT) \
                $(SOFT_FLOAT_CONFIG_OPTION) \
-               $(GCC_WITH_ABI) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) \
+               $(GCC_WITH_ABI) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) $(GCC_WITH_CPU) \
                $(DISABLE_LARGEFILE) \
                $(EXTRA_GCC_CONFIG_OPTIONS) \
                $(EXTRA_GCC2_CONFIG_OPTIONS) \
@@ -516,7 +516,7 @@ $(GCC_BUILD_DIR4)/.configured: $(GCC_BUILD_DIR4)/.prepared
                $(THREADS) \
                $(GCC_DECIMAL_FLOAT) \
                $(SOFT_FLOAT_CONFIG_OPTION) \
-               $(GCC_WITH_ABI) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) \
+               $(GCC_WITH_ABI) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) $(GCC_WITH_CPU) \
                $(DISABLE_LARGEFILE) \
                $(EXTRA_GCC_CONFIG_OPTIONS) \
                $(EXTRA_TARGET_GCC_CONFIG_OPTIONS) \