Skip to contentSkip to conversation

u-boot 2011.03: fix build failure of just tools

PATCH New Gustavo Zacarias 2 participants 2 messages Apr 26, 2011

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 u-boot 2011.03: fix build failure of just tools

When we build just u-boot for the tools, for instance for an uImage target and no u-boot image itself we just build the tools. When this happens we have an unconfigured u-boot target thus lacking a config.h and the build breaks.
The config.h file isn't really needed for the tools so fix it.

---
 boot/u-boot/u-boot-2011.03-drop-configh.patch |   27 +++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)
 create mode 100644 boot/u-boot/u-boot-2011.03-drop-configh.patch
boot/u-boot/u-boot-2011.03-drop-configh.patch new file +27 -0
new file mode 100644
index 0000000..bf524c9
@@ -0,0 +1,27 @@
+"make tools-all" should allow building tools such as mkimage and the new
+imximage without any config, but imximage.c currently fails to build
+with:
+imximage.h:27:20: error: config.h: No such file or directory
+
+config.h is not needed in imximage.h nor in imximage.c, and imximage.h
+is only included from imximage.c, so drop this include to fix the build.
+
+Signed-off-by: Lo?c Minier <[email protected]>
+---
+ tools/imximage.h |    2 --
+ 1 files changed, 0 insertions(+), 2 deletions(-)
+
+diff --git a/tools/imximage.h b/tools/imximage.h
+index 38ca6be..d126a46 100644
+--- a/tools/imximage.h
++++ b/tools/imximage.h
+@@ -24,8 +24,6 @@
+ #ifndef _IMXIMAGE_H_
+ #define _IMXIMAGE_H_
+ 
+-#include <config.h>
+-
+ #define MAX_HW_CFG_SIZE_V2 121 /* Max number of registers imx can set for v2 */
+ #define MAX_HW_CFG_SIZE_V1 60  /* Max number of registers imx can set for v1 */
+ #define APP_CODE_BARKER	0xB1
+-- 1.7.2.3
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH v2 1/1 u-boot 2011.03: fix build failure of just tools

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Gustavo> When we build just u-boot for the tools, for instance for an uImage Gustavo> target and no u-boot image itself we just build the tools. Gustavo> When this happens we have an unconfigured u-boot target thus lacking a Gustavo> config.h and the build breaks.
Gustavo> The config.h file isn't really needed for the tools so fix it.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard