From 74d43d3a11113c8d8183d95e8b6215ee164784f6 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 18 Dec 2012 14:45:52 -0600 Subject: kernel-dev: Re-write of the "Applying Patches" section. (From yocto-docs rev: 6f72b0ca3e883cb03618c9f37c69cb1ab774a9fe) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/kernel-dev/kernel-dev-common.xml | 31 +++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'documentation/kernel-dev/kernel-dev-common.xml') diff --git a/documentation/kernel-dev/kernel-dev-common.xml b/documentation/kernel-dev/kernel-dev-common.xml index 8e6db4c255..fe134cc916 100644 --- a/documentation/kernel-dev/kernel-dev-common.xml +++ b/documentation/kernel-dev/kernel-dev-common.xml @@ -123,7 +123,35 @@ Project Board Support Package Developer's Guide. Applying Patches - If you have a patch, or a small series of patches, to apply to the Linux kernel + If you have a single patch or a small series of patches + that you want to apply to the Linux kernel source, you + can do so just as you would with any other recipe. + You first copy the patches to the path added to + FILESEXTRAPATHS + in your .bbappend file as described in + the previous section, and then reference them in + SRC_URI + statements. + + + + For example, you can apply a three-patch series by adding the + following lines to your linux-yocto .bbappend + file in your layer: + + SRC_URI += "file://0001-first-change.patch" + SRC_URI += "file://0002-first-change.patch" + SRC_URI += "file://0003-first-change.patch" + + Then next time you run BitBake to build the Linux kernel, BitBake + detects the change in the recipe and fetches and applies the patches + before building the kernel. + + + + Original Text: + +If you have a patch, or a small series of patches, to apply to the Linux kernel source, you can do so just as you would with any other recipe. You first copy the patches to the path added to FILESEXTRAPATHS in the bbappend file as described in 2.2 and then reference them in the SRC_URI. @@ -137,6 +165,7 @@ your linux-yocto bbappend file in your layer: At the next build, bitbake will detect the change in the recipe and fetch and apply the patches before rebuilding the Linux kernel. + -- cgit v1.2.3-54-g00ecf