diff options
-rw-r--r-- | meta/classes/base.bbclass | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 2468b03cce..10cb84ac91 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -284,7 +284,7 @@ def buildcfg_neededvars(d): | |||
284 | 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)) | 284 | 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)) |
285 | 285 | ||
286 | addhandler base_eventhandler | 286 | addhandler base_eventhandler |
287 | base_eventhandler[eventmask] = "bb.event.ConfigParsed bb.event.BuildStarted" | 287 | base_eventhandler[eventmask] = "bb.event.ConfigParsed bb.event.BuildStarted bb.event.RecipePreFinalise" |
288 | python base_eventhandler() { | 288 | python base_eventhandler() { |
289 | if isinstance(e, bb.event.ConfigParsed): | 289 | if isinstance(e, bb.event.ConfigParsed): |
290 | e.data.setVar("NATIVELSBSTRING", lsb_distro_identifier(e.data)) | 290 | e.data.setVar("NATIVELSBSTRING", lsb_distro_identifier(e.data)) |
@@ -309,6 +309,18 @@ python base_eventhandler() { | |||
309 | 309 | ||
310 | statusheader = e.data.getVar('BUILDCFG_HEADER', True) | 310 | statusheader = e.data.getVar('BUILDCFG_HEADER', True) |
311 | bb.plain('\n%s\n%s\n' % (statusheader, '\n'.join(statuslines))) | 311 | bb.plain('\n%s\n%s\n' % (statusheader, '\n'.join(statuslines))) |
312 | |||
313 | # This code is to silence warnings where the SDK variables overwrite the | ||
314 | # target ones and we'd see dulpicate key names overwriting each other | ||
315 | # for various PREFERRED_PROVIDERS | ||
316 | if isinstance(e, bb.event.RecipePreFinalise): | ||
317 | if e.data.getVar("TARGET_PREFIX", True) == e.data.getVar("SDK_PREFIX", True): | ||
318 | e.data.delVar("PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils") | ||
319 | e.data.delVar("PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-initial") | ||
320 | e.data.delVar("PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc") | ||
321 | e.data.delVar("PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++") | ||
322 | e.data.delVar("PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs") | ||
323 | |||
312 | } | 324 | } |
313 | 325 | ||
314 | addtask configure after do_patch | 326 | addtask configure after do_patch |