Skip to content

Commit

Permalink
u-boot.mk: pass CROSS_COMPILE during config
Browse files Browse the repository at this point in the history
Avoids running into unset architecture specific config symbols

Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
nbd168 committed Sep 2, 2024
1 parent 978aa43 commit fd3d798
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/u-boot.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd3d798

Please sign in to comment.