]> git.ipfire.org Git - thirdparty/u-boot.git/blobdiff - scripts/setlocalversion
Merge branch 'master-fdt' of https://source.denx.de/u-boot/custodians/u-boot-sh
[thirdparty/u-boot.git] / scripts / setlocalversion
index c1c043526745bafbc48d72ff6d048f0ad9591adc..4a63143706705a574957b626baa8ff4d3a050260 100755 (executable)
@@ -153,8 +153,9 @@ if test -e include/config/auto.conf; then
        # We are interested only in CONFIG_LOCALVERSION and
        # CONFIG_LOCALVERSION_AUTO, so extract these in a safe
        # way (i.e. w/o sourcing auto.conf)
-       CONFIG_LOCALVERSION=`cat include/config/auto.conf | awk -F '=' '/^CONFIG_LOCALVERSION=/ {print $2}'`
-       CONFIG_LOCALVERSION_AUTO=`cat include/config/auto.conf | awk -F '=' '/^CONFIG_LOCALVERSION_AUTO=/ {print $2}'`
+       # xargs echo removes quotes
+       CONFIG_LOCALVERSION=`cat include/config/auto.conf | awk -F '=' '/^CONFIG_LOCALVERSION=/ {print $2}' | xargs echo`
+       CONFIG_LOCALVERSION_AUTO=`cat include/config/auto.conf | awk -F '=' '/^CONFIG_LOCALVERSION_AUTO=/ {print $2}' | xargs echo`
 else
        echo "Error: kernelrelease not valid - run 'make prepare' to update it" >&2
        exit 1