summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Rifenbark <srifenbark@gmail.com>2017-10-10 14:53:47 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-10-16 23:46:51 +0100
commit0b75283fa9b40e451923b6704d0be2b97f786c6e (patch)
treebee33e616fb7088fac4bd74dd07fb30146de1a1a
parent7cf82df8b09dbdf999f9b85c33a7f3be10efc5ba (diff)
downloadpoky-0b75283fa9b40e451923b6704d0be2b97f786c6e.tar.gz
ref-manual: Updated the FILESEXTRAPATHS variable
Added an example to show machine overrides. (From yocto-docs rev: d0c54caf2a2a6ccb9a6fb38b77c9827b66b9ff10) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--documentation/ref-manual/ref-variables.xml30
1 files changed, 28 insertions, 2 deletions
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 @@
4742 in a directory that has the same name as the corresponding 4742 in a directory that has the same name as the corresponding
4743 append file. 4743 append file.
4744 <note> 4744 <note>
4745 <para>When extending <filename>FILESEXTRAPATHS</filename>, 4745 <para>When extending
4746 <filename>FILESEXTRAPATHS</filename>,
4746 be sure to use the immediate expansion 4747 be sure to use the immediate expansion
4747 (<filename>:=</filename>) operator. 4748 (<filename>:=</filename>) operator.
4748 Immediate expansion makes sure that BitBake evaluates 4749 Immediate expansion makes sure that BitBake evaluates
@@ -4751,6 +4752,7 @@
4751 some later time when expansion might result in a 4752 some later time when expansion might result in a
4752 directory that does not contain the files you need. 4753 directory that does not contain the files you need.
4753 </para> 4754 </para>
4755
4754 <para>Also, include the trailing separating colon 4756 <para>Also, include the trailing separating colon
4755 character if you are prepending. 4757 character if you are prepending.
4756 The trailing colon character is necessary because you 4758 The trailing colon character is necessary because you
@@ -4768,13 +4770,37 @@
4768 </para> 4770 </para>
4769 4771
4770 <para> 4772 <para>
4771 Here is a final example that specifically adds three paths: 4773 This next example specifically adds three paths:
4772 <literallayout class='monospaced'> 4774 <literallayout class='monospaced'>
4773 FILESEXTRAPATHS_prepend := "path_1:path_2:path_3:" 4775 FILESEXTRAPATHS_prepend := "path_1:path_2:path_3:"
4774 </literallayout> 4776 </literallayout>
4775 </para> 4777 </para>
4776 4778
4777 <para> 4779 <para>
4780 A final example shows how you can extend the search path
4781 and include a
4782 <link linkend='var-MACHINE'><filename>MACHINE</filename></link>-specific
4783 override, which is useful in a BSP layer:
4784 <literallayout class='monospaced'>
4785 FILESEXTRAPATHS_prepend_intel-x86-common := "${THISDIR}/${PN}:"
4786 </literallayout>
4787 The previous statement appears in the
4788 <filename>linux-yocto-dev.bbappend</filename> file, which
4789 is found in the Yocto Project
4790 <link linkend='source-repositories'>Source Repositories</link>
4791 in
4792 <filename>meta-intel/common/recipes-kernel/linux</filename>.
4793 Here, the machine override is a special
4794 <link linkend='var-PACKAGE_ARCH'><filename>PACKAGE_ARCH</filename></link>
4795 definition for multiple <filename>meta-intel</filename>
4796 machines.
4797 <note>
4798 For a layer that supports a single BSP, the override
4799 could just be the value of <filename>MACHINE</filename>.
4800 </note>
4801 </para>
4802
4803 <para>
4778 By prepending paths in <filename>.bbappend</filename> 4804 By prepending paths in <filename>.bbappend</filename>
4779 files, you allow multiple append files that reside in 4805 files, you allow multiple append files that reside in
4780 different layers but are used for the same recipe to 4806 different layers but are used for the same recipe to