summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2020-09-09 04:55:18 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-10 13:49:21 +0100
commita74fb2b3060999392ad083303d377f93d9807c8c (patch)
tree91f7bab5129fd8b8f4d9fbca2e301db0a23f71c4 /bitbake/lib/bb
parent926c154eb444c533a2f47a7cdf63667d78d30794 (diff)
downloadpoky-a74fb2b3060999392ad083303d377f93d9807c8c.tar.gz
bitbake: cooker.py: Save prioritized BBFILES to BBFILES_PRIORITIZED
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(). (Bitbake rev: 49bdb5dfa57b41b3ed399961e947c404f9195998) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/cooker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index f3ff4274ad..e45755206e 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1761,10 +1761,10 @@ class CookerCollectFiles(object):
1761 collectlog.debug(1, "collecting .bb files") 1761 collectlog.debug(1, "collecting .bb files")
1762 1762
1763 files = (config.getVar( "BBFILES") or "").split() 1763 files = (config.getVar( "BBFILES") or "").split()
1764 config.setVar("BBFILES", " ".join(files))
1765 1764
1766 # Sort files by priority 1765 # Sort files by priority
1767 files.sort( key=lambda fileitem: self.calc_bbfile_priority(fileitem)[0] ) 1766 files.sort( key=lambda fileitem: self.calc_bbfile_priority(fileitem)[0] )
1767 config.setVar("BBFILES_PRIORITIZED", " ".join(files))
1768 1768
1769 if not len(files): 1769 if not len(files):
1770 files = self.get_bbfiles() 1770 files = self.get_bbfiles()