From 05e2c479d9bb859ea09c9465e604b201c00c0b45 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Fri, 1 Feb 2013 16:09:08 -0600 Subject: dev-manual: Updates to "Using .bbappend Files" section Fixes YOCTO #3664 Added some information in the note to point out that not all append files add files into the mix. Some just exist to add build options. And, in this case the _prepend part of the FILESEXTRAPATHS statement is not necessary. Reported-by: Robert P. J. Day (From yocto-docs rev: 388c441341006227be2f9e7d42bb1c509c32790d) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/dev-manual/dev-manual-common-tasks.xml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index 4372769c1c..e9555e6168 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml @@ -295,7 +295,7 @@ - Append files must have the same name as the corresponding recipe. + Append files must have the same root name as the corresponding recipe. For example, the append file someapp_&DISTRO;.bbappend must apply to someapp_&DISTRO;.bb. This means the original recipe and append file names are version number-specific. @@ -304,6 +304,9 @@ During the build process, BitBake displays an error on starting if it detects a .bbappend file that does not have a corresponding recipe with a matching name. + See the + BB_DANGLINGAPPENDS_WARNONLY + variable for information on how to handle this error. @@ -317,7 +320,7 @@ append file both from the Source Directory. Here is the main formfactor recipe, which is named formfactor_0.0.bb and - located in the meta layer at meta/recipes-bsp/formfactor: + located in the "meta" layer at meta/recipes-bsp/formfactor: DESCRIPTION = "Device formfactor information" SECTION = "base" @@ -364,10 +367,16 @@ of the reference to THISDIR. The trailing colon character is important as it ensures that items in the list remain colon-separated. - BitBake automatically defines the THISDIR variable. + BitBake automatically defines the + THISDIR variable. You should never set this variable yourself. - Using _prepend ensures your path will be searched prior to other - paths in the final list. + Using _prepend ensures your path will + be searched prior to other paths in the final list. + Also, not all append files add extra files. + Many append files simply exist to add build options + (e.g. systemd). + For these cases, it is not necessary to use the + "_prepend" part of the statement. -- cgit v1.2.3-54-g00ecf