From e8dabb022880845c6cfd941b93f6d99b618299a1 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Wed, 26 Dec 2012 15:37:20 -0600 Subject: kernel-dev: Formatting "In-Tree Metadata" section. (From yocto-docs rev: 92e9a5c6c6a3a416e3e8718d8e02f72025ad355c) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/kernel-dev/kernel-dev-advanced.xml | 90 ++++++++++++++++++++++++ 1 file changed, 90 insertions(+) (limited to 'documentation/kernel-dev') diff --git a/documentation/kernel-dev/kernel-dev-advanced.xml b/documentation/kernel-dev/kernel-dev-advanced.xml index 07c026378d..f14ed69586 100644 --- a/documentation/kernel-dev/kernel-dev-advanced.xml +++ b/documentation/kernel-dev/kernel-dev-advanced.xml @@ -403,12 +403,102 @@ value when changing the content of files not explicitly listed in the SRC_URI. +
+ In-Tree Metadata + + When stored in-tree, the metadata files reside in the + "meta" directory of the Linux kernel sources. + They may be present in the same branch as the sources, + such as "master", or in their own orphan branch, + typically named "meta". + An orphan branch in Git is a branch with unique history and + content to the other branches in the repository. + This is useful to track metadata changes independently from the + sources of the Linux kernel, while still keeping them + together in the same repository. + For the purposes of this document, we will discuss all + in-tree metadata as residing below the + meta/cfg/kernel-cache directory. + + + By way of example, a trivial tree of metadata stored in a custom + Linux kernel Git repository might look like the following: + + meta/ + `-- cfg + `-- kernel-cache + |-- bsp-standard.scc + |-- bsp.cfg + `-- standard.cfg + + + + To use a specific branch for the metadata, specify the branch + in the KMETA variable in your Linux kernel + recipe, for example: + + KMETA = "meta" + + To use the same branch as the sources, set + KMETA to the empty string: + + KMETA = "" + + If you are working with your own sources and want to create an + orphan meta branch, you can do so using the + following commands from within your Linux kernel Git repository: + + $ git checkout --orphan meta + $ git rm -rf . + $ git commit --allow-empty -m "Create orphan meta branch" + + + + + Original text: + +When stored in-tree, the meta-data files reside in the "meta" directory of the +Linux kernel sources. They may be present in the same branch as the sources, +such as "master", or in their own orphan branch, typically named "meta". An +orphan branch in git is a branch with unique history and content to the other +branches in the repository. This is useful to track meta-data changes +independently from the sources of the Linux kernel, while still keeping them +together in the same repository. For the purposes of this document, we will +discuss all in-tree meta-data as residing below the "meta/cfg/kernel-cache" +directory. + +By way of example, a trivial tree of meta-data stored in a custom Linux kernel +git repository might look like the following: + +meta/ +`-- cfg + `-- kernel-cache + |-- bsp-standard.scc + |-- bsp.cfg + `-- standard.cfg +To use a specific branch for the meta-data, specify the branch in the KMETA +variable in your Linux kernel recipe, for example: + KMETA = "meta" +To use the same branch as the sources, set KMETA to the empty string: + + KMETA = "" + +If you are working with your own sources and want to create an orphan meta +branch, you can do so using the following commands from within your Linux kernel +git repository: + + $ git checkout --orphan meta + $ git rm -rf . + $ git commit --allow-empty -m "Create orphan meta branch" + + +
-- cgit v1.2.3-54-g00ecf