[OE-core] [PATCH 1/1] cmake-native: Set --parallel for configure
Robert Yang
liezhi.yang at windriver.com
Thu Dec 20 06:50:08 UTC 2018
On 12/19/18 6:37 PM, Burton, Ross wrote:
> On Wed, 19 Dec 2018 at 06:34, Robert Yang <liezhi.yang at windriver.com> wrote:
>> + --parallel=${@d.getVar('PARALLEL_MAKE').replace('-j ', '')} \
>
> See oe.utils.parallel_make_argument()
Thanks, updated in the repo:
commit 19ac4e33e66353581191e7dfd866f6c0f73eafa6
Author: Robert Yang <liezhi.yang at windriver.com>
Date: Tue Dec 18 17:48:22 2018 +0800
cmake-native: Set --parallel for configure
This can save do_configure's time from 330s to 60s on my host.
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
diff --git a/meta/recipes-devtools/cmake/cmake-native_3.12.2.bb
b/meta/recipes-devtools/cmake/cmake-native_3.12.2.bb
index 9a1390f..3086c82 100644
--- a/meta/recipes-devtools/cmake/cmake-native_3.12.2.bb
+++ b/meta/recipes-devtools/cmake/cmake-native_3.12.2.bb
@@ -27,7 +27,9 @@ CMAKE_EXTRACONF = "\
"
do_configure () {
- ${S}/configure --verbose --prefix=${prefix} -- ${CMAKE_EXTRACONF}
+ ${S}/configure --verbose --prefix=${prefix} \
+ --parallel="${@oe.utils.parallel_make_argument(d, '%d')}" \
+ -- ${CMAKE_EXTRACONF}
}
do_compile() {
// Robert
>
> Ross
>
More information about the Openembedded-core
mailing list