]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - scripts/multiconfig.sh
scripts/Makefile.clean: clean also $(extra-m) and $(extra-)
[karo-tx-uboot.git] / scripts / multiconfig.sh
index 7606193102451a11f0906ae67993b54c1a8a3e52..49fcfad3c13d62d10a31d4e8fdfb2e1ddce0bf51 100644 (file)
@@ -118,6 +118,13 @@ do_board_defconfig () {
        defconfig_path=$srctree/configs/$1
        tmp_defconfig_path=configs/.tmp_defconfig
 
+       if [ ! -r $defconfig_path ]; then
+               echo >&2 "***"
+               echo >&2 "*** Can't find default configuration \"confis/$1\"!"
+               echo >&2 "***"
+               exit 1
+       fi
+
        mkdir -p arch configs
        # defconfig for Normal:
        #  pick lines without prefixes and lines starting '+' prefix
@@ -194,14 +201,14 @@ do_savedefconfig () {
                        for i in $output_lines
                        do
                                case "$i" in
-                               "[+A-Z]*:$line")
+                               [+A-Z]*:$line)
                                        tmp="$tmp%$unmatched"
                                        i=$(echo "$i" | \
-                                           sed -e "s/^\([^:]\)*/\1$symbol/")
+                                           sed -e "s/^\([^:]*\)/\1$symbol/")
                                        tmp="$tmp%$i"
                                        match=1
                                        ;;
-                               "$line")
+                               $line)
                                        tmp="$tmp%$unmatched"
                                        tmp="$tmp%+$symbol:$i"
                                        match=1