diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-01 23:11:24 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-01 23:14:05 +0000 |
commit | 9d6790c4409dee4d08fe6a47450125c406d0ba32 (patch) | |
tree | f6f16583ed5281217b0c1959ad0a945f39716c35 /bitbake | |
parent | b187b2775c854f6cf96e7eb4d20371340f5b152c (diff) | |
download | ast2050-yocto-poky-9d6790c4409dee4d08fe6a47450125c406d0ba32.zip ast2050-yocto-poky-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>
Diffstat (limited to 'bitbake')
-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 5bbabfc..d1198d4 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -295,7 +295,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() |