diff options
author | Roland Hieber <rhi@pengutronix.de> | 2019-06-06 18:26:15 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-06-12 13:49:24 +0200 |
commit | 8db4320850eb5a8e8393162abe019aff024cb144 (patch) | |
tree | 6043fcef4a711f05251362c91f35965b86a63902 /scripts | |
parent | ee10b8a913af08591acf295ced79a7b5e45be709 (diff) | |
download | ptxdist-8db4320850eb5a8e8393162abe019aff024cb144.tar.gz ptxdist-8db4320850eb5a8e8393162abe019aff024cb144.tar.xz |
ptxd_lib_dgen: error out for targetinstall stages in host/cross/image packages
This point came up multiple times in the past and the special handling
of targetinstall stages lead to confusion when trying to depend on image
packages. Document it to prevent further confusion in that matter, and
warn the user if such a make target exists.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_lib_dgen.awk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk index 46387af10..82adcdf06 100644 --- a/scripts/lib/ptxd_lib_dgen.awk +++ b/scripts/lib/ptxd_lib_dgen.awk @@ -98,6 +98,20 @@ function dump_file(src, dst, tmp) { # +# warn user if an image, host, or cross package contains a targetinstall rule +# which will not be executed +# +$1 ~ /^\$\(STATEDIR\)\/(image-.*|host-.*|cross-.*)\.targetinstall(.post)?:/ { + match($0, /\$\(STATEDIR\)\/((image-.*|host-.*|cross-.*)\.targetinstall(.post)?):/, m); + print "\nError in " old_filename " line " lineno ":\n" \ + " '" m[1] "' stage will be ignored.\n" \ + " See section 'Rule File Layout' in the PTXdist reference for more info:\n" \ + " https://www.ptxdist.org/doc/ref_manual.html#rule-file-layout" + exit 1; +} + + +# # parse "PACKAGES-$(PTXCONF_PKG) += pkg" lines, i.e. rules-files from # rules/*.make. Setup mapping between upper and lower case pkg names # |