mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
manual: switch BR2_EXTERNAL examples to use absolute paths
Although it is possible to use relative paths, there are a few pitfalls when doing so. To avoid confusion for a (newcoming) user, use absolute paths in the manual (as is done in examples for $(O)), since it is guaranteed to be working without corner cases. [Peter: s/relatively/relative/ as suggested by Thomas] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
5f5e5f2919
commit
1de64ec8c0
@ -30,18 +30,18 @@ there is no need to pass +BR2_EXTERNAL+ at every +make+ invocation. It
|
|||||||
can however be changed at any time by passing a new value, and can be
|
can however be changed at any time by passing a new value, and can be
|
||||||
removed by passing an empty value.
|
removed by passing an empty value.
|
||||||
|
|
||||||
The +BR2_EXTERNAL+ path can be either an absolute or a relative path,
|
*Note:* the +BR2_EXTERNAL+ path can be either an absolute or a relative path,
|
||||||
but if it's passed as a relative path, it is important to note that it
|
but if it's passed as a relative path, it is important to note that it
|
||||||
is interpreted relatively to the main Buildroot source directory, not
|
is interpreted relative to the main Buildroot source directory, *not*
|
||||||
the Buildroot output directory.
|
the Buildroot output directory.
|
||||||
|
|
||||||
Some examples:
|
Some examples:
|
||||||
|
|
||||||
-----
|
-----
|
||||||
buildroot/ $ make BR2_EXTERNAL=../foobar menuconfig
|
buildroot/ $ make BR2_EXTERNAL=/path/to/foobar menuconfig
|
||||||
-----
|
-----
|
||||||
|
|
||||||
Starting from now on, external definitions from the +../foobar+
|
Starting from now on, external definitions from the +/path/to/foobar+
|
||||||
directory will be used:
|
directory will be used:
|
||||||
|
|
||||||
-----
|
-----
|
||||||
@ -52,7 +52,7 @@ directory will be used:
|
|||||||
We can switch to another external definitions directory at any time:
|
We can switch to another external definitions directory at any time:
|
||||||
|
|
||||||
-----
|
-----
|
||||||
buildroot/ $ make BR2_EXTERNAL=../barfoo xconfig
|
buildroot/ $ make BR2_EXTERNAL=/where/we/have/barfoo xconfig
|
||||||
-----
|
-----
|
||||||
|
|
||||||
Or disable the usage of external definitions:
|
Or disable the usage of external definitions:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user