aboutsummaryrefslogtreecommitdiff
path: root/toolchain/toolchain-external
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-10-21 22:27:16 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-11-07 00:15:56 +0100
commit5715d2dcf48a39c16a3f3e41c97109613fed121d (patch)
tree225555c093379151f6df03b71b383b466372c45f /toolchain/toolchain-external
parentc0b2c5985aa9d0cf35aebef266fe9cf01c54bc3d (diff)
downloadbuildroot-5715d2dcf48a39c16a3f3e41c97109613fed121d.tar.gz
buildroot-5715d2dcf48a39c16a3f3e41c97109613fed121d.tar.bz2
toolchain-external: do not use BR2_GCC_TARGET_TUNE anymore
Since the BR2_GCC_TARGET_TUNE value is always empty now, there is no longer a point in using it in the external toolchain logic. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'toolchain/toolchain-external')
-rw-r--r--toolchain/toolchain-external/ext-toolchain-wrapper.c12
-rw-r--r--toolchain/toolchain-external/toolchain-external.mk5
2 files changed, 3 insertions, 14 deletions
diff --git a/toolchain/toolchain-external/ext-toolchain-wrapper.c b/toolchain/toolchain-external/ext-toolchain-wrapper.c
index 8db4ac4214..f459a7e23d 100644
--- a/toolchain/toolchain-external/ext-toolchain-wrapper.c
+++ b/toolchain/toolchain-external/ext-toolchain-wrapper.c
@@ -33,10 +33,9 @@ static char sysroot[PATH_MAX];
* Currently, we have:
* -mfloat-abi=
* -march=
- * -mtune=
* -mcpu=
*/
-#define EXCLUSIVE_ARGS 4
+#define EXCLUSIVE_ARGS 3
static char *predef_args[] = {
path,
@@ -154,14 +153,12 @@ int main(int argc, char **argv)
#endif
#if defined(BR_ARCH) || \
- defined(BR_TUNE) || \
defined(BR_CPU)
- /* Add our -march/cpu/tune/abi flags, but only if none are
+ /* Add our -march/cpu/abi flags, but only if none are
* already specified on the commandline
*/
for (i = 1; i < argc; i++) {
if (!strncmp(argv[i], "-march=", strlen("-march=")) ||
- !strncmp(argv[i], "-mtune=", strlen("-mtune=")) ||
!strncmp(argv[i], "-mcpu=", strlen("-mcpu=" )))
break;
}
@@ -169,14 +166,11 @@ int main(int argc, char **argv)
#ifdef BR_ARCH
*cur++ = "-march=" BR_ARCH;
#endif
-#ifdef BR_TUNE
- *cur++ = "-mtune=" BR_TUNE;
-#endif
#ifdef BR_CPU
*cur++ = "-mcpu=" BR_CPU;
#endif
}
-#endif /* ARCH || TUNE || CPU */
+#endif /* ARCH || CPU */
/* append forward args */
memcpy(cur, &argv[1], sizeof(char *) * (argc - 1));
diff --git a/toolchain/toolchain-external/toolchain-external.mk b/toolchain/toolchain-external/toolchain-external.mk
index b7a0e6028f..e16fce5887 100644
--- a/toolchain/toolchain-external/toolchain-external.mk
+++ b/toolchain/toolchain-external/toolchain-external.mk
@@ -163,7 +163,6 @@ TOOLCHAIN_EXTERNAL_WRAPPER_ARGS += \
-DBR_CROSS_PATH_REL='"$(TOOLCHAIN_EXTERNAL_BIN:$(HOST_DIR)/%=%)"'
endif
-CC_TARGET_TUNE_ := $(call qstrip,$(BR2_GCC_TARGET_TUNE))
ifeq ($(call qstrip,$(BR2_GCC_TARGET_CPU_REVISION)),)
CC_TARGET_CPU_ := $(call qstrip,$(BR2_GCC_TARGET_CPU))
else
@@ -181,10 +180,6 @@ ifeq ($(BR2_x86_64),y)
TOOLCHAIN_EXTERNAL_CFLAGS += -m64
TOOLCHAIN_EXTERNAL_WRAPPER_ARGS += -DBR_64
endif
-ifneq ($(CC_TARGET_TUNE_),)
-TOOLCHAIN_EXTERNAL_CFLAGS += -mtune=$(CC_TARGET_TUNE_)
-TOOLCHAIN_EXTERNAL_WRAPPER_ARGS += -DBR_TUNE='"$(CC_TARGET_TUNE_)"'
-endif
ifneq ($(CC_TARGET_ARCH_),)
TOOLCHAIN_EXTERNAL_CFLAGS += -march=$(CC_TARGET_ARCH_)
TOOLCHAIN_EXTERNAL_WRAPPER_ARGS += -DBR_ARCH='"$(CC_TARGET_ARCH_)"'