From 5e32769597fd4961a04f7a437b7878f1a4147c52 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 3 Jun 2013 12:37:06 +0300 Subject: [PATCH] ref-manual: edits to FILESPATH and FILESEXTRAPATHS variables. I updated some of the explanation to be more specific about the default paths the build system uses and just exactly how a user should use FILESEXTRAPATHS. (From yocto-docs rev: 5eba1437fb07300d0b42011eb82200215201c8ac) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-variables.xml | 33 +++++++++++++--------- 1 file changed, 20 insertions(+), 13 deletions(-) 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