diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-04-04 15:04:38 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-04-04 15:06:34 +0200 |
commit | df85845aa2d10efb5487d8ef69edfccb16f60526 (patch) | |
tree | f77095fea9fb2a00bbaf6c3b21bfe38aedbd5078 /scripts | |
parent | 4c5bee070c00d578ca7168431c51d985a91cef3a (diff) | |
download | ptxdist-df85845aa2d10efb5487d8ef69edfccb16f60526.tar.gz ptxdist-df85845aa2d10efb5487d8ef69edfccb16f60526.tar.xz |
ptxd_lib_dgen: don't match PTXCONF_ in makefiles
The pattern is only there to parse ptxconfig etc.
Processing it in other files confuses the parser and produces strange
effects, e.g. for the <PKG>_CFGHASH.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_lib_dgen.awk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk index e00a96e1e..0ca895d5a 100644 --- a/scripts/lib/ptxd_lib_dgen.awk +++ b/scripts/lib/ptxd_lib_dgen.awk @@ -204,6 +204,9 @@ $1 ~ /^PTX_MAP_._SOURCE/ { # record yes and module packages # $1 ~ /^PTXCONF_/ { + if (old_filename ~ /.+\/rules\/.+\.make/) + next; + this_PKG = gensub(/^PTXCONF_/, "", "g", $1); if ($2 ~ /^[ym]$/ && this_PKG in PKG_to_pkg) |