[bitbake-devel] Richard Purdie : cooker.py: Allow the -e option to work with virtual classes and -b

git at git.openembedded.org git at git.openembedded.org
Thu Dec 1 23:16:54 UTC 2011


Module: bitbake.git
Branch: master
Commit: bd5a727c8447bcb747c1d2463b7de2ab6d21a7de
URL:    http://git.openembedded.org/?p=bitbake.git&a=commit;h=bd5a727c8447bcb747c1d2463b7de2ab6d21a7de

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
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 <richard.purdie at linuxfoundation.org>

---

 lib/bb/cooker.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index f484b68..cbe0d71 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -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()
 





More information about the bitbake-devel mailing list