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:
parent
093325add8
commit
cb7f22ca70
|
@ -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
|
||||
}
|
||||
/-----/ {
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue