From 1306d5ca591882089e975cf83a191526723126ad Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 18 Dec 2012 14:31:04 -0600 Subject: [PATCH] kernel-dev: Rewrite of the "Modifying an Existing Recipe" section. (From yocto-docs rev: 699ab26ba14eb34166094ec93a2e3dff62d51b56) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../kernel-dev/kernel-dev-common.xml | 55 ++++++++++++++++++- 1 file changed, 52 insertions(+), 3 deletions(-) diff --git a/documentation/kernel-dev/kernel-dev-common.xml b/documentation/kernel-dev/kernel-dev-common.xml index 7c9f412fd5..8e6db4c255 100644 --- a/documentation/kernel-dev/kernel-dev-common.xml +++ b/documentation/kernel-dev/kernel-dev-common.xml @@ -33,7 +33,7 @@ "Understanding and Creating Layers" for general information on layers and how to create them. - "Get Your Layer Set Up for the Build" for + "Get Your Layer Setup for the Build" for specific instructions on setting up a layer for kernel development. @@ -44,7 +44,56 @@ Modifying an Existing Recipe - In many cases, you can customize an existing linux-yocto recipe to meet the + In many cases, you can customize an existing linux-yocto recipe to + meet the needs of your project. + Each release of the Yocto Project provides a few Linux + kernel recipes from which you can choose. + These are located in the + Source Directory + in meta/recipes-kernel/linux. + + + + To begin with, create a minimal, custom layer from which you + can work. + See the + "Get Your Layer Setup for the Build" section + of the Yocto Project Development Manual for information. + + + + Next comes the .bbappend file. + You create this file in your custom layer. + You also name it accordingly based on the linux-yocto recipe + you are using. + For example, if you are modifying the + meta/recipes-kernel/linux/linux-yocto_3.4.bb + recipe, the append file will typical be located as follows + within your custom layer: + + <your-layer>/recipes-kernel/linux/linux-yocto_3.4.bbappend + + The append file should initially contain the following text: + + FILESEXTRAPATHS := "${THISDIR}/${PN}" + + The path ${THISDIR}/${PN} expands + to "linux-yocto" in the current directory for this example. + If you add any new files that modify the kernel recipe, you need + to place them in your layer in the following area: + + <your-layer>/recipes-kernel/linux/linux-yocto/ + + If you are working on a new machine Board Support Package + (BSP), be sure to refer to the + Yocto Project Board Support Package (BSP) Developer's Guide. + + + + + Original text: + +In many cases, you can customize an existing linux-yocto recipe to meet the needs of your project. Each release of the Yocto Project provides a few Linux kernel recipes to choose from. To get started, prepare a layer and a bbappend file corresponding to the recipe you wish to modify. @@ -67,7 +116,7 @@ modify the recipe should then be added to the following path within the layer: NOTE: If you are working on a new machine BSP, be sure to refer to the Yocto Project Board Support Package Developer's Guide. - +