]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - mkconfig
TRATS: initialize panel_info data structure in board file
[karo-tx-uboot.git] / mkconfig
index f3054ce924ee800b474d6841a88417d2a89b8280..daa1810e72f18726e3bded96d82a61c0784c3012 100755 (executable)
--- a/mkconfig
+++ b/mkconfig
@@ -29,6 +29,15 @@ if [ \( $# -eq 2 \) -a \( "$1" = "-A" \) ] ; then
        set ${line}
        # add default board name if needed
        [ $# = 3 ] && set ${line} ${1}
+elif [ "${MAKEFLAGS+set}${MAKELEVEL+set}" = "setset" ] ; then
+       # only warn when using a config target in the Makefile
+       cat <<-EOF
+
+       warning: Please migrate to boards.cfg.  Failure to do so will
+                mean removal of your board in the next release.
+
+       EOF
+       sleep 5
 fi
 
 while [ $# -gt 0 ] ; do
@@ -98,8 +107,7 @@ if [ "$SRCTREE" != "$OBJTREE" ] ; then
        ln -s ${SRCTREE}/arch/${arch}/include/asm asm
        LNPREFIX=${SRCTREE}/arch/${arch}/include/asm/
        cd ../include
-       rm -f asm
-       ln -s ${SRCTREE}/arch/${arch}/include/asm asm
+       mkdir -p asm
 else
        cd ./include
        rm -f asm
@@ -149,15 +157,17 @@ fi
 echo "/* Automatically generated - do not edit */" >>config.h
 
 for i in ${TARGETS} ; do
-       i="`echo ${i} | sed '/=/ {s/=/\t/;q } ; { s/$/\t1/ }'`"
-       echo "#define CONFIG_MK_${i}" >>config.h ;
+       i="`echo ${i} | sed '/=/ {s/=/  /;q; } ; { s/$/ 1/; }'`"
+       echo "#define CONFIG_${i}" >>config.h ;
 done
 
 cat << EOF >> config.h
 #define CONFIG_BOARDDIR board/$BOARDDIR
+#include <config_cmd_defaults.h>
 #include <config_defaults.h>
 #include <configs/${CONFIG_NAME}.h>
 #include <asm/config.h>
+#include <config_fallbacks.h>
 EOF
 
 exit 0