mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
boot/uboot: Fix kconfig to use $(BR2_MAKE)
U-Boot must use $(BR2_MAKE) as it uses a Make feature from v4.0. We
already use $(BR2_MAKE) in the BUILD_CMDS, but the kconfig commands
still uses $(MAKE). Without this fix, building U-Boot with kconfig will
fail with the following cryptic error.
> Makefile:37: *** missing separator. Stop.
Signed-off-by: Brandon Maier <brandon.maier@rockwellcollins.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 43dc2007a9)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
0b0f8b475c
commit
a31976ce5b
@@ -16,6 +16,7 @@ UBOOT_INSTALL_IMAGES = YES
|
|||||||
|
|
||||||
# u-boot 2020.01+ needs make 4.0+
|
# u-boot 2020.01+ needs make 4.0+
|
||||||
UBOOT_DEPENDENCIES = $(BR2_MAKE_HOST_DEPENDENCY)
|
UBOOT_DEPENDENCIES = $(BR2_MAKE_HOST_DEPENDENCY)
|
||||||
|
UBOOT_MAKE = $(BR2_MAKE)
|
||||||
|
|
||||||
ifeq ($(UBOOT_VERSION),custom)
|
ifeq ($(UBOOT_VERSION),custom)
|
||||||
# Handle custom U-Boot tarballs as specified by the configuration
|
# Handle custom U-Boot tarballs as specified by the configuration
|
||||||
@@ -257,7 +258,7 @@ UBOOT_POST_PATCH_HOOKS += UBOOT_FIXUP_LIBFDT_INCLUDE
|
|||||||
ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY),y)
|
ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY),y)
|
||||||
define UBOOT_CONFIGURE_CMDS
|
define UBOOT_CONFIGURE_CMDS
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
$(BR2_MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) \
|
$(UBOOT_MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) \
|
||||||
$(UBOOT_BOARD_NAME)_config
|
$(UBOOT_BOARD_NAME)_config
|
||||||
endef
|
endef
|
||||||
else ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG),y)
|
else ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG),y)
|
||||||
@@ -294,7 +295,7 @@ define UBOOT_BUILD_CMDS
|
|||||||
cp -f $(UBOOT_CUSTOM_DTS_PATH) $(@D)/arch/$(UBOOT_ARCH)/dts/
|
cp -f $(UBOOT_CUSTOM_DTS_PATH) $(@D)/arch/$(UBOOT_ARCH)/dts/
|
||||||
)
|
)
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
$(BR2_MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) \
|
$(UBOOT_MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) \
|
||||||
$(UBOOT_MAKE_TARGET)
|
$(UBOOT_MAKE_TARGET)
|
||||||
$(if $(BR2_TARGET_UBOOT_FORMAT_SD),
|
$(if $(BR2_TARGET_UBOOT_FORMAT_SD),
|
||||||
$(@D)/tools/mxsboot sd $(@D)/u-boot.sb $(@D)/u-boot.sd)
|
$(@D)/tools/mxsboot sd $(@D)/u-boot.sb $(@D)/u-boot.sd)
|
||||||
|
|||||||
Reference in New Issue
Block a user