poky-sanity.bbclass 633 B

123456789101112
  1. # Provide some extensions to sanity.bbclass to handle poky-specific conf file upgrades
  2. python poky_update_bblayersconf() {
  3. current_version = int(d.getVar('POKY_BBLAYERS_CONF_VERSION', True) or -1)
  4. latest_version = int(d.getVar('REQUIRED_POKY_BBLAYERS_CONF_VERSION', True) or -1)
  5. # No version transitions here yet
  6. raise NotImplementedError("You need to update bblayers.conf manually for this version transision")
  7. }
  8. # Prepend to ensure our function runs before the OE-Core one
  9. BBLAYERS_CONF_UPDATE_FUNCS =+ "conf/bblayers.conf:POKY_BBLAYERS_CONF_VERSION:REQUIRED_POKY_BBLAYERS_CONF_VERSION:poky_update_bblayersconf"