uboot: needs make >= 4.0 (branch yem/fixes)
cover uboot: needs make >= 4.0 (branch yem/fixes)
Hello All!
This 2-patch series fixes the build for uboot >= 2020.01 and uboot-tools when the host make is older than 4.0 (in practice, is 3.81).
Regards,
Yann E. MORIN.
The following changes since commit b6e0aaa5441275675ea953b5d980ca7d6df918e1
package/fail2ban: add conditional python-systemd dependancy (2020-02-03 18:24:27 +0100)
are available in the git repository at:
git://git.buildroot.org/~ymorin/git/buildroot.git
for you to fetch changes up to 214c0588eab33158185f6199444bd0b6dbc577ba
boot/uboot: needs make >= 4.0 (2020-02-03 21:19:39 +0100)
----------------------------------------------------------------
Yann E. MORIN (2):
package/uboot-tools: needs make >= 4.0
boot/uboot: needs make >= 4.0
boot/uboot/uboot.mk | 6 ++++-- package/uboot-tools/uboot-tools.mk | 9 ++++++--- 2 files changed, 10 insertions(+), 5 deletions(-)
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 1/2 package/uboot-tools: needs make >= 4.0
Starting with 2020.01, uboot started using the 'undefine' make directive, which was only introduced with make 4.0.
So, use the existing $(BR2_MAKE_HOST_DEPENDENCY) and $(BR2_MAKE), both of each will ensure that we do use a make that is at least 4.0.
Fixes:
http://autobuild.buildroot.org/results/c97/c976ed5eb7760cba192d22b3f1e7460596fd82dd/
--- package/uboot-tools/uboot-tools.mk | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
package/uboot-tools/uboot-tools.mk +6 -3
@@ -11,6 +11,9 @@ UBOOT_TOOLS_LICENSE = GPL-2.0+ UBOOT_TOOLS_LICENSE_FILES = Licenses/gpl-2.0.txt UBOOT_TOOLS_INSTALL_STAGING = YES +UBOOT_TOOLS_DEPENDENCIES = $(BR2_MAKE_HOST_DEPENDENCY) +HOST_UBOOT_TOOLS_DEPENDENCIES = $(BR2_MAKE_HOST_DEPENDENCY) + define UBOOT_TOOLS_CONFIGURE_CMDS mkdir -p $(@D)/include/config touch $(@D)/include/config/auto.conf
@@ -39,9 +42,9 @@ endef endif define UBOOT_TOOLS_BUILD_CMDS - $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(UBOOT_TOOLS_MAKE_OPTS) \ + $(TARGET_MAKE_ENV) $(BR2_MAKE) -C $(@D) $(UBOOT_TOOLS_MAKE_OPTS) \ CROSS_BUILD_TOOLS=y tools-only - $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(UBOOT_TOOLS_MAKE_OPTS) \ + $(TARGET_MAKE_ENV) $(BR2_MAKE) -C $(@D) $(UBOOT_TOOLS_MAKE_OPTS) \ envtools no-dot-config-targets=envtools endef
@@ -103,7 +106,7 @@ HOST_UBOOT_TOOLS_DEPENDENCIES += host-openssl endif define HOST_UBOOT_TOOLS_BUILD_CMDS - $(MAKE1) -C $(@D) $(HOST_UBOOT_TOOLS_MAKE_OPTS) tools-only + $(BR2_MAKE1) -C $(@D) $(HOST_UBOOT_TOOLS_MAKE_OPTS) tools-only endef define HOST_UBOOT_TOOLS_INSTALL_CMDS
Signature · 1 line
2.20.1
PATCH 1/2 package/uboot-tools: needs make >= 4.0
Quoted 22 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
Starting with 2020.01, uboot started using the 'undefine' make directive, which was only introduced with make 4.0.
So, use the existing $(BR2_MAKE_HOST_DEPENDENCY) and $(BR2_MAKE), both of each will ensure that we do use a make that is at least 4.0.
Fixes:
http://autobuild.buildroot.org/results/c97/c976ed5eb7760cba192d22b3f1e7460596fd82dd/Reported-by Peter Korsgaard <[email protected]>Signed-off-by Yann E. MORIN <[email protected]>--- package/uboot-tools/uboot-tools.mk | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)package/uboot-tools/uboot-tools.mk +0
-0
package/uboot-tools/uboot-tools.mk UBOOT_TOOLS_LICENSE = GPL-2.0+ · line 15
Quoted 5 lines
package/uboot-tools/uboot-tools.mk +2
-0@@ -11,6 +11,9 @@ UBOOT_TOOLS_LICENSE = GPL-2.0+ UBOOT_TOOLS_LICENSE_FILES = Licenses/gpl-2.0.txt UBOOT_TOOLS_INSTALL_STAGING = YES +UBOOT_TOOLS_DEPENDENCIES = $(BR2_MAKE_HOST_DEPENDENCY) +HOST_UBOOT_TOOLS_DEPENDENCIES = $(BR2_MAKE_HOST_DEPENDENCY)
I added a comment explaining why we are doing this and committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 2/2 boot/uboot: needs make >= 4.0
In reply to Yann E. MORINStarting with 2020.01, uboot started using the 'undefine' make directive, which was only introduced with make 4.0.
In the general case, we do not have a way to know if the uboot selected by the user is older or later than 2020.01, so we have no way to know before hand if make >= 4.0 is needed or not. As such, we have no other option than to always require it.
So, use the existing $(BR2_MAKE_HOST_DEPENDENCY) and $(BR2_MAKE), both of each will ensure that we do use a make that is at least 4.0.
--- boot/uboot/uboot.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
boot/uboot/uboot.mk +4 -2
@@ -12,6 +12,8 @@ UBOOT_LICENSE_FILES = Licenses/gpl-2.0.txt UBOOT_INSTALL_IMAGES = YES +UBOOT_DEPENDENCIES = $(BR2_MAKE_HOST_DEPENDENCY) + ifeq ($(UBOOT_VERSION),custom) # Handle custom U-Boot tarballs as specified by the configuration UBOOT_TARBALL = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION))
@@ -242,7 +244,7 @@ UBOOT_POST_PATCH_HOOKS += UBOOT_FIXUP_LIBFDT_INCLUDE ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY),y) define UBOOT_CONFIGURE_CMDS $(TARGET_CONFIGURE_OPTS) \ - $(MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) \ + $(BR2_MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) \ $(UBOOT_BOARD_NAME)_config endef else ifeq ($(BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG),y)
@@ -279,7 +281,7 @@ define UBOOT_BUILD_CMDS cp -f $(UBOOT_CUSTOM_DTS_PATH) $(@D)/arch/$(UBOOT_ARCH)/dts/ ) $(TARGET_CONFIGURE_OPTS) \ - $(MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) \ + $(BR2_MAKE) -C $(@D) $(UBOOT_MAKE_OPTS) \ $(UBOOT_MAKE_TARGET) $(if $(BR2_TARGET_UBOOT_FORMAT_SD), $(@D)/tools/mxsboot sd $(@D)/u-boot.sb $(@D)/u-boot.sd)
Signature · 1 line
2.20.1
PATCH 2/2 boot/uboot: needs make >= 4.0
Quoted 24 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
Starting with 2020.01, uboot started using the 'undefine' make directive, which was only introduced with make 4.0.
In the general case, we do not have a way to know if the uboot selected by the user is older or later than 2020.01, so we have no way to know before hand if make >= 4.0 is needed or not. As such, we have no other option than to always require it.
So, use the existing $(BR2_MAKE_HOST_DEPENDENCY) and $(BR2_MAKE), both of each will ensure that we do use a make that is at least 4.0.
Reported-by Peter Korsgaard <[email protected]>Signed-off-by Yann E. MORIN <[email protected]>--- boot/uboot/uboot.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)boot/uboot/uboot.mk +0
-0
boot/uboot/uboot.mk UBOOT_LICENSE_FILES = Licenses/gpl-2.0.txt · line 14
Quoted 3 lines
boot/uboot/uboot.mk +1
-0@@ -12,6 +12,8 @@ UBOOT_LICENSE_FILES = Licenses/gpl-2.0.txt UBOOT_INSTALL_IMAGES = YES +UBOOT_DEPENDENCIES = $(BR2_MAKE_HOST_DEPENDENCY)
I added a comment explaining why we are doing this and committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard