From 4158e19d36016905f64f461c1157af05f3570f0a Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Wed, 26 Dec 2012 15:11:13 -0600 Subject: kernel-dev: Format of the "Recipe-Space Metadata" section. (From yocto-docs rev: 6db7f35316b5cc513c17d454237e13548911b6bb) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/kernel-dev/kernel-dev-advanced.xml | 85 ++++++++++++++++++++++++ 1 file changed, 85 insertions(+) (limited to 'documentation/kernel-dev/kernel-dev-advanced.xml') diff --git a/documentation/kernel-dev/kernel-dev-advanced.xml b/documentation/kernel-dev/kernel-dev-advanced.xml index cba219fe46..07c026378d 100644 --- a/documentation/kernel-dev/kernel-dev-advanced.xml +++ b/documentation/kernel-dev/kernel-dev-advanced.xml @@ -324,6 +324,91 @@ Regardless of where the meta-data is stored, the syntax as described in the following sections applies equally. + +
+ Recipe-Space Metadata + + + When stored in recipe-space, the metadata files reside in a + directory hierarchy below + FILESEXTRAPATHS, + which is typically set to + ${THISDIR}/${PN} + for a linux-yocto or linux-yocto-custom derived Linux kernel + recipe. + See the "Modifying an Existing Recipe" + section for more information. + + + + By way of example, a trivial tree of metadata stored in + recipe-space within a BSP layer might look like the following: + + meta/ + `-- recipes-kernel + `-- linux + `-- linux-yocto + |-- bsp-standard.scc + |-- bsp.cfg + `-- standard.cfg + + + + + When the metadata is stored in recipe-space, you must take + steps to ensure BitBake has the necessary information to decide + which files to fetch and when they need to be fetched again. + + + + It is only necessary to specify the .scc + files on the + SRC_URI. + BitBake parses them and fetches any files referenced in the + .scc files by the include, + patch, or kconf commands. + Because of this, it is necessary to bump the recipe + PR + value when changing the content of files not explicitly listed + in the SRC_URI. + + + + Original text: + +When stored in recipe-space, the meta-data files reside in a directory hierarchy +below FILESEXTRAPATHS, which is typically set to ${THISDIR}/${PN} for a +linux-yocto or linux-yocto-custom derived Linux kernel recipe. See 2.2. + +By way of example, a trivial tree of meta-data stored in recipe-space within a +BSP layer might look like the following: + +meta/ +`-- recipes-kernel + `-- linux + `-- linux-yocto + |-- bsp-standard.scc + |-- bsp.cfg + `-- standard.cfg + +When the meta-data is stored in recipe-space, you must take steps to ensure +bitbake has the necessary information to decide which files to fetch and when +they need to be fetched again. + +It is only necessary to specify the .scc files on the SRC_URI; bitbake will +parse them and fetch any files referenced in the .scc files by the include, +patch, or kconf commands. Because of this, it is necessary to bump the recipe PR +value when changing the content of files not explicitly listed in the SRC_URI. + + +
+ + + + + + + -- cgit v1.2.3-54-g00ecf