summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-15 18:00:45 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-18 10:06:26 +0100
commit97ce9126a6de2faf78441f686a1b52b5f68f9a62 (patch)
tree972e1f7c930fb2aa003d3725e813601f8ea997b8 /bitbake/lib/bb/cooker.py
parent4cd5647f125f61a45d3145b54277471fa1a31433 (diff)
downloadpoky-97ce9126a6de2faf78441f686a1b52b5f68f9a62.tar.gz
bitbake: cache: Make virtualfn2realfn/realfn2virtual standalone functions
Needing to access these static methods through a class doesn't make sense. Move these to become module level standalone functions. (Bitbake rev: 6d06e93c6a2204af6d2cf747a4610bd0eeb9f202) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index d4dd23f09c..11c611de72 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -601,9 +601,9 @@ class BBCooker:
601 # this showEnvironment() code path doesn't use the cache 601 # this showEnvironment() code path doesn't use the cache
602 self.parseConfiguration() 602 self.parseConfiguration()
603 603
604 fn, cls = bb.cache.Cache.virtualfn2realfn(buildfile) 604 fn, cls = bb.cache.virtualfn2realfn(buildfile)
605 fn = self.matchFile(fn) 605 fn = self.matchFile(fn)
606 fn = bb.cache.Cache.realfn2virtual(fn, cls) 606 fn = bb.cache.realfn2virtual(fn, cls)
607 elif len(pkgs_to_build) == 1: 607 elif len(pkgs_to_build) == 1:
608 ignore = self.expanded_data.getVar("ASSUME_PROVIDED", True) or "" 608 ignore = self.expanded_data.getVar("ASSUME_PROVIDED", True) or ""
609 if pkgs_to_build[0] in set(ignore.split()): 609 if pkgs_to_build[0] in set(ignore.split()):
@@ -1249,7 +1249,7 @@ class BBCooker:
1249 if (task == None): 1249 if (task == None):
1250 task = self.configuration.cmd 1250 task = self.configuration.cmd
1251 1251
1252 fn, cls = bb.cache.Cache.virtualfn2realfn(buildfile) 1252 fn, cls = bb.cache.virtualfn2realfn(buildfile)
1253 fn = self.matchFile(fn) 1253 fn = self.matchFile(fn)
1254 1254
1255 self.buildSetVars() 1255 self.buildSetVars()
@@ -1259,7 +1259,7 @@ class BBCooker:
1259 self.caches_array) 1259 self.caches_array)
1260 infos = dict(infos) 1260 infos = dict(infos)
1261 1261
1262 fn = bb.cache.Cache.realfn2virtual(fn, cls) 1262 fn = bb.cache.realfn2virtual(fn, cls)
1263 try: 1263 try:
1264 info_array = infos[fn] 1264 info_array = infos[fn]
1265 except KeyError: 1265 except KeyError:
@@ -1822,7 +1822,7 @@ class CookerCollectFiles(object):
1822 # Calculate priorities for each file 1822 # Calculate priorities for each file
1823 matched = set() 1823 matched = set()
1824 for p in pkgfns: 1824 for p in pkgfns:
1825 realfn, cls = bb.cache.Cache.virtualfn2realfn(p) 1825 realfn, cls = bb.cache.virtualfn2realfn(p)
1826 priorities[p] = self.calc_bbfile_priority(realfn, matched) 1826 priorities[p] = self.calc_bbfile_priority(realfn, matched)
1827 1827
1828 # Don't show the warning if the BBFILE_PATTERN did match .bbappend files 1828 # Don't show the warning if the BBFILE_PATTERN did match .bbappend files