diff options
| -rw-r--r-- | meta/classes/base.bbclass | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 5fc92718a4..dad198f1d9 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
| @@ -462,6 +462,17 @@ python () { | |||
| 462 | d.appendVarFlag('do_package_setscene', 'depends', ' virtual/fakeroot-native:do_populate_sysroot') | 462 | d.appendVarFlag('do_package_setscene', 'depends', ' virtual/fakeroot-native:do_populate_sysroot') |
| 463 | d.setVarFlag('do_devshell', 'fakeroot', '1') | 463 | d.setVarFlag('do_devshell', 'fakeroot', '1') |
| 464 | d.appendVarFlag('do_devshell', 'depends', ' virtual/fakeroot-native:do_populate_sysroot') | 464 | d.appendVarFlag('do_devshell', 'depends', ' virtual/fakeroot-native:do_populate_sysroot') |
| 465 | |||
| 466 | need_machine = d.getVar('COMPATIBLE_MACHINE', True) | ||
| 467 | if need_machine: | ||
| 468 | import re | ||
| 469 | compat_machines = (d.getVar('MACHINEOVERRIDES', True) or "").split(":") | ||
| 470 | for m in compat_machines: | ||
| 471 | if re.match(need_machine, m): | ||
| 472 | break | ||
| 473 | else: | ||
| 474 | raise bb.parse.SkipPackage("incompatible with machine %s (not in COMPATIBLE_MACHINE)" % d.getVar('MACHINE', True)) | ||
| 475 | |||
| 465 | source_mirror_fetch = d.getVar('SOURCE_MIRROR_FETCH', 0) | 476 | source_mirror_fetch = d.getVar('SOURCE_MIRROR_FETCH', 0) |
| 466 | if not source_mirror_fetch: | 477 | if not source_mirror_fetch: |
| 467 | need_host = d.getVar('COMPATIBLE_HOST', True) | 478 | need_host = d.getVar('COMPATIBLE_HOST', True) |
| @@ -471,17 +482,6 @@ python () { | |||
| 471 | if not re.match(need_host, this_host): | 482 | if not re.match(need_host, this_host): |
| 472 | raise bb.parse.SkipPackage("incompatible with host %s (not in COMPATIBLE_HOST)" % this_host) | 483 | raise bb.parse.SkipPackage("incompatible with host %s (not in COMPATIBLE_HOST)" % this_host) |
| 473 | 484 | ||
| 474 | need_machine = d.getVar('COMPATIBLE_MACHINE', True) | ||
| 475 | if need_machine: | ||
| 476 | import re | ||
| 477 | compat_machines = (d.getVar('MACHINEOVERRIDES', True) or "").split(":") | ||
| 478 | for m in compat_machines: | ||
| 479 | if re.match(need_machine, m): | ||
| 480 | break | ||
| 481 | else: | ||
| 482 | raise bb.parse.SkipPackage("incompatible with machine %s (not in COMPATIBLE_MACHINE)" % d.getVar('MACHINE', True)) | ||
| 483 | |||
| 484 | |||
| 485 | bad_licenses = (d.getVar('INCOMPATIBLE_LICENSE', True) or "").split() | 485 | bad_licenses = (d.getVar('INCOMPATIBLE_LICENSE', True) or "").split() |
| 486 | 486 | ||
| 487 | check_license = False if pn.startswith("nativesdk-") else True | 487 | check_license = False if pn.startswith("nativesdk-") else True |
