diff options
author | Richard Purdie <richard@openedhand.com> | 2006-06-10 08:56:40 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-06-10 08:56:40 +0000 |
commit | bc8ad1b1cda0dd21b5b0b816b386b0bf96d5891a (patch) | |
tree | aff958d279429942895c02807bf5da84d77cf5c7 /bitbake/bin | |
parent | 65cef0da326e839871f21f638bdfc7fda17e4654 (diff) | |
download | openembedded-core-bc8ad1b1cda0dd21b5b0b816b386b0bf96d5891a.tar.gz openembedded-core-bc8ad1b1cda0dd21b5b0b816b386b0bf96d5891a.tar.bz2 openembedded-core-bc8ad1b1cda0dd21b5b0b816b386b0bf96d5891a.zip |
bitbake: Update against upstream stable branch (includes srcdate='now' support)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@458 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x | bitbake/bin/bitbake | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 10cf4bd00a..7fbe7ed5eb 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake @@ -781,11 +781,19 @@ class BBCooker: try: self.configuration.data = bb.parse.handle( afile, self.configuration.data ) - # Add the handlers we inherited by INHERITS + # Add the handlers we inherited by INHERIT + # we need to do this manually as it is not guranteed + # we will pick up these classes... as we only INHERIT + # on .inc and .bb files but not on .conf + data = bb.data.createCopy( self.configuration.data ) + inherits = ["base"] + (bb.data.getVar('INHERIT', data, True ) or "").split() + for inherit in inherits: + data = bb.parse.handle( os.path.join('classes', '%s.bbclass' % inherit ), data, True ) + # FIXME: This assumes that we included at least one .inc file - for var in bb.data.keys(self.configuration.data): - if bb.data.getVarFlag(var, 'handler', self.configuration.data): - bb.event.register(var,bb.data.getVar(var,self.configuration.data)) + for var in bb.data.keys(data): + if bb.data.getVarFlag(var, 'handler', data): + bb.event.register(var,bb.data.getVar(var, data)) except IOError: bb.fatal( "Unable to open %s" % afile ) |