From: Patrick Talbert <ptalbert@xxxxxxxxxx> 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@xxxxxxxxxx> diff --git a/redhat/configs/process_configs.sh b/redhat/configs/process_configs.sh index blahblah..blahblah 100755 --- a/redhat/configs/process_configs.sh +++ b/redhat/configs/process_configs.sh @@ -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 } /-----/ { diff --git a/redhat/gen_config_patches.sh b/redhat/gen_config_patches.sh index blahblah..blahblah 100755 --- a/redhat/gen_config_patches.sh +++ b/redhat/gen_config_patches.sh @@ -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" -- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1277 _______________________________________________ kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure