[bitbake-devel] [PATCH] bitbake: Fix -e when used with -b option
Richard Purdie
richard.purdie at linuxfoundation.org
Wed Aug 10 13:25:49 UTC 2011
When using the -e and -b options together an expection was occuring.
This was due to incorrect initialisation and this patch adds in the
correct initialisation calls.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index b4c22f6..9f6dcd2 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -276,6 +276,12 @@ class BBCooker:
envdata = None
if buildfile:
+ # Parse the configuration here. We need to do it explicitly here since
+ # this showEnvironment() code path doesn't use the cache
+ self.parseConfiguration()
+ self.status = bb.cache.CacheData(self.caches_array)
+ self.handleCollections( bb.data.getVar("BBFILE_COLLECTIONS", self.configuration.data, 1) )
+
fn = self.matchFile(buildfile)
elif len(pkgs_to_build) == 1:
self.updateCache()
More information about the bitbake-devel
mailing list