Skip to contentSkip to conversation

package/uboot-tools: fix build with FIT

PATCH New Fabrice Fontaine 2 participants 2 messages Apr 24, 2021 – Apr 25, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/uboot-tools: fix build with FIT

Build with FIT is broken since bump to version 2021.04 in commit a4c38ae470e6c472f0e0cdfbfb8e2e76f1e8047c

Fake a generated/autoconf.h with just the needed stuff as suggested by
Yann E. Morin in
https://patchwork.ozlabs.org/project/buildroot/patch/20210422210559.707845-1-fontaine.fabrice at gmail.com

It seems that an empty file is enough as make options are still interpreted

As a side-effect, drop third patch

Fixes:
- http://autobuild.buildroot.org/results/5771a7413c98ec202c9623672787a1eee74da5e0

---
Changes v1 -> v2 (after review of Yann E. Morin):
- Drop patch and fake a generated/autoconf.h

 .../0003-drop-autoconf.h-from-tools.patch     | 36 -------------------
 package/uboot-tools/uboot-tools.mk            |  4 +++
 2 files changed, 4 insertions(+), 36 deletions(-)
 delete mode 100644 package/uboot-tools/0003-drop-autoconf.h-from-tools.patch
package/uboot-tools/0003-drop-autoconf.h-from-tools.patch deleted +0 -36
deleted file mode 100644
index 09ee40bec0..0000000000
@@ -1,36 +0,0 @@
-From 0552a8ffdfbb9807fcef4498011907caa5de2ace Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?J=C3=B6rg=20Krause?= <[email protected]>
-Date: Thu, 9 Jan 2020 15:11:32 +0100
-Subject: [PATCH] drop autoconf.h from tools
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-We need to build u-boot tools without a board configuration for the target.
-
-imximage uses the DCD address from Kconfig to display this information
-to the user. The default value for all i.MX platforms is 0x00910000,
-except for i.MX7ULP, which has a DCD address of 0x2f010000.
-
-The default value printed before version 2020.01 was 0x00910000.
-
-Signed-off-by: J?rg Krause <[email protected]>
----
- tools/imximage.c | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/tools/imximage.c b/tools/imximage.c
-index d7edd3c52f..f8d21fa06a 100644
---- a/tools/imximage.c
-+++ b/tools/imximage.c
-@@ -11,7 +11,6 @@
- #include "imagetool.h"
- #include <image.h>
- #include "imximage.h"
--#include <generated/autoconf.h>
- 
- #define UNDEFINED 0xFFFFFFFF
- 
--- 
-2.25.0
-
package/uboot-tools/uboot-tools.mk +4 -0
index 179e39f9c0..8963d6182e 100644
@@ -20,6 +20,8 @@ HOST_UBOOT_TOOLS_DEPENDENCIES = $(BR2_MAKE_HOST_DEPENDENCY)
 define UBOOT_TOOLS_CONFIGURE_CMDS
 	mkdir -p $(@D)/include/config
 	touch $(@D)/include/config/auto.conf
+	mkdir -p $(@D)/include/generated
+	touch $(@D)/include/generated/autoconf.h
 endef
 
 UBOOT_TOOLS_MAKE_OPTS = CROSS_COMPILE="$(TARGET_CROSS)" \
@@ -94,6 +96,8 @@ endef
 define HOST_UBOOT_TOOLS_CONFIGURE_CMDS
 	mkdir -p $(@D)/include/config
 	touch $(@D)/include/config/auto.conf
+	mkdir -p $(@D)/include/generated
+	touch $(@D)/include/generated/autoconf.h
 endef
 
 HOST_UBOOT_TOOLS_MAKE_OPTS = HOSTCC="$(HOSTCC)" \
Signature · 1 line
2.30.2
#1 lore raw

PATCH v2 1/1 package/uboot-tools: fix build with FIT

Fabrice, All,

On 2021-04-25 00:31 +0200, Fabrice Fontaine spake thusly:

Quoted 10 lines

Build with FIT is broken since bump to version 2021.04 in commit a4c38ae470e6c472f0e0cdfbfb8e2e76f1e8047c

Fake a generated/autoconf.h with just the needed stuff as suggested by
Yann E. Morin in
https://patchwork.ozlabs.org/project/buildroot/patch/20210422210559.707845-1-fontaine.fabrice at gmail.com

It seems that an empty file is enough as make options are still interpreted

Quoted 6 lines

As a side-effect, drop third patch

Fixes:
- http://autobuild.buildroot.org/results/5771a7413c98ec202c9623672787a1eee74da5e0

Applied to master, thanks.

Let's see how the defconfigs now behave in the pipelines...

Regards,
Yann E. MORIN.

Quoted 80 lines

---
Changes v1 -> v2 (after review of Yann E. Morin):
- Drop patch and fake a generated/autoconf.h

 .../0003-drop-autoconf.h-from-tools.patch     | 36 -------------------
 package/uboot-tools/uboot-tools.mk            |  4 +++
 2 files changed, 4 insertions(+), 36 deletions(-)
 delete mode 100644 package/uboot-tools/0003-drop-autoconf.h-from-tools.patch
package/uboot-tools/0003-drop-autoconf.h-from-tools.patch deleted +0 -36
deleted file mode 100644
index 09ee40bec0..0000000000
@@ -1,36 +0,0 @@
-From 0552a8ffdfbb9807fcef4498011907caa5de2ace Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?J=C3=B6rg=20Krause?= <[email protected]>
-Date: Thu, 9 Jan 2020 15:11:32 +0100
-Subject: [PATCH] drop autoconf.h from tools
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-We need to build u-boot tools without a board configuration for the target.
-
-imximage uses the DCD address from Kconfig to display this information
-to the user. The default value for all i.MX platforms is 0x00910000,
-except for i.MX7ULP, which has a DCD address of 0x2f010000.
-
-The default value printed before version 2020.01 was 0x00910000.
-
-Signed-off-by: J?rg Krause <[email protected]>
----
- tools/imximage.c | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/tools/imximage.c b/tools/imximage.c
-index d7edd3c52f..f8d21fa06a 100644
---- a/tools/imximage.c
-+++ b/tools/imximage.c
-@@ -11,7 +11,6 @@
- #include "imagetool.h"
- #include <image.h>
- #include "imximage.h"
--#include <generated/autoconf.h>
- 
- #define UNDEFINED 0xFFFFFFFF
- 
--- 
-2.25.0
-
package/uboot-tools/uboot-tools.mk +4 -0
index 179e39f9c0..8963d6182e 100644
@@ -20,6 +20,8 @@ HOST_UBOOT_TOOLS_DEPENDENCIES = $(BR2_MAKE_HOST_DEPENDENCY)
 define UBOOT_TOOLS_CONFIGURE_CMDS
 	mkdir -p $(@D)/include/config
 	touch $(@D)/include/config/auto.conf
+	mkdir -p $(@D)/include/generated
+	touch $(@D)/include/generated/autoconf.h
 endef
 
 UBOOT_TOOLS_MAKE_OPTS = CROSS_COMPILE="$(TARGET_CROSS)" \
@@ -94,6 +96,8 @@ endef
 define HOST_UBOOT_TOOLS_CONFIGURE_CMDS
 	mkdir -p $(@D)/include/config
 	touch $(@D)/include/config/auto.conf
+	mkdir -p $(@D)/include/generated
+	touch $(@D)/include/generated/autoconf.h
 endef
 
 HOST_UBOOT_TOOLS_MAKE_OPTS = HOSTCC="$(HOSTCC)" \
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
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.  |
'------------------------------^-------^------------------^--------------------'