Author: nbd
Date: 2015-11-26 11:39:41 +0100 (Thu, 26 Nov 2015)
New Revision: 47651

Modified:
   branches/chaos_calmer/tools/mkimage/Makefile
Log:
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 <[email protected]>

Backport of r46424

Modified: branches/chaos_calmer/tools/mkimage/Makefile
===================================================================
--- branches/chaos_calmer/tools/mkimage/Makefile        2015-11-25 22:36:38 UTC 
(rev 47650)
+++ branches/chaos_calmer/tools/mkimage/Makefile        2015-11-26 10:39:41 UTC 
(rev 47651)
@@ -31,8 +31,8 @@
 endef
 
 define Host/Compile
-       $(MAKE) -C $(HOST_BUILD_DIR) defconfig
-       $(MAKE) -C $(HOST_BUILD_DIR) tools-only
+       $(MAKE) -C $(HOST_BUILD_DIR) defconfig   HOSTCFLAGS="$(HOST_CPPFLAGS) 
$(HOST_CFLAGS)" HOSTLDFLAGS="$(HOST_LDFLAGS)"
+       $(MAKE) -C $(HOST_BUILD_DIR) tools-only  HOSTCFLAGS="$(HOST_CPPFLAGS) 
$(HOST_CFLAGS)" HOSTLDFLAGS="$(HOST_LDFLAGS)"
 endef
 
 define Host/Install
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to