From c527fd1f14c27855a37f2e8ac5346ce8d940ced2 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Thu, 16 Oct 2014 03:05:19 +0200 Subject: initial commit for Enea Linux 4.0-140929 Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea --- meta-yocto/classes/poky-sanity.bbclass | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 meta-yocto/classes/poky-sanity.bbclass (limited to 'meta-yocto/classes/poky-sanity.bbclass') diff --git a/meta-yocto/classes/poky-sanity.bbclass b/meta-yocto/classes/poky-sanity.bbclass new file mode 100644 index 0000000000..fff08b3a8a --- /dev/null +++ b/meta-yocto/classes/poky-sanity.bbclass @@ -0,0 +1,24 @@ +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) + + bblayers_fn = bblayers_conf_file(d) + lines = sanity_conf_read(bblayers_fn) + + if current_version == 5 and latest_version == 6: + 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: + lines.insert(index + 1, meta_yocto_line.replace('meta-yocto', + 'meta-yocto-bsp')) + else: + sys.exit() + + current_version += 1 + sanity_conf_update(bblayers_fn, lines, 'LCONF_VERSION', current_version) + return + + sys.exit() +} + +BBLAYERS_CONF_UPDATE_FUNCS += "poky_update_bblayersconf" -- cgit v1.2.3-54-g00ecf