diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml
index 7953aa78a8..615ce4ad47 100644
--- a/documentation/ref-manual/ref-variables.xml
+++ b/documentation/ref-manual/ref-variables.xml
@@ -1158,22 +1158,24 @@ Core layer for images cannot be removed
Extends the search path the OpenEmbedded build system uses
when looking for files and patches as it processes recipes
and append files.
- The directories BitBake uses when it processes recipes
- are defined by the
+ The default directories BitBake uses when it processes
+ recipes are initially defined by the
FILESPATH
- variable, and can be extended using
- FILESEXTRAPATHS.
+ variable.
+ You can extend FILESPATH variable
+ by using FILESEXTRAPATHS.
- Best practices dictate that you accomplish this by using the
- variable from within a .bbappend file
- and that you prepend paths as follows:
+ Best practices dictate that you accomplish this by using
+ FILESEXTRAPATHS from within a
+ .bbappend file and that you prepend
+ paths as follows:
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
- In the above example, the build system looks for files in
- a directory that has the same name as the corresponding
+ In the above example, the build system first looks for files
+ in a directory that has the same name as the corresponding
append file.
When extending FILESEXTRAPATHS,
@@ -1181,10 +1183,10 @@ Core layer for images cannot be removed
(:=) operator.
Immediate expansion makes sure that BitBake evaluates
THISDIR
- at the time the directive
- is encountered rather than at some later time when
- expansion might result in a directory that does not
- contain the files you need.
+ at the time the directive is encountered rather than at
+ some later time when expansion might result in a
+ directory that does not contain the files you need.
+ Also, include the trailing separating colon
character if you are prepending.
The trailing colon character is necessary because you
@@ -1240,6 +1242,11 @@ Core layer for images cannot be removed
Do not hand-edit the FILESPATH
variable.
+ If you want the build system to look in directories
+ other than the defaults, extend the
+ FILESPATH variable by using the
+ FILESEXTRAPATHS
+ variable.
Be aware that the default FILESPATH
directories do not map to directories in custom layers