summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_lib_dgen.awk
diff options
context:
space:
mode:
authorJon Ringle <jon@ringle.org>2011-05-26 14:29:37 -0400
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-05-27 19:57:04 +0200
commit5ab4c14d56369b04fee1ae375ce0c6435be5c70b (patch)
tree7f4424e1fbe992e5d8ee51626bf7a1f0ceb005a1 /scripts/lib/ptxd_lib_dgen.awk
parent8a650f8883864290e2a8fb56da5b157897fab404 (diff)
downloadptxdist-5ab4c14d56369b04fee1ae375ce0c6435be5c70b.tar.gz
ptxdist-5ab4c14d56369b04fee1ae375ce0c6435be5c70b.tar.xz
lndir: add support for lndir:// URL
Use lndir for local external projects referenced by lndir:// URL lndir will create a shadow directory tree of the source tree populated with symlinks of all the files contained in the source tree. Building from the lndir created shadow tree will result in all files created by the build to be created in the shadow tree and leaving the source tree prestine. This is useful when building for multiple archs. Signed-off-by: Jon Ringle <jon@ringle.org> 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.awk7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk
index 27b6ce265..e9e6f79a0 100644
--- a/scripts/lib/ptxd_lib_dgen.awk
+++ b/scripts/lib/ptxd_lib_dgen.awk
@@ -322,12 +322,17 @@ END {
}
#
- # conditional dependency on autogen script
+ # conditional dependencies
#
print "ifneq ($(" this_PKG "),)" > DGEN_DEPS_POST;
+ # on autogen script
print "ifneq ($(call autogen_dep,$(" this_PKG ")),)" > DGEN_DEPS_POST;
print "$(STATEDIR)/" this_pkg ".extract: $(STATEDIR)/autogen-tools" > DGEN_DEPS_POST;
print "endif" > DGEN_DEPS_POST;
+ # on lndir
+ print "ifneq ($(findstring lndir://,$(" this_PKG "_URL)),)" > DGEN_DEPS_POST;
+ print "$(STATEDIR)/" this_pkg ".extract: $(STATEDIR)/host-lndir.install.post" > DGEN_DEPS_POST;
+ print "endif" > DGEN_DEPS_POST;
print "endif" > DGEN_DEPS_POST;
#