2005-02-10 04:06:39 +01:00
|
|
|
# gcc has a bunch of options that need to be shared with
|
2010-06-15 23:10:03 +02:00
|
|
|
# both gcc-uclibc-4.x.mk, and are use by other packages...
|
|
|
|
# So include them in this file and arrange to include it
|
|
|
|
# soon after invoking make from the top level.
|
2005-02-10 04:06:39 +01:00
|
|
|
|
2009-07-30 17:35:26 +02:00
|
|
|
GCC_VERSION:=$(call qstrip,$(BR2_GCC_VERSION))
|
|
|
|
TARGET_OPTIMIZATION:=$(call qstrip,$(BR2_TARGET_OPTIMIZATION))
|
|
|
|
EXTRA_GCC_CONFIG_OPTIONS:=$(call qstrip,$(BR2_EXTRA_GCC_CONFIG_OPTIONS))
|
2007-07-29 19:51:32 +02:00
|
|
|
|
2009-12-14 11:59:44 +01:00
|
|
|
ifeq ($(call qstrip,$(BR2_GCC_VERSION_SNAP)),y)
|
2009-07-30 17:35:26 +02:00
|
|
|
GCC_SNAP_DATE:=$(call qstrip,$(BR2_GCC_SNAP_DATE))
|
2006-04-13 07:50:01 +02:00
|
|
|
else
|
|
|
|
GCC_SNAP_DATE:=
|
|
|
|
endif
|
2004-10-09 03:06:03 +02:00
|
|
|
|
2004-10-09 23:28:56 +02:00
|
|
|
ifeq ($(BR2_SOFT_FLOAT),y)
|
2005-05-01 00:59:05 +02:00
|
|
|
SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft
|
2010-07-09 09:20:58 +02:00
|
|
|
ifeq ($(BR2_arm)$(BR2_armeb),y) # only set float-abi for arm
|
2007-01-26 15:51:38 +01:00
|
|
|
TARGET_SOFT_FLOAT:=-mfloat-abi=soft
|
2008-08-22 15:59:06 +02:00
|
|
|
else
|
|
|
|
TARGET_SOFT_FLOAT:=-msoft-float
|
|
|
|
endif
|
2004-10-09 03:06:03 +02:00
|
|
|
ARCH_FPU_SUFFIX:=_nofpu
|
2007-01-26 15:51:38 +01:00
|
|
|
else # no softfloat support
|
2004-10-09 03:06:03 +02:00
|
|
|
SOFT_FLOAT_CONFIG_OPTION:=
|
|
|
|
TARGET_SOFT_FLOAT:=
|
|
|
|
ARCH_FPU_SUFFIX:=
|
2008-06-06 14:49:53 +02:00
|
|
|
endif
|
|
|
|
|
2007-07-08 18:27:25 +02:00
|
|
|
# some additional defaults
|
2009-07-30 17:35:26 +02:00
|
|
|
ifneq ($(call qstrip,$(BR2_GCC_TARGET_ARCH)),)
|
2007-07-08 18:27:25 +02:00
|
|
|
GCC_WITH_ARCH:=--with-arch=$(BR2_GCC_TARGET_ARCH)
|
|
|
|
endif
|
2009-07-30 17:35:26 +02:00
|
|
|
ifneq ($(call qstrip,$(BR2_GCC_TARGET_TUNE)),)
|
2007-07-08 18:27:25 +02:00
|
|
|
GCC_WITH_TUNE:=--with-tune=$(BR2_GCC_TARGET_TUNE)
|
|
|
|
endif
|
2009-07-30 17:35:26 +02:00
|
|
|
ifneq ($(call qstrip,$(BR2_GCC_TARGET_ABI)),)
|
2007-09-15 14:12:56 +02:00
|
|
|
GCC_WITH_ABI:=--with-abi=$(BR2_GCC_TARGET_ABI)
|
2007-07-08 18:27:25 +02:00
|
|
|
endif
|
2010-11-09 17:27:37 +01:00
|
|
|
ifneq ($(call qstrip,$(BR2_GCC_TARGET_CPU)),)
|
|
|
|
GCC_WITH_CPU:=--with-cpu=$(BR2_GCC_TARGET_CPU)
|
|
|
|
endif
|
2004-10-09 03:06:03 +02:00
|
|
|
|
2007-10-23 11:49:56 +02:00
|
|
|
# AVR32 GCC configuration
|
2008-12-08 09:15:42 +01:00
|
|
|
ifeq ($(BR2_avr32),y)
|
2007-10-23 11:49:56 +02:00
|
|
|
EXTRA_GCC_CONFIG_OPTIONS+=--disable-libmudflap
|
|
|
|
SOFT_FLOAT_CONFIG_OPTION:=
|
|
|
|
endif
|
|
|
|
|
2012-01-05 20:31:43 +01:00
|
|
|
# Disable mudflap and enable proper double/long double for SPE ABI
|
|
|
|
ifeq ($(BR2_powerpc_SPE),y)
|
|
|
|
EXTRA_GCC_CONFIG_OPTIONS+=--disable-libmudflap --enable-e500_double --with-long-double-128
|
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:42 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GCC_TARGET),y)
|
2007-08-26 23:00:56 +02:00
|
|
|
EXTRA_TARGET_GCC_CONFIG_OPTIONS:=
|
|
|
|
|
|
|
|
# AVR32 target GCC configuration
|
2008-12-08 09:15:42 +01:00
|
|
|
ifeq ($(BR2_avr32),y)
|
2007-08-26 23:00:56 +02:00
|
|
|
EXTRA_TARGET_GCC_CONFIG_OPTIONS+=--disable-libmudflap
|
2007-09-29 22:44:30 +02:00
|
|
|
EXTRA_TARGET_GCC_CONFIG_OPTIONS+=--with-build-time-tools=$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/bin \
|
2007-10-01 23:12:54 +02:00
|
|
|
EXTRA_TARGET_GCC_CONFIG_OPTIONS+=--with-as=$(TARGET_CROSS)as
|
2007-08-26 23:00:56 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
# and finally pull in config opts from the user
|
2009-07-30 17:35:26 +02:00
|
|
|
EXTRA_TARGET_GCC_CONFIG_OPTIONS+=$(call qstrip,$(BR2_EXTRA_TARGET_GCC_CONFIG_OPTIONS))
|
2007-01-28 13:03:58 +01:00
|
|
|
|
2004-10-09 08:13:40 +02:00
|
|
|
TARGETS+=gcc_target
|
|
|
|
endif
|