From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 05/12] package: implement a 'local' site method
Date: Thu, 28 Jul 2011 09:52:09 +0200 [thread overview]
Message-ID: <201107280952.09973.arnout@mind.be> (raw)
In-Reply-To: <20110725110016.76f0fef0@skate>
On Monday 25 July 2011 11:00:16, Thomas Petazzoni wrote:
> > then using a per-package indication about whether it supports
> > out-of-tree building could be helpful. I mentioned it in the other
> > thread.
> >
> >
> >
> > For those packages that do not support it, too bad, compilation from
> > multiple buildroot installations wouldn't work. If someone requires
> > this, he'll have to make a copy of the local package himself, or make
> > sure the package's out-of-tree building gets supported.
>
> I don't like the idea of having a different behaviour for different
> packages. The whole purpose of the package infrastructures was to
> standardize the build process/behavior of all packages. So adding a
> feature that makes different packages behave differently is not
> something I would really be happy with.
Alternatively, you could fall back onto a copy (or rsync) if out-of-tree
building is not supported.
I'm using rsync for my local packages, but without common infrastructure.
It looks like this:
RT_APP_VERSION = local
RT_APP_SRCDIR = $(call qstrip,$(BR2_RT_APP_SRCDIR))
RT_APP_SOURCE = # Defined empty, so it won't be downloaded
RT_APP_EXTRACT_CMDS = rsync -v -rltODx --exclude=.svn --exclude=.git $(RT_APP_SRCDIR)/ $(RT_APP_DIR)
In addition, I _always_ want to rebuild this package (because that's what's
changing all the time). Note that my rsync command above doesn't delete
anything, so the object files are still there. So I add the following to
my rt_app.mk as well:
# Force re-extraction, re-building and re-installation
$(RT_APP_TARGET_EXTRACT): RT_APP_FORCE
$(RT_APP_TARGET_BUILD): RT_APP_FORCE
$(RT_APP_TARGET_INSTALL_TARGET): RT_APP_FORCE
RT_APP_FORCE:
.PHONY: RT_APP_FORCE
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
next prev parent reply other threads:[~2011-07-28 7:52 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-20 5:51 [Buildroot] [pull request] Pull request for branch for-2011.08/pkg-infra Thomas Petazzoni
2011-07-20 5:52 ` [Buildroot] [PATCH 01/12] package: show complete URL for external-deps Thomas Petazzoni
2011-07-20 5:52 ` [Buildroot] [PATCH 02/12] package: enhance infrastructure to support source dir override Thomas Petazzoni
2011-07-20 6:42 ` Thomas De Schampheleire
2011-07-20 18:16 ` Thomas Petazzoni
2011-07-24 15:03 ` Thomas De Schampheleire
2011-07-20 5:52 ` [Buildroot] [PATCH 03/12] package: add configuration option to specify a local override file Thomas Petazzoni
2011-07-20 5:52 ` [Buildroot] [PATCH 04/12] package: add <pkg>-rebuild and <pkg>-reconfigure Thomas Petazzoni
2011-07-20 5:52 ` [Buildroot] [PATCH 05/12] package: implement a 'local' site method Thomas Petazzoni
2011-07-20 6:29 ` Thomas De Schampheleire
2011-07-20 18:19 ` Thomas Petazzoni
2011-07-24 14:50 ` Thomas De Schampheleire
2011-07-25 7:11 ` Thomas Petazzoni
2011-07-25 7:20 ` Yann E. MORIN
2011-07-25 8:37 ` Thomas De Schampheleire
2011-07-25 8:41 ` Yann E. MORIN
2011-07-25 8:47 ` Thomas De Schampheleire
2011-07-25 8:42 ` Thomas De Schampheleire
2011-07-25 9:00 ` Thomas Petazzoni
2011-07-28 7:52 ` Arnout Vandecappelle [this message]
2011-07-20 5:52 ` [Buildroot] [PATCH 06/12] package: add helper functions to get package name and directory magically Thomas Petazzoni
2011-07-20 5:52 ` [Buildroot] [PATCH 07/12] package: remove useless arguments from GENTARGETS Thomas Petazzoni
2011-07-20 5:52 ` [Buildroot] [PATCH 08/12] package: remove useless arguments from AUTOTARGETS Thomas Petazzoni
2011-07-20 5:52 ` [Buildroot] [PATCH 09/12] package: remove useless arguments from CMAKETARGETS Thomas Petazzoni
2011-07-20 5:52 ` [Buildroot] [PATCH 10/12] Makefile.package.in: Pass non-prefixed name as argument to GENTARGETS_INNER Thomas Petazzoni
2011-07-20 16:03 ` Quotient Remainder
2011-07-20 19:19 ` Thomas Petazzoni
2011-07-20 5:52 ` [Buildroot] [PATCH 11/12] Add support for local packages through 'file://' pseudo-protocol Thomas Petazzoni
2011-07-20 9:38 ` Thomas De Schampheleire
2011-07-20 5:52 ` [Buildroot] [PATCH 12/12] fakeroot: remove target packages Thomas Petazzoni
2011-07-20 6:02 ` [Buildroot] [pull request] Pull request for branch for-2011.08/pkg-infra 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=201107280952.09973.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.