diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-12-11 10:16:49 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-12-11 17:24:14 +0100 |
commit | 667fa1e2acbe9eefe7735d274259c382e82dddf3 (patch) | |
tree | 9b64311c34726d8b0617ee464a151ae955daec5b /scripts | |
parent | 4ac203ed9ae436d9bb5674761a0c47f7a56c8adc (diff) | |
download | ptxdist-667fa1e2acbe9eefe7735d274259c382e82dddf3.tar.gz ptxdist-667fa1e2acbe9eefe7735d274259c382e82dddf3.tar.xz |
project-name: add option to check license information when building the packages
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_lib_dgen.awk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk index 5c8280ba2..4b9c065fa 100644 --- a/scripts/lib/ptxd_lib_dgen.awk +++ b/scripts/lib/ptxd_lib_dgen.awk @@ -21,6 +21,7 @@ BEGIN { DGEN_RULESFILES_MAKE = ENVIRON["PTX_DGEN_RULESFILES_MAKE"]; PTXDIST_TEMPDIR = ENVIRON["PTXDIST_TEMPDIR"]; PARALLEL = ENVIRON["PTXDIST_PARALLELMFLAGS_EXTERN"] + CHECK_LICENSES = 0 } # @@ -193,6 +194,8 @@ $1 ~ /^PTXCONF_/ { } } while (sub(/_+[^_]+$/, "", this_PKG)); + if (this_PKG = "PROJECT_CHECK_LICENSES") + CHECK_LICENSES = 1; next; } @@ -278,6 +281,12 @@ function write_deps_pkg_active(this_PKG, this_pkg, prefix) { } print "$(STATEDIR)/" this_pkg ".report: " "$(STATEDIR)/" this_pkg ".extract" > DGEN_DEPS_POST; print "$(STATEDIR)/" this_pkg ".release: " "$(STATEDIR)/" this_pkg ".extract" > DGEN_DEPS_POST; + if (CHECK_LICENSES) { + if (prefix == "") + print "$(STATEDIR)/" this_pkg ".targetinstall.post: $(STATEDIR)/" this_pkg ".report" > DGEN_DEPS_POST; + else + print "$(STATEDIR)/" this_pkg ".install.post: $(STATEDIR)/" this_pkg ".report" > DGEN_DEPS_POST; + } # # conditional dependencies |