public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] fw_env.h: include autoconf.h
@ 2015-04-14 19:50 Marcel Ziswiler
  2015-04-16 17:20 ` Tom Rini
  2015-05-05 23:59 ` [U-Boot] " Tom Rini
  0 siblings, 2 replies; 5+ messages in thread
From: Marcel Ziswiler @ 2015-04-14 19:50 UTC (permalink / raw)
  To: u-boot

From: Max Krummenacher <max.krummenacher@toradex.com>

Without this, when CONFIG_ENV_VARS_UBOOT_CONFIG is active we get
a compile time error when doing 'make env'.
In file included from tools/env/fw_env.c:117:0:
include/env_default.h:110:11: error: expected ?}? before ?CONFIG_SYS_ARCH?

When building U-Boot this is included indirectly by the compiler switch
-include
/home/trdx/git.toradex.com/u-boot-2014.10-toradex/include/linux/kconfig.h

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
---
This is an issue on all tegra boards due CONFIG_ENV_VARS_UBOOT_CONFIG
being defined in the tegra-common.h header file.

I already did reported this once last November but did not get any
useful insights back then:

http://article.gmane.org/gmane.comp.boot-loaders.u-boot/200702

 tools/env/fw_env.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/env/fw_env.h b/tools/env/fw_env.h
index aff471b..d6faf34 100644
--- a/tools/env/fw_env.h
+++ b/tools/env/fw_env.h
@@ -13,6 +13,7 @@
 #else
 #include <config.h>
 #endif
+#include <generated/autoconf.h>
 
 /*
  * To build the utility with the static configuration
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-07  3:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-14 19:50 [U-Boot] [PATCH] fw_env.h: include autoconf.h Marcel Ziswiler
2015-04-16 17:20 ` Tom Rini
2015-05-05 12:19   ` Marcel Ziswiler
2015-05-07  3:03   ` Masahiro Yamada
2015-05-05 23:59 ` [U-Boot] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox