documentation/bsp: update to reference FILESEXTRAPATHS

It's no longer neccesarry to define THISDIR and FILESPATH in each bbappend
recipe. Should you need to reference extra files you should use FILESEXTRAPATHS

Signed-off-by: Joshua Lock <josh@linux.intel.com>
This commit is contained in:
Joshua Lock 2010-10-22 13:50:14 +01:00 committed by Saul Wold
parent 95b64df744
commit b9d6950732

View File

@ -284,13 +284,13 @@ meta-bsp/packages/image-creator/image-creator-native_0.1.bb
This allows the BSP layer to poke around and do whatever it might want to customise This allows the BSP layer to poke around and do whatever it might want to customise
the original recipe. the original recipe.
.bbappend is expected to include the below two lines in the head (which may be changed If your recipe needs to reference extra files it can use the FILESEXTRAPATH variable
in the future): to specify their location. The example below shows extra files contained in a folder
called ${PN} (the package name).
</para> </para>
<programlisting> <programlisting>
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" FILESEXTRAPATHS := "${THISDIR}/${PN}"
FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"
</programlisting> </programlisting>
<para> <para>