From f9a8256553dae51792df4a4aefa8175342b21765 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 7 Jan 2013 09:12:13 -0600 Subject: kernel-dev: General edits during re-write. (From yocto-docs rev: 7fc9b1bdeb63c32252a243ab21e31ba25779bb1b) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/kernel-dev/kernel-dev-advanced.xml | 53 +++++++++++++++--------- 1 file changed, 33 insertions(+), 20 deletions(-) (limited to 'documentation') diff --git a/documentation/kernel-dev/kernel-dev-advanced.xml b/documentation/kernel-dev/kernel-dev-advanced.xml index 8b626e5ec9..ad46fcc8f0 100644 --- a/documentation/kernel-dev/kernel-dev-advanced.xml +++ b/documentation/kernel-dev/kernel-dev-advanced.xml @@ -3,9 +3,11 @@ [ %poky; ] > - Working with Advanced Metadata +
+ Overview + In addition to supporting configuration fragments and patches, the Yocto Project kernel tools also support rich @@ -60,37 +62,48 @@ together as needed, but maintain them in only one place. Similar logic applies to source changes. +
-
- Using Metadata in a Recipe +
+ Using Kernel Metadata in a Recipe - The metadata provided with any linux-yocto style Linux kernel sources - must define a BSP that corresponds to the definition laid out in the - recipe. - A BSP consists of an aggregation of kernel policy and hardware specific + The kernel sources in the Yocto Project contain kernel Metadata, which is + located in the meta branches of the kernel source + Git repositories. + This Metadata defines Board Support Packages (BSPs) that + correspond to definitions in linux-yocto recipes for the same BSPs. + A BSP consists of an aggregation of kernel policy and hardware-specific feature enablement. - This can be influenced from within the recipe. + The BSP can be influenced from within the linux-yocto recipe. + + Linux kernel source that contains this Metadata is said to be + "linux-yocto style" kernel source. + A Linux kernel recipe that inherits from the + linux-yocto.inc include file is said to be a + "linux-yocto style" recipe. + - Every linux-yocto style recipe must define the following variable: - - KMACHINE - - KMACHINE is typically set to the same value as - used within the recipe-space BSP definition, such as "routerstationpro" - or "fri2". + Every linux-yocto style recipe must define the + KMACHINE + variable. + This variable is typically set to the same value as the + MACHINE + variable used by BitBake (e.g. "routerstationpro" or "fri2"). However, multiple BSPs can reuse the same KMACHINE name if they are built using the same BSP description. - See section 3.3.5 for more information. + See the BSP Descriptions section + for more information. The meta-intel "fri2" and "fri2-noemgd" are good examples of such a situation where each specifies KMACHINE as "fri2". - They may optionally define the following variables: + The linux-yocto style recipes can optionally define the following + variables: KBRANCH KERNEL_FEATURES @@ -839,7 +852,7 @@ The description file can include multiple patch statements, one per patch. and patches to be the types of things you will want to specify in the KERNEL_FEATURES variable of the Linux kernel recipe. - See the "Using Metadata in a Recipe" + See the "Using Kernel Metadata in a Recipe" section earlier in the manual. @@ -885,7 +898,7 @@ will want to specify in the KERNEL_FEATURES variable of the Linux kernel recipe as described in the previous section. The ktype is selected by the LINUX_KERNEL_TYPE variable in the recipe. - See the "Using Metadata in a Recipe" + See the "Using Kernel Metadata in a Recipe" section for more information. @@ -1315,7 +1328,7 @@ the KTYPE has changed, now set to "tiny". Machine Branches - The "Using Metadata in a Recipe" + The "Using Kernel Metadata in a Recipe" section introduced the KBRANCH variable, which defines the source branch to use from the Linux kernel Git repository you are using. -- cgit v1.2.3-54-g00ecf