summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-10-23 06:23:20 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-10-23 06:23:20 +0000
commit19a6b0fa95f3b38e9019d2151ad77e6affb07947 (patch)
tree3396db5ce0658227032ced1d9344271012540d55
parent5feb978446bd193b0b4504ab335402041e71678b (diff)
downloadmtk-20170518-19a6b0fa95f3b38e9019d2151ad77e6affb07947.zip
mtk-20170518-19a6b0fa95f3b38e9019d2151ad77e6affb07947.tar.gz
mtk-20170518-19a6b0fa95f3b38e9019d2151ad77e6affb07947.tar.bz2
Add binutils extra configure options
Currently, we can specify extra configure options for gcc, but not binutils. This change adds an EXTRA_BINUTILS_CONFIG_OPTIONS config variable, so we can add configure options for binutils. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> SVN-Revision: 9407
-rw-r--r--toolchain/binutils/Config.in7
-rw-r--r--toolchain/binutils/Makefile1
2 files changed, 8 insertions, 0 deletions
diff --git a/toolchain/binutils/Config.in b/toolchain/binutils/Config.in
index ce3fa99..598029f 100644
--- a/toolchain/binutils/Config.in
+++ b/toolchain/binutils/Config.in
@@ -14,6 +14,13 @@ choice
endchoice
+config EXTRA_BINUTILS_CONFIG_OPTIONS
+ string
+ prompt "Additional binutils options" if TOOLCHAINOPTS
+ default ""
+ help
+ Any additional binutils options you may want to include....
+
config BINUTILS_VERSION
string
prompt "Binutils Version" if (TOOLCHAINOPTS && NULL)
diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile
index b3a6889..2ca79d3 100644
--- a/toolchain/binutils/Makefile
+++ b/toolchain/binutils/Makefile
@@ -33,6 +33,7 @@ define Build/Configure
--target=$(REAL_GNU_TARGET_NAME) \
--disable-werror \
--disable-nls \
+ $(call qstrip,$(CONFIG_EXTRA_BINUTILS_CONFIG_OPTIONS)) \
);
endef