summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/devtool.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/devtool.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/devtool.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py
index d5715b328b..580c567be3 100644
--- a/meta/lib/oeqa/selftest/cases/devtool.py
+++ b/meta/lib/oeqa/selftest/cases/devtool.py
@@ -406,7 +406,7 @@ class DevtoolAddTests(DevtoolBase):
406 test_file_dir_full = os.path.join(test_file_package_root, test_file_dir) 406 test_file_dir_full = os.path.join(test_file_package_root, test_file_dir)
407 bb.utils.mkdirhier(test_file_dir_full) 407 bb.utils.mkdirhier(test_file_dir_full)
408 with open(os.path.join(test_file_dir_full, test_file_name), "w") as f: 408 with open(os.path.join(test_file_dir_full, test_file_name), "w") as f:
409 f.write(test_file_content) 409 f.write(test_file_content)
410 bin_package_path = os.path.join(tempdir, "%s.tar.gz" % pn) 410 bin_package_path = os.path.join(tempdir, "%s.tar.gz" % pn)
411 runCmd("tar czf %s -C %s ." % (bin_package_path, test_file_package_root)) 411 runCmd("tar czf %s -C %s ." % (bin_package_path, test_file_package_root))
412 412
@@ -509,7 +509,13 @@ class DevtoolAddTests(DevtoolBase):
509 # normally cover, which triggers the installed-vs-shipped QA test we have 509 # normally cover, which triggers the installed-vs-shipped QA test we have
510 # within do_package 510 # within do_package
511 recipefile = '%s/recipes/libftdi/libftdi_%s.bb' % (self.workspacedir, version) 511 recipefile = '%s/recipes/libftdi/libftdi_%s.bb' % (self.workspacedir, version)
512 result = runCmd('recipetool setvar %s EXTRA_OECMAKE -- \'-DPYTHON_BINDINGS=OFF -DLIBFTDI_CMAKE_CONFIG_DIR=${datadir}/cmake/Modules\'' % recipefile) 512 # There is no upstream release that supports building with CMake 4+ yet, so we explicitly
513 # set the policy minimum version via EXTRA_OECMAKE. That's easier than applying backported
514 # patches.
515 result = runCmd(
516 "recipetool setvar %s EXTRA_OECMAKE -- '-DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DPYTHON_BINDINGS=OFF -DLIBFTDI_CMAKE_CONFIG_DIR=${datadir}/cmake/Modules'"
517 % recipefile
518 )
513 with open(recipefile, 'a') as f: 519 with open(recipefile, 'a') as f:
514 f.write('\nFILES:${PN}-dev += "${datadir}/cmake/Modules"\n') 520 f.write('\nFILES:${PN}-dev += "${datadir}/cmake/Modules"\n')
515 # We don't have the ability to pick up this dependency automatically yet... 521 # We don't have the ability to pick up this dependency automatically yet...