From: Ulf Samuelsson Date: Sun, 19 Aug 2007 23:32:33 +0000 (-0000) Subject: Add support for BUILDROOT_DL_DIR environment variable, overriding DL_DIR X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3c567e64660209d140869fa0a448e11ed5031cd6;p=buildroot.git Add support for BUILDROOT_DL_DIR environment variable, overriding DL_DIR --- diff --git a/Makefile b/Makefile index b9e4cd2642..c1df6a3039 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,9 @@ noconfig_targets := menuconfig config oldconfig randconfig \ ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) -include $(TOPDIR).config endif +ifneq ($(BUILDROOT_DL_DIR),) +BR2_DL_DIR:=$(BUILDROOT_DL_DIR) +endif # To put more focus on warnings, be less verbose as default # Use 'make V=1' to see the full commands diff --git a/docs/buildroot.html b/docs/buildroot.html index c496b8db47..4b1e9005c8 100644 --- a/docs/buildroot.html +++ b/docs/buildroot.html @@ -779,6 +779,28 @@ mips-linux-gcc -o foo foo.c toolchain and the target filesystem with exactly the same versions.

+

If you maintain several buildroot trees, it might be better to have + a shared download location. This can be accessed by creating a symbolic link + from the dl directory to the shared download location.

+ +

I.E:

+ +
+ln -s <shared download location> dl
+
+ +

Another way of accessing a shared download location is to + create the BUILDROOT_DL_DIR environment variable. + If this is set, then the value of DL_DIR in the project is + overridden. The following line should be added to + "~/.bashrc".

+ +

+export BUILDROOT_DL_DIR <shared download location>
+
+ + +

Extending Buildroot with more software