summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-12-01 23:11:24 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-12-01 23:14:05 (GMT)
commit9d6790c4409dee4d08fe6a47450125c406d0ba32 (patch)
treef6f16583ed5281217b0c1959ad0a945f39716c35
parentb187b2775c854f6cf96e7eb4d20371340f5b152c (diff)
downloadpoky-9d6790c4409dee4d08fe6a47450125c406d0ba32.tar.gz
cooker.py: Allow the -e option to work with virtual classes and -b
Using bitbake -e -b virtual:xxxx:/path/to/the.bb would result in zero matches since the virtual:xxxx piece wasn't being processed. This adds in the necessary functionality to handle it correctly. [YOCTO #1793] (Bitbake rev: bd5a727c8447bcb747c1d2463b7de2ab6d21a7de) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/cooker.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 5bbabfc..d1198d4 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -295,7 +295,9 @@ class BBCooker:
295 self.status = bb.cache.CacheData(self.caches_array) 295 self.status = bb.cache.CacheData(self.caches_array)
296 self.handleCollections( self.configuration.data.getVar("BBFILE_COLLECTIONS", 1) ) 296 self.handleCollections( self.configuration.data.getVar("BBFILE_COLLECTIONS", 1) )
297 297
298 fn = self.matchFile(buildfile) 298 fn, cls = bb.cache.Cache.virtualfn2realfn(buildfile)
299 fn = self.matchFile(fn)
300 fn = bb.cache.Cache.realfn2virtual(fn, cls)
299 elif len(pkgs_to_build) == 1: 301 elif len(pkgs_to_build) == 1:
300 self.updateCache() 302 self.updateCache()
301 303