* [Buildroot] [PATCH 0/2] uboot: needs make >= 4.0 (branch yem/fixes)
@ 2020-02-03 20:20 Yann E. MORIN
2020-02-03 20:20 ` [Buildroot] [PATCH 1/2] package/uboot-tools: needs make >= 4.0 Yann E. MORIN
2020-02-03 20:20 ` [Buildroot] [PATCH 2/2] boot/uboot: " Yann E. MORIN
0 siblings, 2 replies; 5+ messages in thread
From: Yann E. MORIN @ 2020-02-03 20:20 UTC (permalink / raw)
To: buildroot
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(-)
--
.-----------------.--------------------.------------------.--------------------.
| 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. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 1/2] package/uboot-tools: needs make >= 4.0
2020-02-03 20:20 [Buildroot] [PATCH 0/2] uboot: needs make >= 4.0 (branch yem/fixes) Yann E. MORIN
@ 2020-02-03 20:20 ` Yann E. MORIN
2020-02-03 20:30 ` Peter Korsgaard
2020-02-03 20:20 ` [Buildroot] [PATCH 2/2] boot/uboot: " Yann E. MORIN
1 sibling, 1 reply; 5+ messages in thread
From: Yann E. MORIN @ 2020-02-03 20:20 UTC (permalink / raw)
To: buildroot
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 <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
package/uboot-tools/uboot-tools.mk | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/package/uboot-tools/uboot-tools.mk b/package/uboot-tools/uboot-tools.mk
index 1f0bac5bf7..98ac71911b 100644
--- a/package/uboot-tools/uboot-tools.mk
+++ b/package/uboot-tools/uboot-tools.mk
@@ -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
--
2.20.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 2/2] boot/uboot: needs make >= 4.0
2020-02-03 20:20 [Buildroot] [PATCH 0/2] uboot: needs make >= 4.0 (branch yem/fixes) Yann E. MORIN
2020-02-03 20:20 ` [Buildroot] [PATCH 1/2] package/uboot-tools: needs make >= 4.0 Yann E. MORIN
@ 2020-02-03 20:20 ` Yann E. MORIN
2020-02-03 20:30 ` Peter Korsgaard
1 sibling, 1 reply; 5+ messages in thread
From: Yann E. MORIN @ 2020-02-03 20:20 UTC (permalink / raw)
To: buildroot
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 <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
boot/uboot/uboot.mk | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index a4879bb8b2..19dfb08e81 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -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)
--
2.20.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 2/2] boot/uboot: needs make >= 4.0
2020-02-03 20:20 ` [Buildroot] [PATCH 2/2] boot/uboot: " Yann E. MORIN
@ 2020-02-03 20:30 ` Peter Korsgaard
0 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2020-02-03 20:30 UTC (permalink / raw)
To: buildroot
>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> 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 <peter@korsgaard.com>
> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
> ---
> boot/uboot/uboot.mk | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
> diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
> index a4879bb8b2..19dfb08e81 100644
> --- a/boot/uboot/uboot.mk
> +++ b/boot/uboot/uboot.mk
> @@ -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.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 1/2] package/uboot-tools: needs make >= 4.0
2020-02-03 20:20 ` [Buildroot] [PATCH 1/2] package/uboot-tools: needs make >= 4.0 Yann E. MORIN
@ 2020-02-03 20:30 ` Peter Korsgaard
0 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2020-02-03 20:30 UTC (permalink / raw)
To: buildroot
>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> 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 <peter@korsgaard.com>
> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
> ---
> package/uboot-tools/uboot-tools.mk | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
> diff --git a/package/uboot-tools/uboot-tools.mk b/package/uboot-tools/uboot-tools.mk
> index 1f0bac5bf7..98ac71911b 100644
> --- a/package/uboot-tools/uboot-tools.mk
> +++ b/package/uboot-tools/uboot-tools.mk
> @@ -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.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-02-03 20:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-03 20:20 [Buildroot] [PATCH 0/2] uboot: needs make >= 4.0 (branch yem/fixes) Yann E. MORIN
2020-02-03 20:20 ` [Buildroot] [PATCH 1/2] package/uboot-tools: needs make >= 4.0 Yann E. MORIN
2020-02-03 20:30 ` Peter Korsgaard
2020-02-03 20:20 ` [Buildroot] [PATCH 2/2] boot/uboot: " Yann E. MORIN
2020-02-03 20:30 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.