From: Ulf Samuelsson <ulf@atmel.com>
To: buildroot@busybox.net
Subject: [Buildroot] Overriding DL_DIR in the environment
Date: Fri, 17 Aug 2007 22:42:35 +0200 [thread overview]
Message-ID: <01d001c7e117$81522450$dcc4af0a@atmel.com> (raw)
In-Reply-To: E496871456016F4CA8959BE4105D2A890E8C30@troe2k1.cs.myharris.net
> -----Original Message-----
> From: buildroot-bounces at uclibc.org [mailto:buildroot-bounces at uclibc.org]
> On Behalf Of Cristian Ionescu-Idbohrn
> Sent: Friday, August 17, 2007 1:59 PM
> To: buildroot at uclibc.org
> Subject: Re: [Buildroot] Overriding DL_DIR in the environment
>
> On Fri, 17 Aug 2007, Ulf Samuelsson wrote:
>
>> 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".
>
> Wouldn't a symlink (that's what I use) sort that out?
>
>
> I use a link as well, but should the option be added to the menus so
> that it does not need to be specified in the environment?
>
> Matt
>
The purpose of this is to reduce typing and also to reduce potential errors.
Replacing "$(BASE_DIR)/dl" with "/usr/local/install/downloads"
will cost me 42 (!) keystrokes *every* time you create a new buildroot tree
"ln -s /usr/local/install/downloads dl"
will cost me 36 keystrokes - *every* time you create a new buildroot tree
It will add another directory to the build, so a little unneccessary clutter in the directory.
Setting the environment will cost me a few keystrokes *ONCE*.
If I fail to remember to do that, I will have to abort the build
because I do not want to waif for downloads of packages I already have on my machine.
------------------
After such a patch, you can still define a common location, either by
* changing DL_DIR from $(BASE_DIR)/dl to your own value in "make menuconfig"
* creating a symlink
In addition you can define your common location by
export BUILDROOT_DL_DIR <common location>
----
So far everyone has explained that a common location can be *achieved*
but that does not mean that it is superior to doing it with the help of the environment.
I am convinced that it is better to do it using the environment.
My question is really is if anyone can show any drawback in having this functionality in buildroot.
(Even if it is there, you don't have to use it)
Best Regards
Ulf Samuelsson
next prev parent reply other threads:[~2007-08-17 20:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2007-08-20 14:15 ` Crane, Matthew
2007-08-20 14:34 ` Bernhard Fischer
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='01d001c7e117$81522450$dcc4af0a@atmel.com' \
--to=ulf@atmel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox