Some Kconfig variables take integer values instead of y/m/N like CONFIG_NOUVEAU_DEBUG and CONFIG_NOUVEAU_DEBUG_DEFAULT. Currently all values other than y/m/N were escaped with double-quotes to define them as strings. Fix this to allow integer values for Kconfig variables. Signed-off-by: Ozan Çağlayan <ozancag@xxxxxxxxx> --- scripts/gen-compat-autoconf.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/gen-compat-autoconf.sh b/scripts/gen-compat-autoconf.sh index f9fed36..c9ab9da 100755 --- a/scripts/gen-compat-autoconf.sh +++ b/scripts/gen-compat-autoconf.sh @@ -57,13 +57,19 @@ function define_config { echo "#define $VAR 1" echo "#endif /* $VAR */ " ;; - *) # Assume string - # XXX: add better checks to make sure what was on - # the right was indeed a string + [0-9]*) + # Leave integers as is + echo "#ifndef $VAR" + echo "#define $VAR $VALUE" + echo "#endif /* $VAR */ " + ;; + *) + # Escape every other thing with double quotes echo "#ifndef $VAR" echo "#define $VAR \"$VALUE\"" echo "#endif /* $VAR */ " ;; + esac } -- 1.7.11.7 -- To unsubscribe from this list: send the line "unsubscribe backports" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html