mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-01 23:47:42 +00:00
Add support for BUILDROOT_DL_DIR environment variable, overriding DL_DIR
This commit is contained in:
parent
ed96d7f92c
commit
3c567e6466
3
Makefile
3
Makefile
@ -37,6 +37,9 @@ noconfig_targets := menuconfig config oldconfig randconfig \
|
|||||||
ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
|
ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
|
||||||
-include $(TOPDIR).config
|
-include $(TOPDIR).config
|
||||||
endif
|
endif
|
||||||
|
ifneq ($(BUILDROOT_DL_DIR),)
|
||||||
|
BR2_DL_DIR:=$(BUILDROOT_DL_DIR)
|
||||||
|
endif
|
||||||
|
|
||||||
# To put more focus on warnings, be less verbose as default
|
# To put more focus on warnings, be less verbose as default
|
||||||
# Use 'make V=1' to see the full commands
|
# Use 'make V=1' to see the full commands
|
||||||
|
@ -779,6 +779,28 @@ mips-linux-gcc -o foo foo.c
|
|||||||
toolchain and the target filesystem with exactly the same
|
toolchain and the target filesystem with exactly the same
|
||||||
versions. </p>
|
versions. </p>
|
||||||
|
|
||||||
|
<p>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 <code>dl</code> directory to the shared download location. </p>
|
||||||
|
|
||||||
|
<p>I.E:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
ln -s <shared download location> dl
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Another way of accessing a shared download location is to
|
||||||
|
create the <code>BUILDROOT_DL_DIR</code> environment variable.
|
||||||
|
If this is set, then the value of DL_DIR in the project is
|
||||||
|
overridden. The following line should be added to
|
||||||
|
<code>"~/.bashrc"</code>. <p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
export BUILDROOT_DL_DIR <shared download location>
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<h2><a name="add_software" id="add_software"></a>Extending Buildroot with
|
<h2><a name="add_software" id="add_software"></a>Extending Buildroot with
|
||||||
more software</h2>
|
more software</h2>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user