diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/base.bbclass | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 3762c8addc..27a28b8b8c 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -220,7 +220,7 @@ def buildcfg_neededvars(d): | |||
220 | bb.fatal('The following variable(s) were not set: %s\nPlease set them directly, or choose a MACHINE or DISTRO that sets them.' % ', '.join(pesteruser)) | 220 | bb.fatal('The following variable(s) were not set: %s\nPlease set them directly, or choose a MACHINE or DISTRO that sets them.' % ', '.join(pesteruser)) |
221 | 221 | ||
222 | addhandler base_eventhandler | 222 | addhandler base_eventhandler |
223 | base_eventhandler[eventmask] = "bb.event.ConfigParsed bb.event.BuildStarted bb.event.RecipePreFinalise bb.runqueue.sceneQueueComplete bb.event.RecipeParsed" | 223 | base_eventhandler[eventmask] = "bb.event.ConfigParsed bb.event.MultiConfigParsed bb.event.BuildStarted bb.event.RecipePreFinalise bb.runqueue.sceneQueueComplete bb.event.RecipeParsed" |
224 | python base_eventhandler() { | 224 | python base_eventhandler() { |
225 | import bb.runqueue | 225 | import bb.runqueue |
226 | 226 | ||
@@ -235,6 +235,16 @@ python base_eventhandler() { | |||
235 | setup_hosttools_dir(d.getVar('HOSTTOOLS_DIR'), 'HOSTTOOLS', d) | 235 | setup_hosttools_dir(d.getVar('HOSTTOOLS_DIR'), 'HOSTTOOLS', d) |
236 | setup_hosttools_dir(d.getVar('HOSTTOOLS_DIR'), 'HOSTTOOLS_NONFATAL', d, fatal=False) | 236 | setup_hosttools_dir(d.getVar('HOSTTOOLS_DIR'), 'HOSTTOOLS_NONFATAL', d, fatal=False) |
237 | 237 | ||
238 | if isinstance(e, bb.event.MultiConfigParsed): | ||
239 | # We need to expand SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS in each of the multiconfig data stores | ||
240 | # own contexts so the variables get expanded correctly for that arch, then inject back into | ||
241 | # the main data store. | ||
242 | deps = [] | ||
243 | for config in e.mcdata: | ||
244 | deps.append(e.mcdata[config].getVar("SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS")) | ||
245 | deps = " ".join(deps) | ||
246 | e.mcdata[''].setVar("SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS", deps) | ||
247 | |||
238 | if isinstance(e, bb.event.BuildStarted): | 248 | if isinstance(e, bb.event.BuildStarted): |
239 | localdata = bb.data.createCopy(e.data) | 249 | localdata = bb.data.createCopy(e.data) |
240 | statuslines = [] | 250 | statuslines = [] |