[Buildroot] Overriding DL_DIR in the environment
Ulf Samuelsson
ulf at atmel.com
Fri Aug 17 17:05:34 UTC 2007
I keep a central download location for all tarballs,
and find it a pain to always have to edit the DL_DIR
variable during "make menuconfig".
It would be nice to be able to override the ".config"
value of DL_DIR in the shell environment.
Here is a simple patch which will,
if you define
$ export BUILDROOT_DL_DIR /usr/local/install/downloads
in your ".bashrc", override the DL_DIR in the ".config".
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Index: Makefile
===================================================================
--- Makefile (revision 19542)
+++ Makefile (arbetskopia)
@@ -37,6 +37,9 @@
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
--------------------------------------------------------------------
Comments?
BR
Ulf Samuelsson
More information about the buildroot
mailing list