From 719824f9ce457f40f5f2fc45d68379755cf27b3e Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Fri, 11 Jan 2013 15:27:09 -0800 Subject: kernel-dev: Created new "Creating the Append File" section. fixed up the organization of how you modify a recipe. It can consist of three things. I have created a new subsection for the first item, creating the append file. (From yocto-docs rev: a8342ccf18c0406669f6983da31d38603d87921e) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/kernel-dev/kernel-dev-common.xml | 82 +++++++++++++++----------- 1 file changed, 47 insertions(+), 35 deletions(-) (limited to 'documentation') diff --git a/documentation/kernel-dev/kernel-dev-common.xml b/documentation/kernel-dev/kernel-dev-common.xml index 787f3411b7..4cceb932b6 100644 --- a/documentation/kernel-dev/kernel-dev-common.xml +++ b/documentation/kernel-dev/kernel-dev-common.xml @@ -51,44 +51,56 @@ - To modify an existing recipe, do the following: - - Create a minimal, custom layer from which you - can work. - See the "Creating and Preparing a Layer" - section for some general resources. - You can also see the - "Get Your Layer Setup for the Build" section - of the Yocto Project Development Manual for a detailed - example. - Create 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: - + Modifying an existing recipe can consist of the following: + + Creating the append file + Applying patches + Changing the configuration + + + + + Before modifying an existing recipe, be sure that you have created + a minimal, custom layer from which you can work. + See the "Creating and Preparing a Layer" + section for some general resources. + You can also see the + "Get Your Layer Setup for the Build" section + of the Yocto Project Development Manual for a detailed + example. + + +
+ Creating the Append 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: - + + 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: - + + 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. - - - + + 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. + + +
Applying Patches -- cgit v1.2.3-54-g00ecf