On Tue, May 24, 2011 at 12:10 AM, Jon Ringle <[email protected]> wrote:

> 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 <[email protected]>
> ---
>  scripts/lib/ptxd_lib_dgen.awk          |    9 +++++++++
>  scripts/lib/ptxd_make_world_extract.sh |   14 ++++++++++++++
>  2 files changed, 23 insertions(+), 0 deletions(-)
>
> diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk
> index 27b6ce2..0c1c38a 100644
> --- a/scripts/lib/ptxd_lib_dgen.awk
> +++ b/scripts/lib/ptxd_lib_dgen.awk
> @@ -331,6 +331,15 @@ END {
>                print "endif"
>                     > DGEN_DEPS_POST;
>
>                #
> +               # conditional dependency on lndir
> +               #
> +               print "ifneq ($(" this_PKG "),)"
>                      > DGEN_DEPS_POST;
> +               print "ifneq ($(findstring lndir://,$(" this_PKG "_URL)),)"
>                     > DGEN_DEPS_POST;
> +               print "$(STATEDIR)/" this_pkg ".extract:
> $(STATEDIR)/host-lndir.install"        > DGEN_DEPS_POST;
>

Needs to be dependent on $(STATEDIR)/host-lndir.install.post
New patch coming.

Jon
-- 
ptxdist mailing list
[email protected]

Reply via email to