From: Marcin Niestroj Date: Wed, 5 Jul 2017 17:01:11 +0200 Subject: [Buildroot] [PATCH] download: allow for BR2_PRIMARY_SITE(_ONLY) environment override In-Reply-To: <87inj7ym6z.fsf@dell.be.48ers.dk> References: <20170705123359.19116-1-m.niestroj@grinn-global.com> <87inj7ym6z.fsf@dell.be.48ers.dk> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi, On 05.07.2017 16:48, Peter Korsgaard wrote: >>>>>> "Marcin" == Marcin Niestroj writes: > > > Allow BR2_PRIMARY_SITE and BR2_PRIMARY_SITE_ONLY .config options to be > > overriden by environment variables with the same names. > > > This is usefull for CI build environments, so primary site can be > > overridden without .config change. That way download can be speeded up > > if using mirror servers in the same network as CI. > > You can already pass these as make arguments (E.G. make > BR2_PRIMARY_SITE=".."). Is there any real reason why that cannot be used > by the CI setup instead? > 1. Environment variable allows to set this configuration in a single place, so in case of multiple CI jobs we do not need to modify the "make" step in each one. 2. In case of CI setups that are configured by a file in project git repository (such as gitlab CI) we do not need to hardcode BR2_PRIMARY_SITE there. 3. As a developer I want to have BR2_PRIMARY_SITE set in ~/.bashrc or something similar, so I do not need to issue "make BR2_PRIMARY_SITE=some_really_long_uri" every time in multiple Buildroot projects / board configurations that I have on my workstation. -- Regards, Marcin Niestroj