summaryrefslogtreecommitdiffstats
path: root/rules/u-boot.make
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2010-02-18 20:02:31 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2010-02-18 20:06:47 +0100
commit929eb92caf8256178aabd1c35d500b9ee3d7e619 (patch)
tree3edf91cf4e91b7968d79da359c8ca7158e5a188b /rules/u-boot.make
parent9e2987e947485e129f6b960beb3750edcb022488 (diff)
downloadptxdist-929eb92caf8256178aabd1c35d500b9ee3d7e619.tar.gz
ptxdist-929eb92caf8256178aabd1c35d500b9ee3d7e619.tar.xz
[u-boot] fix cross compilation
Since u-boot revision "v2009.06-433-g1ea6bcd", u-boot's build system doesn't care about the environment variable CROSS_COMPILE any more. We have to define it as make's argument. Reported-by: Erwin Rol <erwin@erwinrol.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules/u-boot.make')
-rw-r--r--rules/u-boot.make8
1 files changed, 4 insertions, 4 deletions
diff --git a/rules/u-boot.make b/rules/u-boot.make
index bc3456ec6..59572ce9f 100644
--- a/rules/u-boot.make
+++ b/rules/u-boot.make
@@ -1,7 +1,7 @@
# -*-makefile-*-
#
# Copyright (C) 2007 by Sascha Hauer
-# 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
+# 2009, 2010 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
@@ -37,14 +37,14 @@ $(U_BOOT_SOURCE):
# ----------------------------------------------------------------------------
U_BOOT_PATH := PATH=$(CROSS_PATH)
-U_BOOT_ENV := CROSS_COMPILE=$(BOOTLOADER_CROSS_COMPILE)
+U_BOOT_MAKE_OPT := CROSS_COMPILE=$(BOOTLOADER_CROSS_COMPILE) HOSTCC=$(HOSTCC)
U_BOOT_MAKE_PAR := NO
$(STATEDIR)/u-boot.prepare:
@$(call targetinfo)
cd $(U_BOOT_DIR) && \
- $(U_BOOT_PATH) $(U_BOOT_ENV) \
- $(MAKE) $(PTXCONF_U_BOOT_CONFIG)
+ $(U_BOOT_PATH) \
+ $(MAKE) $(U_BOOT_MAKE_OPT) $(PTXCONF_U_BOOT_CONFIG)
@$(call touch)
# ----------------------------------------------------------------------------