From c22b0bf66a28324da66caf0660f171cc279a1f2b Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Tue, 18 Dec 2018 17:48:22 +0800 Subject: 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 Signed-off-by: Richard Purdie --- meta/recipes-devtools/cmake/cmake-native_3.12.2.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() { -- cgit 1.2.3-korg