Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Overriding DL_DIR in the environment
@ 2007-08-17 17:05 Ulf Samuelsson
  2007-08-17 17:59 ` Cristian Ionescu-Idbohrn
  2007-08-20 14:34 ` Bernhard Fischer
  0 siblings, 2 replies; 6+ messages in thread
From: Ulf Samuelsson @ 2007-08-17 17:05 UTC (permalink / raw)
  To: buildroot

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-08-20 14:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-17 17:05 [Buildroot] Overriding DL_DIR in the environment Ulf Samuelsson
2007-08-17 17:59 ` Cristian Ionescu-Idbohrn
2007-08-17 19:05   ` Crane, Matthew
2007-08-17 20:42     ` Ulf Samuelsson
2007-08-20 14:15       ` Crane, Matthew
2007-08-20 14:34 ` Bernhard Fischer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox