mkimage: cross compile fix: pass HOST_*FLAGS in to uboot's makefile

The HOST_*FLAGS are for compiling programs which will run on the machine that is
running the build.  Setting these flags is frequently required for unusual
cross-compiles.

Signed-off-by: Lawrence D'Anna <larry@elder-gods.org>

SVN-Revision: 46424
lede-17.01
Felix Fietkau 2015-07-19 14:59:26 +00:00
parent 13f50151bc
commit 0fc6755f66
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ define Host/Prepare
endef endef
define Host/Compile define Host/Compile
$(MAKE) -C $(HOST_BUILD_DIR) defconfig $(MAKE) -C $(HOST_BUILD_DIR) defconfig HOSTCFLAGS="$(HOST_CPPFLAGS) $(HOST_CFLAGS)" HOSTLDFLAGS="$(HOST_LDFLAGS)"
$(MAKE) -C $(HOST_BUILD_DIR) tools-only $(MAKE) -C $(HOST_BUILD_DIR) tools-only HOSTCFLAGS="$(HOST_CPPFLAGS) $(HOST_CFLAGS)" HOSTLDFLAGS="$(HOST_LDFLAGS)"
endef endef
define Host/Install define Host/Install