]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - mkconfig
s3c64xx: move s3c64xx header files to asm-arm/arch-s3c64xx
[karo-tx-uboot.git] / mkconfig
index 4c5675bd3cca3eea89955f8d4feb49dd597d8463..bdc9d91d17198cd3e2d5252a8bdae902ff14bff2 100755 (executable)
--- a/mkconfig
+++ b/mkconfig
@@ -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