From 32ee30a46d5e27ffcb0f18d85a0768bd22adca94 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Sat, 30 Apr 2016 12:52:49 -0700 Subject: bitbake: Provide LAYERDIR_RE for layer.conf This variable is a regex-escaped version of LAYERDIR, for safer use in BBFILE_PATTERN, so as to avoid issues with regex special characters in the layer path. [YOCTO #8402] (Bitbake rev: 72900522778b6ff08b135bf8bb97dff3f1a20bd9) Signed-off-by: Christopher Larson Signed-off-by: Richard Purdie --- bitbake/doc/bitbake-user-manual/bitbake-user-manual-hello.xml | 2 +- .../bitbake-user-manual/bitbake-user-manual-ref-variables.xml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'bitbake/doc') diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-hello.xml b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-hello.xml index f6d82b4f3f..8b7edbff54 100644 --- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-hello.xml +++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-hello.xml @@ -399,7 +399,7 @@ ERROR: Unable to parse base: ParseError in configuration INHERITs: Could not inh BBFILES += "${LAYERDIR}/*.bb" BBFILE_COLLECTIONS += "mylayer" - BBFILE_PATTERN_mylayer := "^${LAYERDIR}/" + BBFILE_PATTERN_mylayer := "^${LAYERDIR_RE}/" For information on these variables, click the links to go to the definitions in the glossary. diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml index ae7e4cee8c..4d06ff950c 100644 --- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml +++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml @@ -1636,6 +1636,17 @@ + LAYERDIR_RE + + When used inside the layer.conf configuration + file, this variable provides the path of the current layer, + escaped for use in a regular expression + (BBFILE_PATTERN). + This variable is not available outside of layer.conf + and references are expanded immediately when parsing of the file completes. + + + LAYERVERSION Optionally specifies the version of a layer as a single number. -- cgit 1.2.3-korg