From 6a926df682a3964d6b5bc65c6610acf7463adaee Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Wed, 30 Jan 2013 14:10:25 -0600 Subject: ref-manual: Updates to the FILESEXTRAPATHS variable. Fixed YOCTO #3662 Updates to the description so _prepend is used to add paths to the front of the search order and use of the variable without _prepend just adds paths to the end of the FILESPATH order. Reported-by: Robert P. J. Day (From yocto-docs rev: 44c98058c1a75a9e6c95e4f33dbe1696e23d97d0) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-variables.xml | 32 +++++++++++++++++++----------- 1 file changed, 20 insertions(+), 12 deletions(-) (limited to 'documentation/ref-manual') diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index 3088123581..0a29502544 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml @@ -1012,31 +1012,39 @@ Core layer for images cannot be removed FILESEXTRAPATHS - 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 is defined by the + 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 search order, provide a list of directories and separate + 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:" - Typically, you want your directories searched first. - To make sure that happens, use _prepend and - the immediate expansion (:=) operator as shown in the - previous example. - Finally, to maintain the integrity of the FILESPATH variable, - you must include the appropriate beginning or ending (as needed) colon character. + You can add paths to the end of the search order by simply + adding them as follows: + + FILESEXTRAPATHS := "path_1:path_2:path_3:" + + 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. + 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: FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -- cgit v1.2.3-54-g00ecf