From: Peter Robinson Date: Wed, 17 Jun 2015 15:58:32 +0000 (+0100) Subject: tools/env/fw_env.h: Correct include order X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=0b367380a52ac36b552d40ed1b10064d894e35a9;p=u-boot.git tools/env/fw_env.h: Correct include order When building tools-only (or env) we need to be sure that we do use and do not use . 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 --- diff --git a/tools/env/fw_env.h b/tools/env/fw_env.h index d6faf34912..60c05177ff 100644 --- a/tools/env/fw_env.h +++ b/tools/env/fw_env.h @@ -6,6 +6,8 @@ */ /* Pull in the current config to define the default environment */ +#include + #ifndef __ASSEMBLY__ #define __ASSEMBLY__ /* get only #defines from config.h */ #include @@ -13,7 +15,6 @@ #else #include #endif -#include /* * To build the utility with the static configuration