]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - tools/scripts/define2mk.sed
mkimage: Fix strict-aliasing compiler warning
[karo-tx-uboot.git] / tools / scripts / define2mk.sed
index 6464627ea437e1d0d7b0c0edb8d669804f96809a..af40bfaf2e8758607d5e64072063b883301ca40e 100644 (file)
@@ -7,11 +7,11 @@
 #
 
 # Only process values prefixed with #define CONFIG_
-/^#define CONFIG_[A-Za-z0-9_]\+/ {
+/^#define CONFIG_[A-Za-z0-9_][A-Za-z0-9_]*/ {
        # Strip the #define prefix
        s/#define *//;
        # Change to form CONFIG_*=VALUE
-       s/ \+/=/;
+       s/  */=/;
        # Drop trailing spaces
        s/ *$//;
        # drop quotes around string values