From: Kim Phillips Date: Wed, 18 Feb 2009 16:14:29 -0600 Subject: [U-Boot] [PATCH] mkconfig: include board config.h before asm/config.h Message-ID: <20090218161429.d2a02a7b.kim.phillips@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de swapping the include order suppresses warnings for board configs that define their own CONFIG_MAX_MEM_MAPPED: In file included from /home/r1aaha/git/u-boot/include/config.h:5, from /home/r1aaha/git/u-boot/include/common.h:35, from simpc8313.c:26: /home/r1aaha/git/u-boot/include/configs/SIMPC8313.h:81:1: warning: "CONFIG_MAX_MEM_MAPPED" redefined In file included from /home/r1aaha/git/u-boot/include/config.h:4, from /home/r1aaha/git/u-boot/include/common.h:35, from simpc8313.c:26: /home/r1aaha/git/u-boot/include/asm/config.h:28:1: warning: this is the location of the previous definition Signed-off-by: Kim Phillips --- mkconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mkconfig b/mkconfig index b6b0a80..b0bbbd1 100755 --- a/mkconfig +++ b/mkconfig @@ -82,7 +82,7 @@ else > config.h # Create new config file fi echo "/* Automatically generated - do not edit */" >>config.h -echo "#include " >>config.h echo "#include " >>config.h +echo "#include " >>config.h exit 0 -- 1.6.1.3