diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-01 23:11:24 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-30 16:16:13 +0000 |
commit | 26666187e3e8b129485c442dc72c7e51c91c5e8d (patch) | |
tree | 076638ef8211ad4bdebe4ddf4bed9b266eccc29c /bitbake/lib/bb | |
parent | c270f92b087f5eef9fcbcb6e3561414c767a3e2c (diff) | |
download | poky-26666187e3e8b129485c442dc72c7e51c91c5e8d.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>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 9537239b03..d65b5ebb31 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -288,7 +288,9 @@ class BBCooker: | |||
288 | self.status = bb.cache.CacheData(self.caches_array) | 288 | self.status = bb.cache.CacheData(self.caches_array) |
289 | self.handleCollections( bb.data.getVar("BBFILE_COLLECTIONS", self.configuration.data, 1) ) | 289 | self.handleCollections( bb.data.getVar("BBFILE_COLLECTIONS", self.configuration.data, 1) ) |
290 | 290 | ||
291 | fn = self.matchFile(buildfile) | 291 | fn, cls = bb.cache.Cache.virtualfn2realfn(buildfile) |
292 | fn = self.matchFile(fn) | ||
293 | fn = bb.cache.Cache.realfn2virtual(fn, cls) | ||
292 | elif len(pkgs_to_build) == 1: | 294 | elif len(pkgs_to_build) == 1: |
293 | self.updateCache() | 295 | self.updateCache() |
294 | 296 | ||