]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mkconfig: pass the board name to board config file
authorMingkai Hu <Mingkai.hu@freescale.com>
Tue, 8 Sep 2009 07:07:12 +0000 (15:07 +0800)
committerTom Rix <Tom.Rix@windriver.com>
Sat, 3 Oct 2009 14:04:19 +0000 (09:04 -0500)
Then we can handle different config targets in the board file, which
simplifies the top level Makefile for boards that have multiple
config targets.

Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
mkconfig

index b0bbbd1e7f41fb0ecdf6918b306680d91b647994..9efd2fa7db067ed09fdf3a09c1d802f6c123ceef 100755 (executable)
--- a/mkconfig
+++ b/mkconfig
@@ -82,6 +82,7 @@ else
        > config.h              # Create new config file
 fi
 echo "/* Automatically generated - do not edit */" >>config.h
+echo "#define CONFIG_MK_${BOARD_NAME} 1" >>config.h
 echo "#include <configs/$1.h>" >>config.h
 echo "#include <asm/config.h>" >>config.h