Skip to contentSkip to conversation

boot/uboot: Set MAKE_ENV for kconfig build system

PATCH New Thomas Preston 2 participants 2 messages Sep 5, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 boot/uboot: Set MAKE_ENV for kconfig build system

U-Boot fails to build in a GitLab CI context because the kconfig-package build stage is unable to find bison or flex even though they are installed in HOST_DIR.

To fix this, set UBOOT_MAKE_ENV so that UBOOT_KCONFIG_MAKE uses the correct PATH.

---
 boot/uboot/uboot.mk | 1 +
 1 file changed, 1 insertion(+)
boot/uboot/uboot.mk +1 -0
index bddafe234d..a19cb72458 100644
@@ -449,6 +449,7 @@ endif # BR2_TARGET_UBOOT && BR_BUILDING
 ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY),y)
 $(eval $(generic-package))
 else ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG),y)
+UBOOT_MAKE_ENV = $(TARGET_MAKE_ENV)
 UBOOT_KCONFIG_DEPENDENCIES = \
 	$(BR2_BISON_HOST_DEPENDENCY) \
 	$(BR2_FLEX_HOST_DEPENDENCY)
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 boot/uboot: Set MAKE_ENV for kconfig build system

Hello,

Quoted 11 lines · Thomas Preston

U-Boot fails to build in a GitLab CI context because the kconfig-package build stage is unable to find bison or flex even though they are installed in HOST_DIR.

To fix this, set UBOOT_MAKE_ENV so that UBOOT_KCONFIG_MAKE uses the correct PATH.

---
 boot/uboot/uboot.mk | 1 +
 1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com