summaryrefslogtreecommitdiffstats
path: root/meta-yocto
diff options
context:
space:
mode:
Diffstat (limited to 'meta-yocto')
-rw-r--r--meta-yocto/classes/poky-sanity.bbclass8
-rw-r--r--meta-yocto/conf/distro/poky.conf1
2 files changed, 6 insertions, 3 deletions
diff --git a/meta-yocto/classes/poky-sanity.bbclass b/meta-yocto/classes/poky-sanity.bbclass
index fff08b3a8a..77c266e946 100644
--- a/meta-yocto/classes/poky-sanity.bbclass
+++ b/meta-yocto/classes/poky-sanity.bbclass
@@ -1,3 +1,5 @@
1# Provide some extensions to sanity.bbclass to handle poky-specific conf file upgrades
2
1python poky_update_bblayersconf() { 3python poky_update_bblayersconf() {
2 current_version = int(d.getVar('LCONF_VERSION', True) or -1) 4 current_version = int(d.getVar('LCONF_VERSION', True) or -1)
3 latest_version = int(d.getVar('LAYER_CONF_VERSION', True) or -1) 5 latest_version = int(d.getVar('LAYER_CONF_VERSION', True) or -1)
@@ -5,7 +7,8 @@ python poky_update_bblayersconf() {
5 bblayers_fn = bblayers_conf_file(d) 7 bblayers_fn = bblayers_conf_file(d)
6 lines = sanity_conf_read(bblayers_fn) 8 lines = sanity_conf_read(bblayers_fn)
7 9
8 if current_version == 5 and latest_version == 6: 10 if current_version == 5 and latest_version > 5:
11 # Handle split out of meta-yocto-bsp from meta-yocto
9 if '/meta-yocto-bsp' not in d.getVar('BBLAYERS', True): 12 if '/meta-yocto-bsp' not in d.getVar('BBLAYERS', True):
10 index, meta_yocto_line = sanity_conf_find_line('meta-yocto\s*\\\\\\n', lines) 13 index, meta_yocto_line = sanity_conf_find_line('meta-yocto\s*\\\\\\n', lines)
11 if meta_yocto_line: 14 if meta_yocto_line:
@@ -21,4 +24,5 @@ python poky_update_bblayersconf() {
21 sys.exit() 24 sys.exit()
22} 25}
23 26
24BBLAYERS_CONF_UPDATE_FUNCS += "poky_update_bblayersconf" 27# Prepend to ensure our function runs before the OE-Core one
28BBLAYERS_CONF_UPDATE_FUNCS =+ "poky_update_bblayersconf"
diff --git a/meta-yocto/conf/distro/poky.conf b/meta-yocto/conf/distro/poky.conf
index d5bdbac6cd..459192886e 100644
--- a/meta-yocto/conf/distro/poky.conf
+++ b/meta-yocto/conf/distro/poky.conf
@@ -10,7 +10,6 @@ MAINTAINER = "Poky <poky@yoctoproject.org>"
10TARGET_VENDOR = "-poky" 10TARGET_VENDOR = "-poky"
11 11
12LOCALCONF_VERSION = "1" 12LOCALCONF_VERSION = "1"
13LAYER_CONF_VERSION ?= "6"
14 13
15# Override these in poky based distros 14# Override these in poky based distros
16POKY_DEFAULT_DISTRO_FEATURES = "largefile opengl ptest multiarch wayland" 15POKY_DEFAULT_DISTRO_FEATURES = "largefile opengl ptest multiarch wayland"