[bitbake-devel,v3,1/3] cooker.py: Save prioritized BBFILES to BBFILES_PRIORITIZED
Submitted by Robert Yang on Sept. 9, 2020, 11:55 a.m.
|
Patch ID: 176198
Details
Commit Message
@@ -1761,10 +1761,10 @@ class CookerCollectFiles(object):
collectlog.debug(1, "collecting .bb files")
files = (config.getVar( "BBFILES") or "").split()
- config.setVar("BBFILES", " ".join(files))
# Sort files by priority
files.sort( key=lambda fileitem: self.calc_bbfile_priority(fileitem)[0] )
+ config.setVar("BBFILES_PRIORITIZED", " ".join(files))
if not len(files):
files = self.get_bbfiles()
The original code saved BBFILES back to BBFILES without any changes which isn't usefule, so remove that line. Now save prioritized BBFILES to BBFILES_PRIORITIZED which can accelerate the query a lot for the one which relies on it such as bb.utils.get_file_layer(). Signed-off-by: Robert Yang <liezhi.yang@windriver.com> --- bitbake/lib/bb/cooker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)