mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH v2 1/2] add install-environment
Date: Thu, 1 Dec 2011 19:22:39 +0100	[thread overview]
Message-ID: <20111201182239.GB32672@pengutronix.de> (raw)
In-Reply-To: <1322181620-32914-2-git-send-email-andreas@biessmann.de>

On Fri, Nov 25, 2011 at 01:40:19AM +0100, Andreas Bießmann wrote:
> We add links to the bin directroy to sane tools found by configure. This
> change was discussed in http://thread.gmane.org/gmane.comp.embedded.ptxdist.devel/8157/focus=8180
> 
> Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
> ---
> no changes since v1
> 
>  Makefile.in |   10 +++++++---
>  bin/ptxdist |    3 +++
>  2 files changed, 10 insertions(+), 3 deletions(-)
> 
> diff --git a/Makefile.in b/Makefile.in
> index 5ee1383..62fabf6 100644
> --- a/Makefile.in
> +++ b/Makefile.in
> @@ -46,10 +46,8 @@ dirty-check:
>  		*-dirty) echo "refusing to install or package a dirty git tree!" ; exit 1 ;; \
>  	esac
>  
> -install: all dirty-check
> +install: all dirty-check install-environment
>  	@echo "installing PTXdist to $(DESTDIR)$(prefix)..."
> -	@rm -fr   "$(DESTDIR)$(instdir)"
> -	@mkdir -p "$(DESTDIR)$(instdir)"
>  	@tar -C "$(abs_srcdir)" -cf - \
>  		--exclude *~ \
>  		--exclude .git \
> @@ -74,6 +72,12 @@ install: all dirty-check
>  		cp scripts/bash_completion "$(DESTDIR)@BASH_COMPLETION_DIR@/ptxdist"; \
>  	fi
>  
> +install-environment: all dirty-check
> +	@echo "preparing PTXdist environment in $(DESTDIR)$(instdir)/bin ..."
> +	@rm -fr   "$(DESTDIR)$(instdir)"
> +	@mkdir -p "$(DESTDIR)$(instdir)"
> +	@mkdir -p $(DESTDIR)$(instdir)/bin
> +	@ln -sf @SED@ $(DESTDIR)$(instdir)/bin/sed


I think this should happen during "make all". In many cases (especially
when using master) an uninstalled ptxdist is used. This should not act
differently. Something like this I think:

all: kconfig environment

kconfig:
	# this was "all" before

environment:
	# the new stuff to create the links.

And please add python and awk as well.

Other than that, it looks good.

Michael

>  
>  dist: dirty-check
>  	@rm -rf "$(project)"
> diff --git a/bin/ptxdist b/bin/ptxdist
> index 900af0f..81946b9 100755
> --- a/bin/ptxdist
> +++ b/bin/ptxdist
> @@ -2155,6 +2155,9 @@ setup_env() {
>  
>  	export LANG=C
>  	export LC_ALL=POSIX
> +
> +	# ${PTXDIST_TOPDIR}/bin contains links to sane tools found by configure
> +	export PATH="${PTXDIST_TOPDIR}/bin:${PATH}"
>  }
>  
>  
> -- 
> 1.7.7.4
> 
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2011-12-01 18:22 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-21 19:53 [ptxdist] [PATCH 0/5] " Andreas Bießmann
2011-10-21 19:53 ` [ptxdist] [PATCH 1/5] " Andreas Bießmann
2011-10-21 19:53 ` [ptxdist] [PATCH 2/5] configure.ac: add check for chmod from GNU coreutils Andreas Bießmann
2011-10-27 15:10   ` Michael Olbrich
2011-10-21 19:53 ` [ptxdist] [PATCH 3/5] configure.ac: add check for mv " Andreas Bießmann
2011-10-21 19:53 ` [ptxdist] [PATCH 4/5] configrue.ac: add check for rm " Andreas Bießmann
2011-10-21 19:53 ` [ptxdist] [PATCH 5/5] configrue.ac: add check for md5sum " Andreas Bießmann
2011-11-25  0:40 ` [ptxdist] [PATCH v2 0/2] add install-environment Andreas Bießmann
2011-11-25  0:40   ` [ptxdist] [PATCH v2 1/2] " Andreas Bießmann
2011-12-01 18:22     ` Michael Olbrich [this message]
2011-12-01 22:11       ` Andreas Bießmann
2011-11-25  0:40   ` [ptxdist] [PATCH v2 2/2] configure.ac: add check for GNU coreutils Andreas Bießmann
2011-12-01 18:24     ` Michael Olbrich
2011-12-01 23:30   ` [ptxdist] [PATCH v3 0/4] add environment Andreas Bießmann
2011-12-02  7:51     ` [ptxdist] [PATCH v4 " Andreas Bießmann
2011-12-02 15:27       ` Michael Olbrich
2011-12-02  7:51     ` [ptxdist] [PATCH v4 1/4] add environment make target Andreas Bießmann
2011-12-02  7:51     ` [ptxdist] [PATCH v4 2/4] configure.ac: add check for GNU coreutils Andreas Bießmann
2011-12-02  7:51     ` [ptxdist] [PATCH v4 3/4] add awk to environment Andreas Bießmann
2011-12-02  7:51     ` [ptxdist] [PATCH v4 4/4] add python " Andreas Bießmann
2011-12-01 23:30   ` [ptxdist] [PATCH v3 1/4] add environment make target Andreas Bießmann
2011-12-01 23:41     ` Andreas Bießmann
2011-12-01 23:30   ` [ptxdist] [PATCH v3 2/4] configure.ac: add check for GNU coreutils Andreas Bießmann
2011-12-01 23:30   ` [ptxdist] [PATCH v3 3/4] add awk to environment Andreas Bießmann
2011-12-01 23:30   ` [ptxdist] [PATCH v3 4/4] add python " Andreas Bießmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111201182239.GB32672@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox