diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-10-21 22:27:16 +0200 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-11-07 00:15:56 +0100 |
commit | 5715d2dcf48a39c16a3f3e41c97109613fed121d (patch) | |
tree | 225555c093379151f6df03b71b383b466372c45f /toolchain/toolchain-external/ext-toolchain-wrapper.c | |
parent | c0b2c5985aa9d0cf35aebef266fe9cf01c54bc3d (diff) | |
download | buildroot-5715d2dcf48a39c16a3f3e41c97109613fed121d.tar.gz buildroot-5715d2dcf48a39c16a3f3e41c97109613fed121d.zip |
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/ext-toolchain-wrapper.c')
-rw-r--r-- | toolchain/toolchain-external/ext-toolchain-wrapper.c | 12 |
1 files changed, 3 insertions, 9 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)); |