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

2021-09-26 Thread 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 

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 
---
  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:





-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54860): https://lists.yoctoproject.org/g/yocto/message/54860
Mute This Topic: https://lists.yoctoproject.org/mt/85871827/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



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

2021-09-25 Thread Changqing Li
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 "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 
---
 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:
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54858): https://lists.yoctoproject.org/g/yocto/message/54858
Mute This Topic: https://lists.yoctoproject.org/mt/85871827/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-