summaryrefslogtreecommitdiffstats
path: root/meta/classes-global/base.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes-global/base.bbclass')
-rw-r--r--meta/classes-global/base.bbclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/classes-global/base.bbclass b/meta/classes-global/base.bbclass
index 101ecdcf0f..c8268abcdf 100644
--- a/meta/classes-global/base.bbclass
+++ b/meta/classes-global/base.bbclass
@@ -330,7 +330,7 @@ python base_eventhandler() {
330 # particular. 330 # particular.
331 # 331 #
332 pn = d.getVar('PN') 332 pn = d.getVar('PN')
333 source_mirror_fetch = d.getVar('SOURCE_MIRROR_FETCH', False) 333 source_mirror_fetch = bb.utils.to_boolean(d.getVar('SOURCE_MIRROR_FETCH', False))
334 if not source_mirror_fetch: 334 if not source_mirror_fetch:
335 provs = (d.getVar("PROVIDES") or "").split() 335 provs = (d.getVar("PROVIDES") or "").split()
336 multiprovidersallowed = (d.getVar("BB_MULTI_PROVIDER_ALLOWED") or "").split() 336 multiprovidersallowed = (d.getVar("BB_MULTI_PROVIDER_ALLOWED") or "").split()
@@ -553,7 +553,7 @@ python () {
553 d.appendVarFlag('do_devshell', 'depends', ' virtual/fakeroot-native:do_populate_sysroot') 553 d.appendVarFlag('do_devshell', 'depends', ' virtual/fakeroot-native:do_populate_sysroot')
554 554
555 need_machine = d.getVar('COMPATIBLE_MACHINE') 555 need_machine = d.getVar('COMPATIBLE_MACHINE')
556 if need_machine and not d.getVar('PARSE_ALL_RECIPES', False): 556 if need_machine and not bb.utils.to_boolean(d.getVar('PARSE_ALL_RECIPES', False)):
557 import re 557 import re
558 compat_machines = (d.getVar('MACHINEOVERRIDES') or "").split(":") 558 compat_machines = (d.getVar('MACHINEOVERRIDES') or "").split(":")
559 for m in compat_machines: 559 for m in compat_machines:
@@ -562,7 +562,8 @@ python () {
562 else: 562 else:
563 raise bb.parse.SkipRecipe("incompatible with machine %s (not in COMPATIBLE_MACHINE)" % d.getVar('MACHINE')) 563 raise bb.parse.SkipRecipe("incompatible with machine %s (not in COMPATIBLE_MACHINE)" % d.getVar('MACHINE'))
564 564
565 source_mirror_fetch = d.getVar('SOURCE_MIRROR_FETCH', False) or d.getVar('PARSE_ALL_RECIPES', False) 565 source_mirror_fetch = bb.utils.to_boolean(d.getVar('SOURCE_MIRROR_FETCH', False)) or \
566 bb.utils.to_boolean(d.getVar('PARSE_ALL_RECIPES', False))
566 if not source_mirror_fetch: 567 if not source_mirror_fetch:
567 need_host = d.getVar('COMPATIBLE_HOST') 568 need_host = d.getVar('COMPATIBLE_HOST')
568 if need_host: 569 if need_host: