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


Changqing Li
 

Hi,

Please ignore this patch, I need to send a V2

Thanks

Changqing

On 9/26/21 9:32 AM, Changqing Li wrote:
From: Changqing Li <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 "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

Signed-off-by: Changqing Li <changqing.li@...>
---
 layerindex/recipeparse.py | 1 +
 1 file changed, 1 insertion(+)

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



Join yocto@lists.yoctoproject.org to automatically receive all group messages.