1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 05:29:32 +00:00

bitbake: bitbake: Add MultiConfigParsed event

There are some cases where the metadata needs to be aware a multiconfig build
is happening and have access to the multiconfig data stores to merge data into
the common build. This adds such an event allowing access to these datastores.

(Bitbake rev: 160e47f5df90850e64dcb857c81a5039abc9235f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2017-07-06 12:53:33 +01:00
parent 754c030069
commit bca4396106
3 changed files with 9 additions and 0 deletions
+2
View File
@@ -294,6 +294,8 @@ class CookerDataBuilder(object):
mcdata = self.parseConfigurationFiles(self.prefiles, self.postfiles, config) mcdata = self.parseConfigurationFiles(self.prefiles, self.postfiles, config)
bb.event.fire(bb.event.ConfigParsed(), mcdata) bb.event.fire(bb.event.ConfigParsed(), mcdata)
self.mcdata[config] = mcdata self.mcdata[config] = mcdata
if multiconfig:
bb.event.fire(bb.event.MultiConfigParsed(self.mcdata), self.data)
except (SyntaxError, bb.BBHandledException): except (SyntaxError, bb.BBHandledException):
raise bb.BBHandledException raise bb.BBHandledException
+6
View File
@@ -358,6 +358,12 @@ class OperationProgress(Event):
class ConfigParsed(Event): class ConfigParsed(Event):
"""Configuration Parsing Complete""" """Configuration Parsing Complete"""
class MultiConfigParsed(Event):
"""Multi-Config Parsing Complete"""
def __init__(self, mcdata):
self.mcdata = mcdata
Event.__init__(self)
class RecipeEvent(Event): class RecipeEvent(Event):
def __init__(self, fn): def __init__(self, fn):
self.fn = fn self.fn = fn
+1
View File
@@ -664,6 +664,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
bb.event.MetadataEvent, bb.event.MetadataEvent,
bb.event.StampUpdate, bb.event.StampUpdate,
bb.event.ConfigParsed, bb.event.ConfigParsed,
bb.event.MultiConfigParsed,
bb.event.RecipeParsed, bb.event.RecipeParsed,
bb.event.RecipePreFinalise, bb.event.RecipePreFinalise,
bb.runqueue.runQueueEvent, bb.runqueue.runQueueEvent,