All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 03/12] package: add configuration option to specify a local override file
Date: Wed, 20 Jul 2011 07:52:02 +0200	[thread overview]
Message-ID: <804eb8923dadda1d63e4c26c9a90fd82fc8ad448.1311141087.git.thomas.petazzoni@free-electrons.com> (raw)
In-Reply-To: <cover.1311141087.git.thomas.petazzoni@free-electrons.com>

The user can now create a custom local override file to override the
source directory for various packages.

An example override file:

 ZLIB_OVERRIDE_SRCDIR = /tmp/zlib
 STRACE_OVERRIDE_SRCDIR = /opt/strace-4.5.20

would tell Buildroot to use the zlib and strace source code from the
specified directories, instead of download, extracting and patching
the code has done usually by Buildroot.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 Config.in |   10 ++++++++++
 Makefile  |    7 +++++++
 2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/Config.in b/Config.in
index a67c08d..784f4ef 100644
--- a/Config.in
+++ b/Config.in
@@ -327,6 +327,16 @@ config BR2_HAVE_DEVFILES
 	  Install headers and static libraries in the
 	  target filesystem
 
+config BR2_PACKAGE_OVERRIDE_FILE
+	string "location of a package override file"
+	default "$(TOPDIR)/local.mk"
+	help
+	  A package override file is a short makefile that contains
+	  variable definitions of the form <pkg>_OVERRIDE_SRCDIR,
+	  which allows to tell Buildroot to use an existing directory
+	  as the source directory for a particular package. See the
+	  Buildroot documentation for more details on this feature.
+
 endmenu
 
 source "toolchain/Config.in"
diff --git a/Makefile b/Makefile
index 20dd707..e7b2729 100644
--- a/Makefile
+++ b/Makefile
@@ -308,6 +308,13 @@ else ifeq ($(BR2_TOOLCHAIN_CTNG),y)
 include toolchain/toolchain-crosstool-ng.mk
 endif
 
+# Include the package override file if one has been provided in the
+# configuration.
+PACKAGE_OVERRIDE_FILE=$(call qstrip,$(BR2_PACKAGE_OVERRIDE_FILE))
+ifneq ($(PACKAGE_OVERRIDE_FILE),)
+-include $(PACKAGE_OVERRIDE_FILE)
+endif
+
 include package/*/*.mk
 
 include boot/common.mk
-- 
1.7.4.1

  parent reply	other threads:[~2011-07-20  5: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 ` Thomas Petazzoni [this message]
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
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=804eb8923dadda1d63e4c26c9a90fd82fc8ad448.1311141087.git.thomas.petazzoni@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --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.