mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
buildroot: support out-of-tree builds
Add support and documentation for out-of-tree builds with syntax like the Linux kernel (make O=<dir>).
This commit is contained in:
parent
d5007ac67b
commit
0732b8cc84
@ -217,6 +217,20 @@
|
|||||||
<p>You can now disconnect or copy the content of your <code>dl</code>
|
<p>You can now disconnect or copy the content of your <code>dl</code>
|
||||||
directory to the build-host. </p>
|
directory to the build-host. </p>
|
||||||
|
|
||||||
|
<h3><a name="building_out_of_tree" id="building_out_of_tree"></a>
|
||||||
|
Building out-of-tree</h3>
|
||||||
|
|
||||||
|
<p>Buildroot supports building out of tree with a syntax similar
|
||||||
|
to the Linux kernel. To use it, add O=<directory> to the
|
||||||
|
make command line, E.G.:</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
$ make O=/tmp/build
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>And all the output files will be located under
|
||||||
|
<code>/tmp/build</code>.</p>
|
||||||
|
|
||||||
<h3><a name="environment_variables" id="environment_variables"></a>
|
<h3><a name="environment_variables" id="environment_variables"></a>
|
||||||
Environment variables</h3>
|
Environment variables</h3>
|
||||||
|
|
||||||
|
@ -25,7 +25,14 @@ TAR_OPTIONS=$(subst ",, $(BR2_TAR_OPTIONS)) -xf
|
|||||||
#")
|
#")
|
||||||
|
|
||||||
|
|
||||||
|
# Buildroot supports building out of tree similarly to the Linux kernel.
|
||||||
|
# To use, add O= to the make command line (make O=/tmp/build)
|
||||||
BASE_DIR:=$(shell pwd)
|
BASE_DIR:=$(shell pwd)
|
||||||
|
ifdef O
|
||||||
|
ifeq ("$(origin O)", "command line")
|
||||||
|
BASE_DIR := $(O)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
TOPDIR_PREFIX:=$(strip $(subst ",, $(BR2_TOPDIR_PREFIX)))_
|
TOPDIR_PREFIX:=$(strip $(subst ",, $(BR2_TOPDIR_PREFIX)))_
|
||||||
#"))
|
#"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user