diff options
author | Stefan Roese <sr@denx.de> | 2009-10-27 13:46:23 +0300 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2009-11-02 18:29:03 +0300 |
commit | 7ec1fedda6ac551c67f2214ced94e4b49b6680e4 (patch) | |
tree | 64c92cd05abab5dd18737ff77beca87a930a03cf /mkconfig | |
parent | cd12f615e4dd1dd24caab93f4157894783c6c1c0 (diff) | |
download | u-boot-7ec1fedda6ac551c67f2214ced94e4b49b6680e4.tar.xz |
mkconfig: Create board directory (CONFIG_BOARDDIR) in include/config.h
This patch extends the mkconfig script to automatically create a define
for the board directory in include/config.h:
#define CONFIG_BOARDDIR board/amcc/canyonlands
This is needed for the upcoming PPC4xx linker script consolidation,
where the PPC440 platforms need to include a board specific file in
the common linker script.
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'mkconfig')
-rwxr-xr-x | mkconfig | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -74,6 +74,13 @@ echo "BOARD = $4" >> config.mk [ "$6" ] && [ "$6" != "NULL" ] && echo "SOC = $6" >> config.mk +# Assign board directory to BOARDIR variable +if [ -z "$5" -o "$5" = "NULL" ] ; then + BOARDDIR=$4 +else + BOARDDIR=$5/$4 +fi + # # Create board specific header file # @@ -89,6 +96,8 @@ for i in ${TARGETS} ; do echo "#define CONFIG_MK_${i} 1" >>config.h ; done +echo "#define CONFIG_BOARDDIR board/$BOARDDIR" >>config.h + echo "#include <configs/$1.h>" >>config.h echo "#include <asm/config.h>" >>config.h |