summaryrefslogtreecommitdiff
path: root/mkconfig
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-12-15 23:38:34 +0100
committerWolfgang Denk <wd@denx.de>2009-12-15 23:38:34 +0100
commitbb3bcfa2426cc6a0aecec7270e3ee67ca843a125 (patch)
tree0314e3d8e8d9e4d568a496fca27db33d66e68bb4 /mkconfig
parenta200a7c04d89853d2a1395b96d8ca5e3dd754551 (diff)
parent4b142febff71eabdb7ddbb125c7b583b24ddc434 (diff)
downloadu-boot-imx-bb3bcfa2426cc6a0aecec7270e3ee67ca843a125.zip
u-boot-imx-bb3bcfa2426cc6a0aecec7270e3ee67ca843a125.tar.gz
u-boot-imx-bb3bcfa2426cc6a0aecec7270e3ee67ca843a125.tar.bz2
Merge branch 'next' of ../next
Diffstat (limited to 'mkconfig')
-rwxr-xr-xmkconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/mkconfig b/mkconfig
index 1075510..27d9f2b 100755
--- a/mkconfig
+++ b/mkconfig
@@ -79,6 +79,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
#
@@ -94,6 +101,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