Skip to contentSkip to conversation

recipeparse.py: add BBLAYERS in bblayers.conf

PATCH New [email protected] 1 participant 1 message Sep 26, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 recipeparse.py: add BBLAYERS in bblayers.conf

From: Changqing Li <[email protected]>

since commit [97183e10f cookerdata: Show error for no BBLAYERS in bblayers.conf], no BBLAYERS in bblayers.conf will cause layerindex update failed with below error:

ERROR: Traceback (most recent call last):
File "update_layer.py", line 478, in main
(tinfoil, tempdir) = recipeparse.init_parser(settings, branch, bitbakepath, nocheckout=options.nocheckout, logger=logger) File "/path/to/layerindex-web/layerindex/recipeparse.py", line 83, in init_parser
tinfoil = utils.setup_tinfoil(bitbakepath, enable_tracking, loglevel=logger.getEffectiveLevel())
File "/path/to/layerindex-web/layerindex/utils.py", line 206, in setup_tinfoil tinfoil.prepare(config_only = True)
File "/path/to/layerindex/git___lxgit_wrs_com_bitbake/lib/bb/tinfoil.py", line 413, in prepare config_params.updateToServer(self.server_connection.connection, os.environ.copy())
File "/path/to/layerindex/git___lxgit_wrs_com_bitbake/lib/bb/cookerdata.py", line 73, in updateToServer ret, error = server.runCommand(["updateConfig", options, environment, sys.argv])
File "/path/to/layerindex/git___lxgit_wrs_com_bitbake/lib/bb/server/process.py", line 410, in runCommand raise bb.BBHandledException()
bb.BBHandledException

---
 layerindex/recipeparse.py | 1 +
 1 file changed, 1 insertion(+)
layerindex/recipeparse.py +1 -0
index 62c08e9..d4343b4 100644
@@ -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"\n' % core_layerdir)
         pass
 
     if logger:
Signature · 1 line
2.17.1