]> git.sur5r.net Git - u-boot/commitdiff
multiconfig.sh: replace GNU sed specific match
authorJeroen Hofstee <jeroen@myspectrum.nl>
Wed, 1 Oct 2014 15:22:58 +0000 (17:22 +0200)
committerTom Rini <trini@ti.com>
Fri, 10 Oct 2014 13:44:45 +0000 (09:44 -0400)
A SPL/TPL enabled target would was not recognized as
such by BSD sed, since it relies on a GNU extension.
Instead of or-ing just spell out both matches.

Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Acked-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
scripts/multiconfig.sh

index b5185a84cf62c4ccc224c270b77ef66ce87f3348..3dadd714e2bb776289596f5d4f420e4af69f177a 100644 (file)
@@ -69,8 +69,8 @@ get_enabled_subimages() {
 
        # CONFIG_SPL=y -> spl
        # CONFIG_TPL=y -> tpl
-       sed -n -e 's/^CONFIG_\(SPL\|TPL\)=y$/\1/p' $KCONFIG_CONFIG | \
-                                                       tr '[A-Z]' '[a-z]'
+       sed -n -e 's/^CONFIG_SPL=y$/spl/p' -e 's/^CONFIG_TPL=y$/tpl/p' \
+                                                        $KCONFIG_CONFIG
 }
 
 do_silentoldconfig () {