All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 02/15] package: enhance infrastructure to support source dir override
Date: Fri, 2 Sep 2011 12:02:44 +0200	[thread overview]
Message-ID: <201109021202.45783.arnout@mind.be> (raw)
In-Reply-To: <ad6a9779e87399fbd8f70dbafa666006d8c846d1.1314826231.git.thomas.petazzoni@free-electrons.com>


On Wednesday 31 August 2011 23:31:10, Thomas Petazzoni wrote:
> Those <pkg>_OVERRIDE_SRCDIR variables will be defined by a local
> makefile included by Buildroot, which will be handled in a later
> commit.

 Or on the make command line...

> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
>  package/Makefile.package.in |   54
> +++++++++++++++++++++++++++++++++++++++++- 1 files changed, 52
> insertions(+), 2 deletions(-)
> 
> diff --git a/package/Makefile.package.in b/package/Makefile.package.in
> index 6dae8f7..1de2838 100644
> --- a/package/Makefile.package.in
> +++ b/package/Makefile.package.in
> @@ -251,6 +251,25 @@ $(BUILD_DIR)/%/.stamp_extracted:
>  	$(foreach hook,$($(PKG)_POST_EXTRACT_HOOKS),$(call $(hook))$(sep))
>  	$(Q)touch $@
> 
> +# Rsync the source directory if the <pkg>_OVERRIDE_SRCDIR feature is
> +# used.
> +$(BUILD_DIR)/%/.stamp_rsynced:
> +	@$(call MESSAGE,"Syncing from source dir $(SRCDIR)")
> +	@test -d $(SRCDIR) || (echo "ERROR: $(SRCDIR) does not exist" ; exit 1)
> +	rsync -au $(SRCDIR)/ $(@D)

 I use rsync -rltDO --exclude=.svn --exclude=.git:

 * -rltD instead of -a because I don't want to keep group, owner and 
permissions (otherwise you'll probably have to fixup permissions anyway).

 * -O because otherwise the directory times will be reset to the past, which 
does not correspond to reality if there are still object files lying around.  
If there would be a dependency on a directory, it will be incorrect.

 * --exclude=.git: if you're doing this for the kernel, you know why :-)  
There should probably be a --exclude=.hg as well.


 [snip]


 Regards,
 Arnout

-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  31BB CF53 8660 6F88 345D  54CC A836 5879 20D7 CF43

  reply	other threads:[~2011-09-02 10:02 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-31 21:31 [Buildroot] [pull request v2] Pull request for branch for-2011.11/pkg-infra Thomas Petazzoni
2011-08-31 21:31 ` [Buildroot] [PATCH 01/15] package: show complete URL for external-deps Thomas Petazzoni
2011-09-17  6:31   ` Peter Korsgaard
2011-09-17  7:13     ` Thomas Petazzoni
2011-09-17  8:53       ` Peter Korsgaard
2011-08-31 21:31 ` [Buildroot] [PATCH 02/15] package: enhance infrastructure to support source dir override Thomas Petazzoni
2011-09-02 10:02   ` Arnout Vandecappelle [this message]
2011-09-02 11:21     ` Thomas Petazzoni
2011-09-02 11:45       ` Arnout Vandecappelle
2011-08-31 21:31 ` [Buildroot] [PATCH 03/15] package: add configuration option to specify a local override file Thomas Petazzoni
2011-08-31 21:31 ` [Buildroot] [PATCH 04/15] package: add <pkg>-rebuild and <pkg>-reconfigure Thomas Petazzoni
2011-11-04  9:44   ` Stephan Hoffmann
2011-11-27 17:49     ` Stephan Hoffmann
2011-11-28  8:12       ` Thomas Petazzoni
2011-11-28  8:46         ` Stephan Hoffmann
2011-11-28 11:10           ` Quotient Remainder
2011-11-28 12:06             ` Thomas Petazzoni
2012-04-06 16:44               ` [Buildroot] [PATCH] Add documentation for " Stephan Hoffmann
2012-04-07 17:45                 ` Peter Korsgaard
2011-08-31 21:31 ` [Buildroot] [PATCH 05/15] package: implement a 'local' site method Thomas Petazzoni
2011-08-31 21:31 ` [Buildroot] [PATCH 06/15] package: add helper functions to get package name and directory magically Thomas Petazzoni
2011-08-31 21:31 ` [Buildroot] [PATCH 07/15] package: remove useless arguments from GENTARGETS Thomas Petazzoni
2011-08-31 21:31 ` [Buildroot] [PATCH 08/15] package: remove useless arguments from AUTOTARGETS Thomas Petazzoni
2011-09-17  6:36   ` Peter Korsgaard
2011-09-17  7:11     ` Thomas Petazzoni
2011-09-17  8:07       ` Peter Korsgaard
2011-09-22  6:06       ` Arnout Vandecappelle
2011-08-31 21:31 ` [Buildroot] [PATCH 09/15] package: remove useless arguments from CMAKETARGETS Thomas Petazzoni
2011-08-31 21:31 ` [Buildroot] [PATCH 10/15] Makefile.package.in: Pass non-prefixed name as argument to GENTARGETS_INNER Thomas Petazzoni
2011-08-31 21:31 ` [Buildroot] [PATCH 11/15] Add support for local packages through 'file://' pseudo-protocol Thomas Petazzoni
2011-08-31 21:31 ` [Buildroot] [PATCH 12/15] fakeroot: remove target package Thomas Petazzoni
2011-08-31 21:31 ` [Buildroot] [PATCH 13/15] dhrystone: use the <pkg>_EXTRACT_CMDS mechanism Thomas Petazzoni
2011-08-31 21:31 ` [Buildroot] [PATCH 14/15] whetstone: " Thomas Petazzoni
2011-08-31 21:31 ` [Buildroot] [PATCH 15/15] mcookie: convert to the GENTARGETS infrastructure Thomas Petazzoni
2011-09-05 12:46 ` [Buildroot] [pull request v2] Pull request for branch for-2011.11/pkg-infra Luca Ceresoli
2011-09-05 13:02   ` Thomas Petazzoni

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=201109021202.45783.arnout@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.