X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=mkconfig;h=daa1810e72f18726e3bded96d82a61c0784c3012;hb=5094fbf79b51c66273f4500c8241e845845455f4;hp=6ff533f339336f56243dfd634bc4216fa2dfc25f;hpb=a9d8bc98061c2c4bce312ce4d63cb4c61889fb6d;p=karo-tx-uboot.git diff --git a/mkconfig b/mkconfig index 6ff533f339..daa1810e72 100755 --- 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 @@ -148,7 +157,7 @@ fi echo "/* Automatically generated - do not edit */" >>config.h for i in ${TARGETS} ; do - i="`echo ${i} | sed '/=/ {s/=/\t/;q } ; { s/$/\t1/ }'`" + i="`echo ${i} | sed '/=/ {s/=/ /;q; } ; { s/$/ 1/; }'`" echo "#define CONFIG_${i}" >>config.h ; done @@ -158,6 +167,7 @@ cat << EOF >> config.h #include #include #include +#include EOF exit 0