]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - mkconfig
s5pc1xx: serial: fix the error check logic
[karo-tx-uboot.git] / mkconfig
index c3e4cea8d9e90e798cb8a8d8cb2a6da889ae1e78..4c5675bd3cca3eea89955f8d4feb49dd597d8463 100755 (executable)
--- a/mkconfig
+++ b/mkconfig
 
 APPEND=no      # Default: Create new config file
 BOARD_NAME=""  # Name to print in make output
+TARGETS=""
 
 while [ $# -gt 0 ] ; do
        case "$1" in
        --) shift ; break ;;
        -a) shift ; APPEND=yes ;;
        -n) shift ; BOARD_NAME="${1%%_config}" ; shift ;;
+       -t) shift ; TARGETS="`echo $1 | sed 's:_: :g'` ${TARGETS}" ; shift ;;
        *)  break ;;
        esac
 done
@@ -82,6 +84,12 @@ else
        > config.h              # Create new config file
 fi
 echo "/* Automatically generated - do not edit */" >>config.h
+
+for i in ${TARGETS} ; do
+       echo "#define CONFIG_MK_${i} 1" >>config.h ;
+done
+
 echo "#include <configs/$1.h>" >>config.h
+echo "#include <asm/config.h>" >>config.h
 
 exit 0