]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
tools/env/fw_env.h: Correct include order
authorPeter Robinson <pbrobinson@gmail.com>
Wed, 17 Jun 2015 15:58:32 +0000 (16:58 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 22:42:52 +0000 (00:42 +0200)
When building tools-only (or env) we need to be sure that we do use
<linux/kconfig.h> and do not use <generated/autoconf.h>.  This will fix
problems such as running 'make defconfig' or 'make sandbox_config' and
then 'make tools-only'.

Based on the responses below to the thread add linux/kconfig.h higher in
the includes and drop the now unneeded autoconf.h lower down to ensure
the default environment is included correctly

http://lists.denx.de/pipermail/u-boot/2015-June/216849.html

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
tools/env/fw_env.h

index d6faf3491252bcc27c1730497d3b442237117acb..60c05177ffdef2947dd9c856cca32c7a05ab1cfe 100644 (file)
@@ -6,6 +6,8 @@
  */
 
 /* 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>
@@ -13,7 +15,6 @@
 #else
 #include <config.h>
 #endif
-#include <generated/autoconf.h>
 
 /*
  * To build the utility with the static configuration