diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-06 14:14:52 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-07 13:53:07 +0100 |
| commit | 83ed3ccd0a0f0977f386747945f1684ab273039b (patch) | |
| tree | a9ac41a22b79af9879943d844b716eea343db2ca | |
| parent | 0c2c08a9a14257e55a09524407496f42222167bf (diff) | |
| download | poky-83ed3ccd0a0f0977f386747945f1684ab273039b.tar.gz | |
oeqa/selftest/bblock/fitimage/sstatetests: Fix changing MACHINE during the test
With config fragments, changing MACHINE in the test like this no
longer works. Use the forcevarable override to allow it to work.
This also needs a tweak to bitbake to work correctly, sent
seperately. Whilst ugly, this avoids the need to start changing
config fragments within oeqa right now.
(From OE-Core rev: 672a7f7d809e515d2eb52854ce97fcf8741236aa)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/bblock.py | 4 | ||||
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/fitimage.py | 26 | ||||
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/sstatetests.py | 34 |
3 files changed, 32 insertions, 32 deletions
diff --git a/meta/lib/oeqa/selftest/cases/bblock.py b/meta/lib/oeqa/selftest/cases/bblock.py index 2b62d2a0aa..cb99d32bb5 100644 --- a/meta/lib/oeqa/selftest/cases/bblock.py +++ b/meta/lib/oeqa/selftest/cases/bblock.py | |||
| @@ -122,11 +122,11 @@ class BBLock(OESelftestTestCase): | |||
| 122 | else: | 122 | else: |
| 123 | machine = "qemux86-64" | 123 | machine = "qemux86-64" |
| 124 | 124 | ||
| 125 | self.write_config('MACHINE = "%s"\n' % machine) | 125 | self.write_config('MACHINE:forcevariable = "%s"\n' % machine) |
| 126 | 126 | ||
| 127 | self.lock_recipes(recipes, tasks) | 127 | self.lock_recipes(recipes, tasks) |
| 128 | 128 | ||
| 129 | self.write_config('MACHINE = "%s"\n' % self.td["MACHINE"]) | 129 | self.write_config('MACHINE:forcevariable = "%s"\n' % self.td["MACHINE"]) |
| 130 | # modify quilt's do_compile task | 130 | # modify quilt's do_compile task |
| 131 | self.modify_tasks(recipes, tasks) | 131 | self.modify_tasks(recipes, tasks) |
| 132 | 132 | ||
diff --git a/meta/lib/oeqa/selftest/cases/fitimage.py b/meta/lib/oeqa/selftest/cases/fitimage.py index 3c40857747..195b9ee8b5 100644 --- a/meta/lib/oeqa/selftest/cases/fitimage.py +++ b/meta/lib/oeqa/selftest/cases/fitimage.py | |||
| @@ -787,7 +787,7 @@ FIT_CONF_PREFIX = "foo-" | |||
| 787 | 787 | ||
| 788 | config = """ | 788 | config = """ |
| 789 | DISTRO = "poky" | 789 | DISTRO = "poky" |
| 790 | MACHINE = "beaglebone-yocto" | 790 | MACHINE:forcevariable = "beaglebone-yocto" |
| 791 | """ | 791 | """ |
| 792 | self.write_config(config) | 792 | self.write_config(config) |
| 793 | 793 | ||
| @@ -828,7 +828,7 @@ MACHINE = "beaglebone-yocto" | |||
| 828 | """ | 828 | """ |
| 829 | config = """ | 829 | config = """ |
| 830 | # Enable creation of fitImage | 830 | # Enable creation of fitImage |
| 831 | MACHINE = "beaglebone-yocto" | 831 | MACHINE:forcevariable = "beaglebone-yocto" |
| 832 | # Add a devicetree overlay which does not need kernel sources | 832 | # Add a devicetree overlay which does not need kernel sources |
| 833 | PREFERRED_PROVIDER_virtual/dtb = "bbb-dtbs-as-ext" | 833 | PREFERRED_PROVIDER_virtual/dtb = "bbb-dtbs-as-ext" |
| 834 | """ | 834 | """ |
| @@ -855,7 +855,7 @@ PREFERRED_PROVIDER_virtual/dtb = "bbb-dtbs-as-ext" | |||
| 855 | # Generate a configuration section which gets included into the local.conf file | 855 | # Generate a configuration section which gets included into the local.conf file |
| 856 | config = """ | 856 | config = """ |
| 857 | # Enable creation of fitImage | 857 | # Enable creation of fitImage |
| 858 | MACHINE = "beaglebone-yocto" | 858 | MACHINE:forcevariable = "beaglebone-yocto" |
| 859 | UBOOT_SIGN_ENABLE = "1" | 859 | UBOOT_SIGN_ENABLE = "1" |
| 860 | UBOOT_SIGN_KEYDIR = "${TOPDIR}/signing-keys" | 860 | UBOOT_SIGN_KEYDIR = "${TOPDIR}/signing-keys" |
| 861 | UBOOT_SIGN_KEYNAME = "dev" | 861 | UBOOT_SIGN_KEYNAME = "dev" |
| @@ -903,7 +903,7 @@ FIT_CONF_DEFAULT_DTB = "am335x-bonegreen.dtb" | |||
| 903 | # Generate a configuration section which gets included into the local.conf file | 903 | # Generate a configuration section which gets included into the local.conf file |
| 904 | config = """ | 904 | config = """ |
| 905 | # Enable creation of fitImage | 905 | # Enable creation of fitImage |
| 906 | MACHINE = "beaglebone-yocto" | 906 | MACHINE:forcevariable = "beaglebone-yocto" |
| 907 | UBOOT_SIGN_ENABLE = "1" | 907 | UBOOT_SIGN_ENABLE = "1" |
| 908 | FIT_GENERATE_KEYS = "1" | 908 | FIT_GENERATE_KEYS = "1" |
| 909 | UBOOT_SIGN_KEYDIR = "${TOPDIR}/signing-keys" | 909 | UBOOT_SIGN_KEYDIR = "${TOPDIR}/signing-keys" |
| @@ -939,7 +939,7 @@ UBOOT_MKIMAGE_SIGN_ARGS = "-c 'a smart comment'" | |||
| 939 | 939 | ||
| 940 | config = """ | 940 | config = """ |
| 941 | DISTRO = "poky" | 941 | DISTRO = "poky" |
| 942 | MACHINE = "beaglebone-yocto" | 942 | MACHINE:forcevariable = "beaglebone-yocto" |
| 943 | INITRAMFS_IMAGE = "core-image-minimal-initramfs" | 943 | INITRAMFS_IMAGE = "core-image-minimal-initramfs" |
| 944 | INITRAMFS_SCRIPTS = "" | 944 | INITRAMFS_SCRIPTS = "" |
| 945 | UBOOT_MACHINE = "am335x_evm_defconfig" | 945 | UBOOT_MACHINE = "am335x_evm_defconfig" |
| @@ -993,7 +993,7 @@ FIT_HASH_ALG = "sha256" | |||
| 993 | 993 | ||
| 994 | config = """ | 994 | config = """ |
| 995 | DISTRO = "poky" | 995 | DISTRO = "poky" |
| 996 | MACHINE = "beaglebone-yocto" | 996 | MACHINE:forcevariable = "beaglebone-yocto" |
| 997 | INITRAMFS_IMAGE_BUNDLE = "1" | 997 | INITRAMFS_IMAGE_BUNDLE = "1" |
| 998 | INITRAMFS_IMAGE = "core-image-minimal-initramfs" | 998 | INITRAMFS_IMAGE = "core-image-minimal-initramfs" |
| 999 | INITRAMFS_SCRIPTS = "" | 999 | INITRAMFS_SCRIPTS = "" |
| @@ -1412,7 +1412,7 @@ class UBootFitImageTests(FitImageTestCase): | |||
| 1412 | """ | 1412 | """ |
| 1413 | config = """ | 1413 | config = """ |
| 1414 | # We need at least CONFIG_SPL_LOAD_FIT and CONFIG_SPL_OF_CONTROL set | 1414 | # We need at least CONFIG_SPL_LOAD_FIT and CONFIG_SPL_OF_CONTROL set |
| 1415 | MACHINE = "qemuarm" | 1415 | MACHINE:forcevariable = "qemuarm" |
| 1416 | UBOOT_MACHINE = "am57xx_evm_defconfig" | 1416 | UBOOT_MACHINE = "am57xx_evm_defconfig" |
| 1417 | SPL_BINARY = "MLO" | 1417 | SPL_BINARY = "MLO" |
| 1418 | 1418 | ||
| @@ -1451,7 +1451,7 @@ UBOOT_FIT_DESC = "A model description" | |||
| 1451 | config = """ | 1451 | config = """ |
| 1452 | # There's no U-boot defconfig with CONFIG_FIT_SIGNATURE yet, so we need at | 1452 | # There's no U-boot defconfig with CONFIG_FIT_SIGNATURE yet, so we need at |
| 1453 | # least CONFIG_SPL_LOAD_FIT and CONFIG_SPL_OF_CONTROL set | 1453 | # least CONFIG_SPL_LOAD_FIT and CONFIG_SPL_OF_CONTROL set |
| 1454 | MACHINE = "qemuarm" | 1454 | MACHINE:forcevariable = "qemuarm" |
| 1455 | UBOOT_MACHINE = "am57xx_evm_defconfig" | 1455 | UBOOT_MACHINE = "am57xx_evm_defconfig" |
| 1456 | SPL_BINARY = "MLO" | 1456 | SPL_BINARY = "MLO" |
| 1457 | # Enable creation and signing of the U-Boot fitImage | 1457 | # Enable creation and signing of the U-Boot fitImage |
| @@ -1498,7 +1498,7 @@ UBOOT_FIT_HASH_ALG = "sha256" | |||
| 1498 | config = """ | 1498 | config = """ |
| 1499 | # There's no U-boot deconfig with CONFIG_FIT_SIGNATURE yet, so we need at | 1499 | # There's no U-boot deconfig with CONFIG_FIT_SIGNATURE yet, so we need at |
| 1500 | # least CONFIG_SPL_LOAD_FIT and CONFIG_SPL_OF_CONTROL set | 1500 | # least CONFIG_SPL_LOAD_FIT and CONFIG_SPL_OF_CONTROL set |
| 1501 | MACHINE = "qemuarm" | 1501 | MACHINE:forcevariable = "qemuarm" |
| 1502 | UBOOT_MACHINE = "am57xx_evm_defconfig" | 1502 | UBOOT_MACHINE = "am57xx_evm_defconfig" |
| 1503 | SPL_BINARY = "MLO" | 1503 | SPL_BINARY = "MLO" |
| 1504 | # Enable creation and signing of the U-Boot fitImage | 1504 | # Enable creation and signing of the U-Boot fitImage |
| @@ -1546,7 +1546,7 @@ UBOOT_SIGN_KEYNAME = "cfg-oe-selftest" | |||
| 1546 | """ | 1546 | """ |
| 1547 | config = """ | 1547 | config = """ |
| 1548 | # We need at least CONFIG_SPL_LOAD_FIT and CONFIG_SPL_OF_CONTROL set | 1548 | # We need at least CONFIG_SPL_LOAD_FIT and CONFIG_SPL_OF_CONTROL set |
| 1549 | MACHINE = "qemuarm" | 1549 | MACHINE:forcevariable = "qemuarm" |
| 1550 | UBOOT_MACHINE = "am57xx_evm_defconfig" | 1550 | UBOOT_MACHINE = "am57xx_evm_defconfig" |
| 1551 | SPL_BINARY = "MLO" | 1551 | SPL_BINARY = "MLO" |
| 1552 | 1552 | ||
| @@ -1612,7 +1612,7 @@ UBOOT_FIT_ARM_TRUSTED_FIRMWARE_ENTRYPOINT = "0x80280000" | |||
| 1612 | config = """ | 1612 | config = """ |
| 1613 | # There's no U-boot deconfig with CONFIG_FIT_SIGNATURE yet, so we need at | 1613 | # There's no U-boot deconfig with CONFIG_FIT_SIGNATURE yet, so we need at |
| 1614 | # least CONFIG_SPL_LOAD_FIT and CONFIG_SPL_OF_CONTROL set | 1614 | # least CONFIG_SPL_LOAD_FIT and CONFIG_SPL_OF_CONTROL set |
| 1615 | MACHINE = "qemuarm" | 1615 | MACHINE:forcevariable = "qemuarm" |
| 1616 | UBOOT_MACHINE = "am57xx_evm_defconfig" | 1616 | UBOOT_MACHINE = "am57xx_evm_defconfig" |
| 1617 | SPL_BINARY = "MLO" | 1617 | SPL_BINARY = "MLO" |
| 1618 | # Enable creation and signing of the U-Boot fitImage | 1618 | # Enable creation and signing of the U-Boot fitImage |
| @@ -1676,7 +1676,7 @@ UBOOT_FIT_ARM_TRUSTED_FIRMWARE_ENTRYPOINT = "0x80280000" | |||
| 1676 | """ | 1676 | """ |
| 1677 | config = """ | 1677 | config = """ |
| 1678 | # Enable creation of fitImage | 1678 | # Enable creation of fitImage |
| 1679 | MACHINE = "beaglebone-yocto" | 1679 | MACHINE:forcevariable = "beaglebone-yocto" |
| 1680 | UBOOT_SIGN_ENABLE = "1" | 1680 | UBOOT_SIGN_ENABLE = "1" |
| 1681 | UBOOT_SIGN_KEYDIR = "${TOPDIR}/signing-keys" | 1681 | UBOOT_SIGN_KEYDIR = "${TOPDIR}/signing-keys" |
| 1682 | UBOOT_SIGN_KEYNAME = "the-kernel-config-key" | 1682 | UBOOT_SIGN_KEYNAME = "the-kernel-config-key" |
| @@ -1715,7 +1715,7 @@ FIT_SIGN_INDIVIDUAL = "1" | |||
| 1715 | config = """ | 1715 | config = """ |
| 1716 | # There's no U-boot defconfig with CONFIG_FIT_SIGNATURE yet, so we need at | 1716 | # There's no U-boot defconfig with CONFIG_FIT_SIGNATURE yet, so we need at |
| 1717 | # least CONFIG_SPL_LOAD_FIT and CONFIG_SPL_OF_CONTROL set | 1717 | # least CONFIG_SPL_LOAD_FIT and CONFIG_SPL_OF_CONTROL set |
| 1718 | MACHINE = "qemuarm" | 1718 | MACHINE:forcevariable = "qemuarm" |
| 1719 | UBOOT_MACHINE = "am57xx_evm_defconfig" | 1719 | UBOOT_MACHINE = "am57xx_evm_defconfig" |
| 1720 | # Enable creation and signing of the U-Boot fitImage (no SPL) | 1720 | # Enable creation and signing of the U-Boot fitImage (no SPL) |
| 1721 | UBOOT_FITIMAGE_ENABLE = "1" | 1721 | UBOOT_FITIMAGE_ENABLE = "1" |
diff --git a/meta/lib/oeqa/selftest/cases/sstatetests.py b/meta/lib/oeqa/selftest/cases/sstatetests.py index 08f94b168a..44dd674a32 100644 --- a/meta/lib/oeqa/selftest/cases/sstatetests.py +++ b/meta/lib/oeqa/selftest/cases/sstatetests.py | |||
| @@ -336,20 +336,20 @@ class SStateCacheManagement(SStateBase): | |||
| 336 | def test_sstate_cache_management_script_using_pr_3(self): | 336 | def test_sstate_cache_management_script_using_pr_3(self): |
| 337 | global_config = [] | 337 | global_config = [] |
| 338 | target_config = [] | 338 | target_config = [] |
| 339 | global_config.append('MACHINE = "qemux86-64"') | 339 | global_config.append('MACHINE:forcevariable = "qemux86-64"') |
| 340 | target_config.append('PR = "0"') | 340 | target_config.append('PR = "0"') |
| 341 | global_config.append(global_config[0]) | 341 | global_config.append(global_config[0]) |
| 342 | target_config.append('PR = "1"') | 342 | target_config.append('PR = "1"') |
| 343 | global_config.append('MACHINE = "qemux86"') | 343 | global_config.append('MACHINE:forcevariable = "qemux86"') |
| 344 | target_config.append('PR = "1"') | 344 | target_config.append('PR = "1"') |
| 345 | self.run_test_sstate_cache_management_script('m4', global_config, target_config, ignore_patterns=['populate_lic']) | 345 | self.run_test_sstate_cache_management_script('m4', global_config, target_config, ignore_patterns=['populate_lic']) |
| 346 | 346 | ||
| 347 | def test_sstate_cache_management_script_using_machine(self): | 347 | def test_sstate_cache_management_script_using_machine(self): |
| 348 | global_config = [] | 348 | global_config = [] |
| 349 | target_config = [] | 349 | target_config = [] |
| 350 | global_config.append('MACHINE = "qemux86-64"') | 350 | global_config.append('MACHINE:forcevariable = "qemux86-64"') |
| 351 | target_config.append('') | 351 | target_config.append('') |
| 352 | global_config.append('MACHINE = "qemux86"') | 352 | global_config.append('MACHINE:forcevariable = "qemux86"') |
| 353 | target_config.append('') | 353 | target_config.append('') |
| 354 | self.run_test_sstate_cache_management_script('m4', global_config, target_config, ignore_patterns=['populate_lic']) | 354 | self.run_test_sstate_cache_management_script('m4', global_config, target_config, ignore_patterns=['populate_lic']) |
| 355 | 355 | ||
| @@ -357,7 +357,7 @@ class SStateHashSameSigs(SStateBase): | |||
| 357 | def sstate_hashtest(self, sdkmachine): | 357 | def sstate_hashtest(self, sdkmachine): |
| 358 | 358 | ||
| 359 | self.write_config(""" | 359 | self.write_config(""" |
| 360 | MACHINE = "qemux86" | 360 | MACHINE:forcevariable = "qemux86" |
| 361 | TMPDIR = "${TOPDIR}/tmp-sstatesamehash" | 361 | TMPDIR = "${TOPDIR}/tmp-sstatesamehash" |
| 362 | BUILD_ARCH = "x86_64" | 362 | BUILD_ARCH = "x86_64" |
| 363 | BUILD_OS = "linux" | 363 | BUILD_OS = "linux" |
| @@ -368,7 +368,7 @@ BB_SIGNATURE_HANDLER = "OEBasicHash" | |||
| 368 | self.track_for_cleanup(self.topdir + "/tmp-sstatesamehash") | 368 | self.track_for_cleanup(self.topdir + "/tmp-sstatesamehash") |
| 369 | bitbake("core-image-weston -S none") | 369 | bitbake("core-image-weston -S none") |
| 370 | self.write_config(""" | 370 | self.write_config(""" |
| 371 | MACHINE = "qemux86" | 371 | MACHINE:forcevariable = "qemux86" |
| 372 | TMPDIR = "${TOPDIR}/tmp-sstatesamehash2" | 372 | TMPDIR = "${TOPDIR}/tmp-sstatesamehash2" |
| 373 | BUILD_ARCH = "i686" | 373 | BUILD_ARCH = "i686" |
| 374 | BUILD_OS = "linux" | 374 | BUILD_OS = "linux" |
| @@ -454,13 +454,13 @@ class SStateHashSameSigs2(SStateBase): | |||
| 454 | 454 | ||
| 455 | configA = """ | 455 | configA = """ |
| 456 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash\" | 456 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash\" |
| 457 | MACHINE = \"qemux86-64\" | 457 | MACHINE:forcevariable = \"qemux86-64\" |
| 458 | BB_SIGNATURE_HANDLER = "OEBasicHash" | 458 | BB_SIGNATURE_HANDLER = "OEBasicHash" |
| 459 | """ | 459 | """ |
| 460 | #OLDEST_KERNEL is arch specific so set to a different value here for testing | 460 | #OLDEST_KERNEL is arch specific so set to a different value here for testing |
| 461 | configB = """ | 461 | configB = """ |
| 462 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash2\" | 462 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash2\" |
| 463 | MACHINE = \"qemuarm\" | 463 | MACHINE:forcevariable = \"qemuarm\" |
| 464 | OLDEST_KERNEL = \"3.3.0\" | 464 | OLDEST_KERNEL = \"3.3.0\" |
| 465 | BB_SIGNATURE_HANDLER = "OEBasicHash" | 465 | BB_SIGNATURE_HANDLER = "OEBasicHash" |
| 466 | ERROR_QA:append = " somenewoption" | 466 | ERROR_QA:append = " somenewoption" |
| @@ -475,7 +475,7 @@ WARN_QA:append = " someotheroption" | |||
| 475 | 475 | ||
| 476 | configA = """ | 476 | configA = """ |
| 477 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash\" | 477 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash\" |
| 478 | MACHINE = \"qemux86-64\" | 478 | MACHINE:forcevariable = \"qemux86-64\" |
| 479 | require conf/multilib.conf | 479 | require conf/multilib.conf |
| 480 | MULTILIBS = \"multilib:lib32\" | 480 | MULTILIBS = \"multilib:lib32\" |
| 481 | DEFAULTTUNE:virtclass-multilib-lib32 = \"x86\" | 481 | DEFAULTTUNE:virtclass-multilib-lib32 = \"x86\" |
| @@ -483,7 +483,7 @@ BB_SIGNATURE_HANDLER = "OEBasicHash" | |||
| 483 | """ | 483 | """ |
| 484 | configB = """ | 484 | configB = """ |
| 485 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash2\" | 485 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash2\" |
| 486 | MACHINE = \"qemuarm\" | 486 | MACHINE:forcevariable = \"qemuarm\" |
| 487 | require conf/multilib.conf | 487 | require conf/multilib.conf |
| 488 | MULTILIBS = \"\" | 488 | MULTILIBS = \"\" |
| 489 | BB_SIGNATURE_HANDLER = "OEBasicHash" | 489 | BB_SIGNATURE_HANDLER = "OEBasicHash" |
| @@ -500,7 +500,7 @@ class SStateHashSameSigs3(SStateBase): | |||
| 500 | 500 | ||
| 501 | self.write_config(""" | 501 | self.write_config(""" |
| 502 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash\" | 502 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash\" |
| 503 | MACHINE = \"qemux86\" | 503 | MACHINE:forcevariable = \"qemux86\" |
| 504 | require conf/multilib.conf | 504 | require conf/multilib.conf |
| 505 | MULTILIBS = "multilib:lib32" | 505 | MULTILIBS = "multilib:lib32" |
| 506 | DEFAULTTUNE:virtclass-multilib-lib32 = "x86" | 506 | DEFAULTTUNE:virtclass-multilib-lib32 = "x86" |
| @@ -510,7 +510,7 @@ BB_SIGNATURE_HANDLER = "OEBasicHash" | |||
| 510 | bitbake("world meta-toolchain -S none") | 510 | bitbake("world meta-toolchain -S none") |
| 511 | self.write_config(""" | 511 | self.write_config(""" |
| 512 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash2\" | 512 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash2\" |
| 513 | MACHINE = \"qemux86copy\" | 513 | MACHINE:forcevariable = \"qemux86copy\" |
| 514 | require conf/multilib.conf | 514 | require conf/multilib.conf |
| 515 | MULTILIBS = "multilib:lib32" | 515 | MULTILIBS = "multilib:lib32" |
| 516 | DEFAULTTUNE:virtclass-multilib-lib32 = "x86" | 516 | DEFAULTTUNE:virtclass-multilib-lib32 = "x86" |
| @@ -546,7 +546,7 @@ BB_SIGNATURE_HANDLER = "OEBasicHash" | |||
| 546 | 546 | ||
| 547 | self.write_config(""" | 547 | self.write_config(""" |
| 548 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash\" | 548 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash\" |
| 549 | MACHINE = \"qemux86\" | 549 | MACHINE:forcevariable = \"qemux86\" |
| 550 | require conf/multilib.conf | 550 | require conf/multilib.conf |
| 551 | MULTILIBS = "multilib:lib32" | 551 | MULTILIBS = "multilib:lib32" |
| 552 | DEFAULTTUNE:virtclass-multilib-lib32 = "x86" | 552 | DEFAULTTUNE:virtclass-multilib-lib32 = "x86" |
| @@ -556,7 +556,7 @@ BB_SIGNATURE_HANDLER = "OEBasicHash" | |||
| 556 | bitbake("binutils-native -S none") | 556 | bitbake("binutils-native -S none") |
| 557 | self.write_config(""" | 557 | self.write_config(""" |
| 558 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash2\" | 558 | TMPDIR = \"${TOPDIR}/tmp-sstatesamehash2\" |
| 559 | MACHINE = \"qemux86copy\" | 559 | MACHINE:forcevariable = \"qemux86copy\" |
| 560 | BB_SIGNATURE_HANDLER = "OEBasicHash" | 560 | BB_SIGNATURE_HANDLER = "OEBasicHash" |
| 561 | """) | 561 | """) |
| 562 | self.track_for_cleanup(self.topdir + "/tmp-sstatesamehash2") | 562 | self.track_for_cleanup(self.topdir + "/tmp-sstatesamehash2") |
| @@ -707,7 +707,7 @@ class SStateFindSiginfo(SStateBase): | |||
| 707 | """ | 707 | """ |
| 708 | self.write_config(""" | 708 | self.write_config(""" |
| 709 | TMPDIR = \"${TOPDIR}/tmp-sstates-findsiginfo\" | 709 | TMPDIR = \"${TOPDIR}/tmp-sstates-findsiginfo\" |
| 710 | MACHINE = \"qemux86-64\" | 710 | MACHINE:forcevariable = \"qemux86-64\" |
| 711 | require conf/multilib.conf | 711 | require conf/multilib.conf |
| 712 | MULTILIBS = "multilib:lib32" | 712 | MULTILIBS = "multilib:lib32" |
| 713 | DEFAULTTUNE:virtclass-multilib-lib32 = "x86" | 713 | DEFAULTTUNE:virtclass-multilib-lib32 = "x86" |
| @@ -957,13 +957,13 @@ class SStateMirrors(SStateCheckObjectPresence): | |||
| 957 | if check_cdn: | 957 | if check_cdn: |
| 958 | self.config_sstate(True) | 958 | self.config_sstate(True) |
| 959 | self.append_config(""" | 959 | self.append_config(""" |
| 960 | MACHINE = "{}" | 960 | MACHINE:forcevariable = "{}" |
| 961 | BB_HASHSERVE_UPSTREAM = "hashserv.yoctoproject.org:8686" | 961 | BB_HASHSERVE_UPSTREAM = "hashserv.yoctoproject.org:8686" |
| 962 | SSTATE_MIRRORS ?= "file://.* http://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH" | 962 | SSTATE_MIRRORS ?= "file://.* http://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH" |
| 963 | """.format(machine)) | 963 | """.format(machine)) |
| 964 | else: | 964 | else: |
| 965 | self.append_config(""" | 965 | self.append_config(""" |
| 966 | MACHINE = "{}" | 966 | MACHINE:forcevariable = "{}" |
| 967 | """.format(machine)) | 967 | """.format(machine)) |
| 968 | result = bitbake("-DD -n {}".format(targets)) | 968 | result = bitbake("-DD -n {}".format(targets)) |
| 969 | bitbake("-S none {}".format(targets)) | 969 | bitbake("-S none {}".format(targets)) |
