* [PATCH 0/1] bblayers.conf version mismatch fix (poky part)
@ 2015-02-05 12:05 Paul Eggleton
2015-02-05 12:05 ` [PATCH 1/1] poky.conf: resolve mismatch between poky bblayers version and OE-Core Paul Eggleton
0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2015-02-05 12:05 UTC (permalink / raw)
To: poky
NOTE: there is a corresponding patch for OE-Core that should be applied
at the same time as this patch.
The following change since commit d8f0011c23a6b8441323974acc70b08c81cfefbd:
opkg-keyrings: New recipe (2015-02-03 14:53:56 +0000)
is available in the git repository at:
git://git.yoctoproject.org/poky-contrib paule/bblayers-ver-poky
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=paule/bblayers-ver-poky
Paul Eggleton (1):
poky.conf: resolve mismatch between poky bblayers version and OE-Core
meta-yocto/classes/poky-sanity.bbclass | 8 ++++++--
meta-yocto/conf/distro/poky.conf | 1 -
2 files changed, 6 insertions(+), 3 deletions(-)
--
1.9.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] poky.conf: resolve mismatch between poky bblayers version and OE-Core
2015-02-05 12:05 [PATCH 0/1] bblayers.conf version mismatch fix (poky part) Paul Eggleton
@ 2015-02-05 12:05 ` Paul Eggleton
0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2015-02-05 12:05 UTC (permalink / raw)
To: poky
Drop our custom LAYER_CONF_VERSION (since the OE-Core version is now the
same) and ensure that poky-sanity's update function runs first so that
anyone still using version 5 with poky gets the meta-yocto /
meta-yocto-bsp split handled instead of OE-Core's no-op upgrade. Also
fix the version check so that the poky 5->6 upgrade is still performed
if the latest version is greater than 6.
NOTE: this of course relies on the corresponding version bump patch in
OE-Core.
Fixes [YOCTO #6139].
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
meta-yocto/classes/poky-sanity.bbclass | 8 ++++++--
meta-yocto/conf/distro/poky.conf | 1 -
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/meta-yocto/classes/poky-sanity.bbclass b/meta-yocto/classes/poky-sanity.bbclass
index fff08b3..77c266e 100644
--- a/meta-yocto/classes/poky-sanity.bbclass
+++ b/meta-yocto/classes/poky-sanity.bbclass
@@ -1,3 +1,5 @@
+# Provide some extensions to sanity.bbclass to handle poky-specific conf file upgrades
+
python poky_update_bblayersconf() {
current_version = int(d.getVar('LCONF_VERSION', True) or -1)
latest_version = int(d.getVar('LAYER_CONF_VERSION', True) or -1)
@@ -5,7 +7,8 @@ python poky_update_bblayersconf() {
bblayers_fn = bblayers_conf_file(d)
lines = sanity_conf_read(bblayers_fn)
- if current_version == 5 and latest_version == 6:
+ if current_version == 5 and latest_version > 5:
+ # Handle split out of meta-yocto-bsp from meta-yocto
if '/meta-yocto-bsp' not in d.getVar('BBLAYERS', True):
index, meta_yocto_line = sanity_conf_find_line('meta-yocto\s*\\\\\\n', lines)
if meta_yocto_line:
@@ -21,4 +24,5 @@ python poky_update_bblayersconf() {
sys.exit()
}
-BBLAYERS_CONF_UPDATE_FUNCS += "poky_update_bblayersconf"
+# Prepend to ensure our function runs before the OE-Core one
+BBLAYERS_CONF_UPDATE_FUNCS =+ "poky_update_bblayersconf"
diff --git a/meta-yocto/conf/distro/poky.conf b/meta-yocto/conf/distro/poky.conf
index 479182f..1e00598 100644
--- a/meta-yocto/conf/distro/poky.conf
+++ b/meta-yocto/conf/distro/poky.conf
@@ -10,7 +10,6 @@ MAINTAINER = "Poky <poky@yoctoproject.org>"
TARGET_VENDOR = "-poky"
LOCALCONF_VERSION = "1"
-LAYER_CONF_VERSION ?= "6"
# Override these in poky based distros
POKY_DEFAULT_DISTRO_FEATURES = "largefile opengl ptest multiarch wayland"
--
1.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-05 12:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-05 12:05 [PATCH 0/1] bblayers.conf version mismatch fix (poky part) Paul Eggleton
2015-02-05 12:05 ` [PATCH 1/1] poky.conf: resolve mismatch between poky bblayers version and OE-Core Paul Eggleton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.