From 0b75283fa9b40e451923b6704d0be2b97f786c6e Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 10 Oct 2017 14:53:47 -0700 Subject: ref-manual: Updated the FILESEXTRAPATHS variable Added an example to show machine overrides. (From yocto-docs rev: d0c54caf2a2a6ccb9a6fb38b77c9827b66b9ff10) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-variables.xml | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) (limited to 'documentation') diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index c85efc65ff..2b561584eb 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml @@ -4742,7 +4742,8 @@ in a directory that has the same name as the corresponding append file. - When extending FILESEXTRAPATHS, + When extending + FILESEXTRAPATHS, be sure to use the immediate expansion (:=) operator. Immediate expansion makes sure that BitBake evaluates @@ -4751,6 +4752,7 @@ 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 @@ -4768,12 +4770,36 @@ - Here is a final example that specifically adds three paths: + This next example specifically adds three paths: FILESEXTRAPATHS_prepend := "path_1:path_2:path_3:" + + A final example shows how you can extend the search path + and include a + MACHINE-specific + override, which is useful in a BSP layer: + + FILESEXTRAPATHS_prepend_intel-x86-common := "${THISDIR}/${PN}:" + + The previous statement appears in the + linux-yocto-dev.bbappend file, which + is found in the Yocto Project + Source Repositories + in + meta-intel/common/recipes-kernel/linux. + Here, the machine override is a special + PACKAGE_ARCH + definition for multiple meta-intel + machines. + + For a layer that supports a single BSP, the override + could just be the value of MACHINE. + + + By prepending paths in .bbappend files, you allow multiple append files that reside in -- cgit v1.2.3-54-g00ecf