From c2c11c610d7205bf2eec6201b59862e1046bec15 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 11 Apr 2013 08:43:26 -0700 Subject: ref-manual: Updated the FILESEXTRAPATHS variable description. Fixes YOCTO #3662. Per comments from Paul Eggleton, I updated the description to include best practices of prepending and from using within append files. (From yocto-docs rev: 368055bc046277fe601ff3a64913044be0a15e6d) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-variables.xml | 48 +++++++++++++----------------- 1 file changed, 20 insertions(+), 28 deletions(-) (limited to 'documentation/ref-manual/ref-variables.xml') diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index d54b5bcdfc..5b56765cdd 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml @@ -1104,40 +1104,32 @@ 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. - The directories BitBake uses when it processes recipes are - defined by the - FILESPATH variable. - You can add directories to the search path by defining the - FILESEXTRAPATHS variable. - - - - To add paths to the front of the search order, prepend - them and use the immediate expansion - (:=) operator. - Provide a list of directories and separate - each path using a colon character as follows: - - FILESEXTRAPATHS_prepend := "path_1:path_2:path_3:" - - You can add paths to the end of the search order by simply - adding them as follows: + Best practices dictate that you accomplish this by using the + variable from within a .bbappend file + and that you prepend paths as follows: - FILESEXTRAPATHS := "path_1:path_2:path_3:" + FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" - To maintain the integrity of the - FILESPATH variable, you must include - the appropriate beginning or ending (as needed) colon - character. - The FILESEXTRAPATHS variable is - intended for use in .bbappend files - to include any additional files provided in that layer. - You typically accomplish this with the following: + The directories BitBake uses when it processes recipes + are defined by the + FILESPATH + variable, and can be extended using + FILESEXTRAPATHS. + By prepending paths in .bbappend + files, you allow multiple append files that reside in + different layers but are used for the same recipe to + correctly extend the path. + + Be sure to use the immediate expansion + (:=) operator and include + the trailing separating colon character. + + Here is another example that specifically adds three paths: - FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + FILESEXTRAPATHS_prepend := "path_1:path_2:path_3:" -- cgit v1.2.3-54-g00ecf