Richard Purdie : cooker.py: Allow the -e option to work with virtual classes and -b
Module: bitbake.git Branch: master Commit: bd5a727c8447bcb747c1d2463b7de2ab6d21a7de URL: http://git.openembedded.org/?p=bitbake.git&a=commit;h=bd5a727c8447bcb747c1d2463b7de2ab6d21a7de
Author: Richard Purdie <[email protected]> Date: Thu Dec 1 23:11:24 2011 +0000
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]
Signed-off-by Richard Purdie <[email protected]>
---
lib/bb/cooker.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
lib/bb/cooker.py +3 -1
@@ -289,7 +289,9 @@ class BBCooker: self.status = bb.cache.CacheData(self.caches_array) self.handleCollections( self.configuration.data.getVar("BBFILE_COLLECTIONS", 1) ) - fn = self.matchFile(buildfile) + fn, cls = bb.cache.Cache.virtualfn2realfn(buildfile) + fn = self.matchFile(fn) + fn = bb.cache.Cache.realfn2virtual(fn, cls) elif len(pkgs_to_build) == 1: self.updateCache()