From 2dcd1f0604e960ab173c7603209ccf2cbdcaaebf Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Wed, 29 May 2013 14:09:04 +0300 Subject: dev-manual, kernel-manual: Added links to THISDIR variable There is now a glossary description for the THISDIR variable in ref-manual. I added some cross-reference links to the variable in key places of these two manuals. (From yocto-docs rev: d5e01204b864b81782be33d8119c05ef328f3fd7) Signed-off-by: Scott Rifenbark Conflicts: documentation/dev-manual/dev-manual-common-tasks.xml documentation/kernel-dev/kernel-dev-common.xml Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/kernel-dev/kernel-dev-advanced.xml | 2 +- documentation/kernel-dev/kernel-dev-common.xml | 33 +++++++++++++----------- 2 files changed, 19 insertions(+), 16 deletions(-) (limited to 'documentation/kernel-dev') diff --git a/documentation/kernel-dev/kernel-dev-advanced.xml b/documentation/kernel-dev/kernel-dev-advanced.xml index 2626f691dc..d15e26ffbf 100644 --- a/documentation/kernel-dev/kernel-dev-advanced.xml +++ b/documentation/kernel-dev/kernel-dev-advanced.xml @@ -203,7 +203,7 @@ oe-core/meta-skeleton/recipes-kernel/linux/linux-yocto-custom.bb to a recipe in your layer, FILESEXTRAPATHS is typically set to - ${THISDIR}/${PN}. + ${THISDIR}/${PN}. See the "Modifying an Existing Recipe" section for more information. diff --git a/documentation/kernel-dev/kernel-dev-common.xml b/documentation/kernel-dev/kernel-dev-common.xml index f0e95aca07..fb258f286c 100644 --- a/documentation/kernel-dev/kernel-dev-common.xml +++ b/documentation/kernel-dev/kernel-dev-common.xml @@ -92,10 +92,13 @@ 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 and you + have extended FILESPATH as + described above, you must place the files in your layer in the + following area: <your-layer>/recipes-kernel/linux/linux-yocto/ @@ -149,15 +152,15 @@ You can make wholesale or incremental changes to the Linux kernel .config file by including a defconfig or by specifying - configuration fragments in the + configuration fragments in the SRC_URI. If you have a complete Linux kernel .config - file you want to use, copy it to a directory named - files, which must be in - your layer's recipes-kernel/linux + file you want to use, copy it to a directory named + files, which must be in + your layer's recipes-kernel/linux directory, and name the file "defconfig". Then, add the following lines to your linux-yocto .bbappend file in your layer: @@ -165,13 +168,13 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/files:" SRC_URI += "file://defconfig" - The - SRC_URI tells the build system how to - search for the file, while the + The + SRC_URI tells the build system how to + search for the file, while the FILESEXTRAPATHS - extends the + extends the FILESPATH - variable (search directories) to include the + variable (search directories) to include the files directory you created for the configuration changes. @@ -193,8 +196,8 @@ CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE_CONSOLE=y - Next, include this configuration fragment and extend the - FILESPATH variable in your + Next, include this configuration fragment and extend the + FILESPATH variable in your .bbappend file: FILESEXTRAPATHS_prepend := "${THISDIR}/files:" -- cgit v1.2.3-54-g00ecf