mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
update: fix setup of BBLAYERS
So with honister / current master we can no longer get away with bypassing BBLAYERS - it now needs to point to the core layer at minimum. This is fine, we just need to skip parsing layer.conf if we're parsing the core layer or we get some extra warnings we don't need. Signed-off-by: Paul Eggleton <paul.eggleton@linux.microsoft.com>
This commit is contained in:
parent
fe0bd7ddf5
commit
38e6288c7d
|
@ -79,6 +79,7 @@ def init_parser(settings, branch, bitbakepath, enable_tracking=False, nocheckout
|
|||
if not classic:
|
||||
# We need this to avoid problems with AVAILABLE_LICENSES
|
||||
f.write('COREBASE = "%s"\n' % core_repodir)
|
||||
f.write('BBLAYERS = "%s/meta"\n' % core_repodir)
|
||||
pass
|
||||
|
||||
if logger:
|
||||
|
|
|
@ -397,7 +397,11 @@ def main():
|
|||
tinfoil.config_data.setVar('LICENSE', '')
|
||||
|
||||
layerconfparser = layerconfparse.LayerConfParse(logger=logger, tinfoil=tinfoil)
|
||||
layer_config_data = layerconfparser.parse_layer(layerdir)
|
||||
if layer.name == settings.CORE_LAYER_NAME:
|
||||
# Skip parsing the core layer, we already did via BBLAYERS
|
||||
layer_config_data = layerconfparser.config_data_copy
|
||||
else:
|
||||
layer_config_data = layerconfparser.parse_layer(layerdir)
|
||||
if not layer_config_data:
|
||||
logger.info("Skipping update of layer %s for branch %s - conf/layer.conf may have parse issues" % (layer.name, branchdesc))
|
||||
layerconfparser.shutdown()
|
||||
|
|
Loading…
Reference in New Issue
Block a user