summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-08-04 16:07:12 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2015-08-04 18:54:14 +0200
commit3763c65cc8c2613f5b49e4ce35e8289a8e07ce94 (patch)
treeaae60f2def2aa68c1c251269d9adf7a736c17a99 /scripts/lib
parentbda15824bfd220ba7b3f518d618795c8d652bf75 (diff)
downloadptxdist-3763c65cc8c2613f5b49e4ce35e8289a8e07ce94.tar.gz
ptxdist-3763c65cc8c2613f5b49e4ce35e8289a8e07ce94.tar.xz
ptxd_make_import: handle menuconfig correctly
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib')
-rwxr-xr-xscripts/lib/ptxd_make_import.awk4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/ptxd_make_import.awk b/scripts/lib/ptxd_make_import.awk
index ac1d002ba..ba2dde98b 100755
--- a/scripts/lib/ptxd_make_import.awk
+++ b/scripts/lib/ptxd_make_import.awk
@@ -73,7 +73,7 @@ FNR == 1 {
#
# add the prefix to a suspicious line
#
-/^[[:space:]]*(config|select|default|range|if|depends)[[:space:]]+/ {
+/^[[:space:]]*(menuconfig|config|select|default|range|if|depends)[[:space:]]+/ {
$0 = add_prefix($0);
}
@@ -116,7 +116,7 @@ function add_prefix(IN, in_match) {
# |
# in_match[4]
- match(IN, /^([[:space:]]*(config|select|default|if|range|depends([[:space:]]+on)?)[[:space:]]+)((")?[^"#]*(")?)(#.*)?/, in_match);
+ match(IN, /^([[:space:]]*(menuconfig|config|select|default|if|range|depends([[:space:]]+on)?)[[:space:]]+)((")?[^"#]*(")?)(#.*)?/, in_match);
# don't convert things wrapped in ""
if (in_match[5] ~ /"/) {