cmake-native: Set --parallel for configure

This can save do_configure's time from 330s to 60s on my host.

(From OE-Core rev: c22b0bf66a28324da66caf0660f171cc279a1f2b)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Robert Yang
2018-12-18 17:48:22 +08:00
committed by Richard Purdie
parent ea915ed419
commit 6c6241536c

View File

@@ -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() {