summaryrefslogtreecommitdiff
path: root/toolchain/toolchain-external/ext-toolchain-wrapper.c
diff options
context:
space:
mode:
authorStany MARCEL <stanypub@gmail.com>2011-11-01 13:19:16 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2011-11-02 11:48:05 +0100
commit3fb6010dca4447576fa36f4b5f845af986d39364 (patch)
tree9788a21d649901dffcfc0c6add3ae822f62e5ebe /toolchain/toolchain-external/ext-toolchain-wrapper.c
parentd64c4ed3f787802d2b3953a5db787984d9a6626e (diff)
toolchain: Add the possibility to have a mcpu option with wrapper
Permit to define the mcpu of the external toolchain wrapper, based on BR2_GCC_TARGET_CPU. Signed-off-by: Stany MARCEL <stanypub@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'toolchain/toolchain-external/ext-toolchain-wrapper.c')
-rw-r--r--toolchain/toolchain-external/ext-toolchain-wrapper.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/toolchain/toolchain-external/ext-toolchain-wrapper.c b/toolchain/toolchain-external/ext-toolchain-wrapper.c
index 3e2306161..cc404f3e9 100644
--- a/toolchain/toolchain-external/ext-toolchain-wrapper.c
+++ b/toolchain/toolchain-external/ext-toolchain-wrapper.c
@@ -28,6 +28,9 @@ static char *predef_args[] = {
#ifdef BR_TUNE
"-mtune=" BR_TUNE,
#endif /* BR_TUNE */
+#ifdef BR_CPU
+ "-mcpu=" BR_CPU,
+#endif
#ifdef BR_ABI
"-mabi=" BR_ABI,
#endif