bitbake: Add in code to support the BBCLASSEXTEND variable. Virtual native/sdk recipes then become possible

This commit is contained in:
Richard Purdie
2009-01-01 14:43:54 +00:00
parent 28fd9dadbd
commit ade351e2f4
6 changed files with 85 additions and 24 deletions

View File

@@ -453,6 +453,8 @@ def main():
except bb.parse.ParseError:
bb.fatal( "Unable to parse %s" % config_file )
if isinstance(documentation, dict):
documentation = documentation[""]
# Assuming we've the file loaded now, we will initialize the 'tree'
doc = Documentation()

View File

@@ -628,13 +628,10 @@ class BBCooker:
fn = self.matchFile(buildfile)
self.buildSetVars()
# Load data into the cache for fn
# Load data into the cache for fn and parse the loaded cache data
self.bb_cache = bb.cache.init(self)
self.bb_cache.loadData(fn, self.configuration.data)
# Parse the loaded cache data
self.status = bb.cache.CacheData()
self.bb_cache.handle_data(fn, self.status)
self.bb_cache.loadData(fn, self.configuration.data, self.status)
# Tweak some variables
item = self.bb_cache.getVar('PN', fn, True)