X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/11c2779e23eb7e84693e246e550b41860ea05c7d..7e4be8edea219e2e688c2557961b1603bb71a7c2:/toolchain/binutils/Makefile diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile index d31742125..8682fa596 100644 --- a/toolchain/binutils/Makefile +++ b/toolchain/binutils/Makefile @@ -24,7 +24,10 @@ BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN) include $(INCLUDE_DIR)/host-build.mk +EXTRA_TARGET=$(if $(CONFIG_EXTRA_TARGET_ARCH),--enable-targets=$(call qstrip,$(CONFIG_EXTRA_TARGET_ARCH_NAME))-linux-uclibc) + define Build/Configure + $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ (cd $(PKG_BUILD_DIR); \ ./configure \ --prefix=$(STAGING_DIR_HOST) \ @@ -33,6 +36,7 @@ define Build/Configure --target=$(REAL_GNU_TARGET_NAME) \ --disable-werror \ --disable-nls \ + $(EXTRA_TARGET) \ $(SOFT_FLOAT_CONFIG_OPTION) \ $(call qstrip,$(CONFIG_EXTRA_BINUTILS_CONFIG_OPTIONS)) \ );