Commit 2bad5df7 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

autoconfig.mk: avoid apostophes around hex values



When generating include/autoconfig.mk, hex numbers would be quoted.
This caused some false positives during automatic testing of the
builds, and is known to cause some real issues for some Blackfin
configurations. Don't use apostophes for decimal and hex numbers (nor
for octal numbers).
Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 14d0a02a
......@@ -18,8 +18,12 @@
s/="\(.*\)"$/=\1/;
# Concatenate string values
s/" *"//g;
# Wrap non-numeral values with quotes
s/=\(.*\?[^0-9].*\)$/=\"\1\"/;
# Assume strings as default - add quotes around values
s/=\(..*\)/="\1"/;
# but remove again from decimal numbers
s/="\([0-9][0-9]*\)"/=\1/;
# ... and from hex numbers
s/="\(0[Xx][0-9a-fA-F][0-9a-fA-F]*\)"/=\1/;
# Change '1' and empty values to "y" (not perfect, but
# supports conditional compilation in the makefiles
s/=$/=y/;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment