summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2006-04-17 20:08:00 +0000
committerHolger Hans Peter Freyther <zecke@selfish.org>2006-04-17 20:08:00 +0000
commit54cfb6711c0263040437defcc0ed38f56f20f41a (patch)
treea4e08c164d653272102bd82e00e437cc6a011fc4
parent493663782fc5cc6d882ee4c3ade504de9f2c3711 (diff)
downloadbitbake-54cfb6711c0263040437defcc0ed38f56f20f41a.tar.gz
bin/bitbake:
Add hack to register even handlers seen by the configuration file. We assume that we included at least one .inc file so INHERITS += got used. We should add a HANDLERS variable which will be responsible for installing the handlers
-rwxr-xr-xbin/bitbake7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/bitbake b/bin/bitbake
index 24405d077..2b11507e5 100755
--- a/bin/bitbake
+++ b/bin/bitbake
@@ -778,6 +778,13 @@ class BBCooker:
def parseConfigurationFile( self, afile ):
try:
self.configuration.data = bb.parse.handle( afile, self.configuration.data )
+
+ # Add the handlers we inherited by INHERITS
+ # 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))
+
except IOError:
bb.fatal( "Unable to open %s" % afile )
except bb.parse.ParseError, details: