diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/sdkext/files/myapp_cmake/CMakeLists.txt | 2 | ||||
-rw-r--r-- | meta/lib/oeqa/selftest/cases/devtool.py | 10 |
2 files changed, 9 insertions, 3 deletions
diff --git a/meta/lib/oeqa/sdkext/files/myapp_cmake/CMakeLists.txt b/meta/lib/oeqa/sdkext/files/myapp_cmake/CMakeLists.txt index 19d773dd63..b31f1622e2 100644 --- a/meta/lib/oeqa/sdkext/files/myapp_cmake/CMakeLists.txt +++ b/meta/lib/oeqa/sdkext/files/myapp_cmake/CMakeLists.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | cmake_minimum_required (VERSION 2.6) | 1 | cmake_minimum_required (VERSION 3.10) |
2 | project (myapp) | 2 | project (myapp) |
3 | # The version number. | 3 | # The version number. |
4 | set (myapp_VERSION_MAJOR 1) | 4 | set (myapp_VERSION_MAJOR 1) |
diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py index 05f228f03e..9fc3eaa311 100644 --- a/meta/lib/oeqa/selftest/cases/devtool.py +++ b/meta/lib/oeqa/selftest/cases/devtool.py | |||
@@ -416,7 +416,7 @@ class DevtoolAddTests(DevtoolBase): | |||
416 | test_file_dir_full = os.path.join(test_file_package_root, test_file_dir) | 416 | test_file_dir_full = os.path.join(test_file_package_root, test_file_dir) |
417 | bb.utils.mkdirhier(test_file_dir_full) | 417 | bb.utils.mkdirhier(test_file_dir_full) |
418 | with open(os.path.join(test_file_dir_full, test_file_name), "w") as f: | 418 | with open(os.path.join(test_file_dir_full, test_file_name), "w") as f: |
419 | f.write(test_file_content) | 419 | f.write(test_file_content) |
420 | bin_package_path = os.path.join(tempdir, "%s.tar.gz" % pn) | 420 | bin_package_path = os.path.join(tempdir, "%s.tar.gz" % pn) |
421 | runCmd("tar czf %s -C %s ." % (bin_package_path, test_file_package_root)) | 421 | runCmd("tar czf %s -C %s ." % (bin_package_path, test_file_package_root)) |
422 | 422 | ||
@@ -519,7 +519,13 @@ class DevtoolAddTests(DevtoolBase): | |||
519 | # normally cover, which triggers the installed-vs-shipped QA test we have | 519 | # normally cover, which triggers the installed-vs-shipped QA test we have |
520 | # within do_package | 520 | # within do_package |
521 | recipefile = '%s/recipes/libftdi/libftdi_%s.bb' % (self.workspacedir, version) | 521 | recipefile = '%s/recipes/libftdi/libftdi_%s.bb' % (self.workspacedir, version) |
522 | result = runCmd('recipetool setvar %s EXTRA_OECMAKE -- \'-DPYTHON_BINDINGS=OFF -DLIBFTDI_CMAKE_CONFIG_DIR=${datadir}/cmake/Modules\'' % recipefile) | 522 | # There is no upstream release that supports building with CMake 4+ yet, so we explicitly |
523 | # set the policy minimum version via EXTRA_OECMAKE. That's easier than applying backported | ||
524 | # patches. | ||
525 | result = runCmd( | ||
526 | "recipetool setvar %s EXTRA_OECMAKE -- '-DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DPYTHON_BINDINGS=OFF -DLIBFTDI_CMAKE_CONFIG_DIR=${datadir}/cmake/Modules'" | ||
527 | % recipefile | ||
528 | ) | ||
523 | with open(recipefile, 'a') as f: | 529 | with open(recipefile, 'a') as f: |
524 | f.write('\nFILES:${PN}-dev += "${datadir}/cmake/Modules"\n') | 530 | f.write('\nFILES:${PN}-dev += "${datadir}/cmake/Modules"\n') |
525 | # We don't have the ability to pick up this dependency automatically yet... | 531 | # We don't have the ability to pick up this dependency automatically yet... |