diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-01-27 08:46:53 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-01-27 11:23:43 +0100 |
commit | b3bf06e12b32ee441838c0564737dbda0ec46d81 (patch) | |
tree | b0aaedf468246db04720dd12253c7d14114a2589 /scripts | |
parent | 4cd9409a9691797b97d26e455be9c1786df1e8f2 (diff) | |
download | ptxdist-b3bf06e12b32ee441838c0564737dbda0ec46d81.tar.gz ptxdist-b3bf06e12b32ee441838c0564737dbda0ec46d81.tar.xz |
ptxd_make_import: add prefix in conditional prompts
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/lib/ptxd_make_import.awk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_import.awk b/scripts/lib/ptxd_make_import.awk index 4d8531766..db8f7505d 100755 --- a/scripts/lib/ptxd_make_import.awk +++ b/scripts/lib/ptxd_make_import.awk @@ -77,6 +77,10 @@ FNR == 1 { $0 = add_prefix($0); } +/^[[:space:]]*(int|hex|string|bool|boolean|tristate|prompt)[[:space:]]+"[^"]*"[[:space:]]+if[[:space:]]+/ { + match($0, "(.*)([[:space:]]if[[:space:]].*)", tmp) + $0 = tmp[1] add_prefix(tmp[2]) +} # # put "source"d file to argument, in order to convert them, too |