u-boot: pass ARCH/CROSS_COMPILE when running make <board>_config
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 27 Sep 2010 10:37:45 +0000 (12:37 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 27 Sep 2010 10:37:45 +0000 (12:37 +0200)
Gets rid of a bunch of (ignored) errors about missing cross compiler.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
boot/u-boot/u-boot.mk

index 7b6b2ce632e30d6e348d2998fbbb763b0d3d5bd8..f97674ada68944e4f707272e0dee5267a8c79ced 100644 (file)
@@ -88,7 +88,8 @@ ifeq ($(U_BOOT_BOARD_NAME),)
 endif
        $(TARGET_CONFIGURE_OPTS)                \
                $(U_BOOT_CONFIGURE_OPTS) \
-               $(MAKE) -C $(U_BOOT_DIR)        \
+               $(MAKE) -C $(U_BOOT_DIR) \
+               CROSS_COMPILE="$(TARGET_CROSS)" ARCH=$(U_BOOT_ARCH) \
                $(U_BOOT_BOARD_NAME)_config
        touch $@