[oe-commits] Paul Eggleton : layer.conf: allow other layers to depend on this version

git at git.openembedded.org git at git.openembedded.org
Wed Sep 26 14:04:48 UTC 2012

Module: openembedded-core.git
Branch: master
Commit: 7069c7ef829f56ae6dd0dab5e583342f351274ed
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=7069c7ef829f56ae6dd0dab5e583342f351274ed

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Tue Sep 25 15:58:32 2012 +0100

layer.conf: allow other layers to depend on this version

Set LAYERVERSION and rename the collection to "core". Given changes such
as the tabs to spaces cleanup for python functions in the current
version, this allows other layers to depend on this version of OE-Core
specifically should they choose to do so, by specifying the following
in their own layer.conf:

LAYERDEPENDS_layername = "core:1"

Where layername is whatever value is being added to BBFILE_COLLECTIONS.

(This change does nothing unless a layer has LAYERDEPENDS set.)

Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>


 meta/conf/layer.conf |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf
index ed50f1c..78ceae9 100644
--- a/meta/conf/layer.conf
+++ b/meta/conf/layer.conf
@@ -3,9 +3,13 @@ BBPATH .= ":${LAYERDIR}"
 # We have a packages directory, add to BBFILES
 BBFILES += "${LAYERDIR}/recipes-*/*/*.bb"
-BBFILE_PRIORITY_normal = "5"
+# This should only be incremented on significant changes that will
+# cause compatibility issues with other layers
+LAYERVERSION_core = "1"
 # Set a variable to get to the top of the metadata location
 COREBASE := '${@os.path.normpath("${LAYERDIR}/../")}'

More information about the Openembedded-commits mailing list