[Buildroot] [PATCH 4/4] Include a local.mk for package overrides

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed May 18 21:48:13 UTC 2011

The user can now create a local.mk file at the top of the Buildroot
source tree to override the source directory for various packages.

We could probably turn this into a configuration option, so that a
different override file can be used for different projects using the
same Buildroot source tree.

An example local.mk file:


Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
 Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 5f61b93..07a51d8 100644
--- a/Makefile
+++ b/Makefile
@@ -318,6 +318,7 @@ else ifeq ($(BR2_TOOLCHAIN_CTNG),y)
 include toolchain/toolchain-crosstool-ng.mk
+-include local.mk
 include package/*/*.mk
 include boot/common.mk

More information about the buildroot mailing list