summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2018-12-18 17:48:22 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-03 21:14:47 +0000
commitc22b0bf66a28324da66caf0660f171cc279a1f2b (patch)
treea94257e1bcb317086c0ea7159ab97b25640c566b
parent91810a57f0edd8b37c5f3f989a5aca69d9a40b37 (diff)
downloadopenembedded-core-contrib-c22b0bf66a28324da66caf0660f171cc279a1f2b.tar.gz
openembedded-core-contrib-c22b0bf66a28324da66caf0660f171cc279a1f2b.tar.bz2
openembedded-core-contrib-c22b0bf66a28324da66caf0660f171cc279a1f2b.zip
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@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/cmake/cmake-native_3.12.2.bb4
1 files changed, 3 insertions, 1 deletions
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 9a1390f96d..2f4ecc4f4c 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} \
+ ${@oe.utils.parallel_make_argument(d, '--parallel=%d')} \
+ -- ${CMAKE_EXTRACONF}
}
do_compile() {