From 54cfb6711c0263040437defcc0ed38f56f20f41a Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 17 Apr 2006 20:08:00 +0000 Subject: [PATCH] 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 --- bin/bitbake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/bitbake b/bin/bitbake index 24405d07..2b11507e 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: -- 2.20.1