Re: [layerindex-web][PATCH] add BBLAYERS in bblayers.conf

Changqing Li


Please ignore this patch, I need to send a V2



On 9/26/21 9:32 AM, Changqing Li wrote:

From: Changqing Li <>

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 "", line 478, in main
(tinfoil, tempdir) = recipeparse.init_parser(settings, branch, bitbakepath, nocheckout=options.nocheckout, logger=logger)
File "/path/to/layerindex-web/layerindex/", line 83, in init_parser
tinfoil = utils.setup_tinfoil(bitbakepath, enable_tracking, loglevel=logger.getEffectiveLevel())
File "/path/to/layerindex-web/layerindex/", line 206, in setup_tinfoil
tinfoil.prepare(config_only = True)
File "/path/to/layerindex/git___lxgit_wrs_com_bitbake/lib/bb/", 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/", 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/", line 410, in runCommand
raise bb.BBHandledException()

Signed-off-by: Changqing Li <>
 layerindex/ | 1 +
 1 file changed, 1 insertion(+)

diff --git a/layerindex/ b/layerindex/
index 62c08e9..d4343b4 100644
--- a/layerindex/
+++ b/layerindex/
@@ -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)
     if logger:

Join to automatically receive all group messages.