u-boot.mk: pass CROSS_COMPILE during config
authorFelix Fietkau <nbd@nbd.name>
Mon, 2 Sep 2024 08:58:18 +0000 (10:58 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 2 Sep 2024 10:42:05 +0000 (12:42 +0200)
Avoids running into unset architecture specific config symbols

Signed-off-by: Felix Fietkau <nbd@nbd.name>
include/u-boot.mk

index 454880989b5ec066542ef7f23a4580104c8423c2..1bd7ed4bd567445de56ddc176617970163bda6b3 100644 (file)
@@ -110,10 +110,10 @@ define Build/U-Boot/Target
 endef
 
 define Build/Configure/U-Boot
-       +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) $(UBOOT_CONFIGURE_VARS) $(UBOOT_CONFIG)_config
+       +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) CROSS_COMPILE=$(TARGET_CROSS) $(UBOOT_CONFIGURE_VARS) $(UBOOT_CONFIG)_config
        $(if $(strip $(UBOOT_CUSTOMIZE_CONFIG)),
                $(PKG_BUILD_DIR)/scripts/config --file $(PKG_BUILD_DIR)/.config $(UBOOT_CUSTOMIZE_CONFIG)
-               +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) $(UBOOT_CONFIGURE_VARS) oldconfig)
+               +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) CROSS_COMPILE=$(TARGET_CROSS) $(UBOOT_CONFIGURE_VARS) oldconfig)
 endef
 
 ifndef UBOOT_USE_INTREE_DTC