Skip to contentSkip to conversation

package/uboot-tools: revert the removal of 0001-drop-configh-from-tools.patch

PATCH New Romain Naour 3 participants 4 messages Jun 3, 2017 – Jun 4, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/uboot-tools: revert the removal of 0001-drop-configh-from-tools.patch

Patch 0001-drop-configh-from-tools.patch is not upstream, instead it must be rebased on top of 2017.05 release since the code was moved by [1].

Fixes:
http://autobuild.buildroot.net/results/949/94910513d1b14e3b02ec4aed34de89d1b1d7a12a

[1] http://git.denx.de/?p=u-boot.git;a=commit;h=9d80b49a671c9922931adcd823aab0ed319a42d1

---
 .../uboot-tools/0001-drop-configh-from-tools.patch | 47 ++++++++++++++++++++++
 1 file changed, 47 insertions(+)
 create mode 100644 package/uboot-tools/0001-drop-configh-from-tools.patch
package/uboot-tools/0001-drop-configh-from-tools.patch new file +47 -0
new file mode 100644
index 0000000..f19cebe
@@ -0,0 +1,47 @@
+From 216832de3bc3e6ef093305c6d07f464f7606f2d6 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?J=C3=B6rg=20Krause?= <[email protected]>
+Date: Tue, 4 Aug 2015 22:13:20 +0200
+Subject: [PATCH] drop configh 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.
+fw_env just uses config.h to define the default environment of the created
+image, so it really isn't mandatory.
+
+Signed-off-by: Gustavo Zacarias <[email protected]>
+[J?rg Krause: update for version 2015.07]
+Signed-off-by: J?rg Krause <[email protected]>
+[Romain: update for version 2017.05
+    after commit 9d80b49a671c9922931adcd823aab0ed319a42d1]
+Signed-off-by: Romain Naour <[email protected]>
+---
+ tools/env/fw_env_private.h | 11 -----------
+ 1 file changed, 11 deletions(-)
+
+diff --git a/tools/env/fw_env_private.h b/tools/env/fw_env_private.h
+index 0c27da0..e550463 100644
+--- a/tools/env/fw_env_private.h
++++ b/tools/env/fw_env_private.h
+@@ -5,17 +5,6 @@
+  * SPDX-License-Identifier:	GPL-2.0+
+  */
+ 
+-/* Pull in the current config to define the default environment */
+-#include <linux/kconfig.h>
+-
+-#ifndef __ASSEMBLY__
+-#define __ASSEMBLY__ /* get only #defines from config.h */
+-#include <config.h>
+-#undef	__ASSEMBLY__
+-#else
+-#include <config.h>
+-#endif
+-
+ /*
+  * To build the utility with the static configuration
+  * comment out the next line.
+-- 
+2.9.4
+
Signature · 1 line
2.9.4
#1 lore raw

PATCH 1/1 package/uboot-tools: revert the removal of 0001-drop-configh-from-tools.patch

Quoted 11 lines · Romain Naour

Patch 0001-drop-configh-from-tools.patch is not upstream, instead it must be rebased on top of 2017.05 release since the code was moved by [1].

Fixes:
http://autobuild.buildroot.net/results/949/94910513d1b14e3b02ec4aed34de89d1b1d7a12a

[1] http://git.denx.de/?p=u-boot.git;a=commit;h=9d80b49a671c9922931adcd823aab0ed319a42d1

Can't we have this patch upstreamed instead of keeping it in Buildroot?

Thanks

#2 lore raw

PATCH 1/1 package/uboot-tools: revert the removal of 0001-drop-configh-from-tools.patch

Hi Fabio,

Le 03/06/2017 ? 21:58, Fabio Estevam a ?crit :

Quoted 8 lines · Romain Naour
Quoted 7 lines

Patch 0001-drop-configh-from-tools.patch is not upstream, instead it must be rebased on top of 2017.05 release since the code was moved by [1].

Fixes:
http://autobuild.buildroot.net/results/949/94910513d1b14e3b02ec4aed34de89d1b1d7a12a

Quoted 8 lines
Quoted 4 lines

[1] http://git.denx.de/?p=u-boot.git;a=commit;h=9d80b49a671c9922931adcd823aab0ed319a42d1

Can't we have this patch upstreamed instead of keeping it in Buildroot?

I don't think this patch can be upstreamed as is because building u-boot tools without a "dot-config" is not currently officially supported by u-boot.

See 0002-tools-only-in-no-dot-config-targets.patch reverting an upstream commit to add "tools-only" target.

Maybe it's something to ask to u-boot maintainers?

Best regards,
Romain

Quoted 3 lines

Thanks

#3 lore raw

PATCH 1/1 package/uboot-tools: revert the removal of 0001-drop-configh-from-tools.patch

In reply to Romain Naour

Hello,

Quoted 7 lines · Romain Naour

Patch 0001-drop-configh-from-tools.patch is not upstream, instead it must be rebased on top of 2017.05 release since the code was moved by [1].

Fixes:
http://autobuild.buildroot.net/results/949/94910513d1b14e3b02ec4aed34de89d1b1d7a12a

Quoted 8 lines

[1] http://git.denx.de/?p=u-boot.git;a=commit;h=9d80b49a671c9922931adcd823aab0ed319a42d1

---
 .../uboot-tools/0001-drop-configh-from-tools.patch | 47 ++++++++++++++++++++++
 1 file changed, 47 insertions(+)
 create mode 100644 package/uboot-tools/0001-drop-configh-from-tools.patch

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com