summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2025-02-10 19:27:34 +0100
committerSteve Sakoman <steve@sakoman.com>2025-02-15 06:04:44 -0800
commitd49f124652a78bea033358aac079e1b6d81c7000 (patch)
tree427d1f61f9bcdfb4b49388499baf88c608d957f5 /meta/classes
parentbd51ce99cbba7a1efc0347470aef68966d9740ed (diff)
downloadpoky-d49f124652a78bea033358aac079e1b6d81c7000.tar.gz
cmake: apply parallel build settings to ptest tasks
ptest compile and install tasks do not have parallel build settings for cmake. On powerful build machines this can cause overload situations and oomkills. Observed when building qtgrpc with ptest generally enabled in distro. Having this in ptest class is suboptimal, but creating ptest-cmake class just for these two variables is probably overkill. (From OE-Core rev: 3c311fbf0c2090268e9b83123d762b05b61b4074) (From OE-Core rev: bd12abeff6ee14385fba63fa5ba15d9fadec4d0e) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/cmake.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 7ec6ca58fc..0c0d719829 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -62,6 +62,8 @@ EXTRA_OECMAKE:append = " ${PACKAGECONFIG_CONFARGS}"
62export CMAKE_BUILD_PARALLEL_LEVEL 62export CMAKE_BUILD_PARALLEL_LEVEL
63CMAKE_BUILD_PARALLEL_LEVEL:task-compile = "${@oe.utils.parallel_make(d, False)}" 63CMAKE_BUILD_PARALLEL_LEVEL:task-compile = "${@oe.utils.parallel_make(d, False)}"
64CMAKE_BUILD_PARALLEL_LEVEL:task-install = "${@oe.utils.parallel_make(d, True)}" 64CMAKE_BUILD_PARALLEL_LEVEL:task-install = "${@oe.utils.parallel_make(d, True)}"
65CMAKE_BUILD_PARALLEL_LEVEL:task-compile-ptest-base = "${@oe.utils.parallel_make(d, False)}"
66CMAKE_BUILD_PARALLEL_LEVEL:task-install-ptest-base = "${@oe.utils.parallel_make(d, True)}"
65 67
66OECMAKE_TARGET_COMPILE ?= "all" 68OECMAKE_TARGET_COMPILE ?= "all"
67OECMAKE_TARGET_INSTALL ?= "install" 69OECMAKE_TARGET_INSTALL ?= "install"