configs/process_configs.sh: Handle config items with no help text

The current config scripts logic expects the helpnewconfig output for
each item to begin with the full config item name followed by a colon.
But if a config item has no help text then the helpnewconfig output does
not follow this format.

Fix this by adjusting the process_configs.sh and gen_config_patches.sh
awk scripts so they get the config item name from the Symbol: line which
is always present in helpnewconfig output

Signed-off-by: Patrick Talbert <ptalbert@redhat.com>
This commit is contained in:
Patrick Talbert 2021-07-26 11:15:33 +02:00 committed by Justin M. Forbes
parent 093325add8
commit cb7f22ca70
No known key found for this signature in database
GPG Key ID: B8FA7924A4B1C140
2 changed files with 6 additions and 7 deletions

View File

@ -145,9 +145,9 @@ parsenewconfigs()
BEGIN { inpatch=0;
outfile="none";
symbol="none"; }
/^CONFIG_.*:$/ {
split($0, a, ":");
symbol=a[1];
/^Symbol: .*$/ {
split($0, a, " ");
symbol="CONFIG_"a[2];
outfile=BASE "/fake_"symbol
}
/-----/ {

View File

@ -83,10 +83,9 @@ while read -r line; do
print config >> subsystem_path;
next;
}
/^# CONFIG_.*:/ {
split($0, a);
split(a[2], b, ":");
config=b[1];
/^# Symbol: .*/ {
split($0, a, " ");
config="CONFIG_"a[3];
#print config;
}
' "$line"