diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-07-30 17:18:41 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-07-31 09:27:31 +0200 |
commit | 938dcb1716998b68284ae7a7c2d7bc5d4711f259 (patch) | |
tree | 0ccc88d7e2a6b0d24bc0b3eca028fc863a8fb18c /scripts/lib/ptxd_lib_dgen.awk | |
parent | 1cd7300e1029967ead17d5681dbd8352e4c620e1 (diff) | |
download | ptxdist-938dcb1716998b68284ae7a7c2d7bc5d4711f259.tar.gz ptxdist-938dcb1716998b68284ae7a7c2d7bc5d4711f259.tar.xz |
ptxd_lib_dgen: don't add options to the hash files twice
Otherwise, enabling a host package in the platformconfig that is already
enabled in the ptxconfig will trigger a rebuild of the package.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_lib_dgen.awk')
-rw-r--r-- | scripts/lib/ptxd_lib_dgen.awk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk index 93f72d3c6..cb1d9fe0f 100644 --- a/scripts/lib/ptxd_lib_dgen.awk +++ b/scripts/lib/ptxd_lib_dgen.awk @@ -210,11 +210,14 @@ $1 ~ /^PTXCONF_/ { close(PKG_HASHFILE); PKG_HASHFILE = next_PKG_HASHFILE; } - print $0 >> PKG_HASHFILE; + if (!($0 in allsym)) + print $0 >> PKG_HASHFILE; break; } } while (sub(/_+[^_]+$/, "", this_PKG)); + allsym[$0] = 1 + next; } |