diff options
Diffstat (limited to 'meta-poky/classes/poky-sanity.bbclass')
-rw-r--r-- | meta-poky/classes/poky-sanity.bbclass | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-poky/classes/poky-sanity.bbclass b/meta-poky/classes/poky-sanity.bbclass new file mode 100644 index 0000000000..287a9e37d6 --- /dev/null +++ b/meta-poky/classes/poky-sanity.bbclass | |||
@@ -0,0 +1,12 @@ | |||
1 | # Provide some extensions to sanity.bbclass to handle poky-specific conf file upgrades | ||
2 | |||
3 | python poky_update_bblayersconf() { | ||
4 | current_version = int(d.getVar('POKY_BBLAYERS_CONF_VERSION', True) or -1) | ||
5 | latest_version = int(d.getVar('REQUIRED_POKY_BBLAYERS_CONF_VERSION', True) or -1) | ||
6 | |||
7 | # No version transitions here yet | ||
8 | raise NotImplementedError("You need to update bblayers.conf manually for this version transision") | ||
9 | } | ||
10 | |||
11 | # Prepend to ensure our function runs before the OE-Core one | ||
12 | BBLAYERS_CONF_UPDATE_FUNCS =+ "conf/bblayers.conf:POKY_BBLAYERS_CONF_VERSION:REQUIRED_POKY_BBLAYERS_CONF_VERSION:poky_update_bblayersconf" | ||