[PATCH 1/3] arm/hafnium: split configure/compile and call ninja directly

Ross Burton <[email protected]>
Newsgroups org.yoctoproject.lists.meta-arm
Message-ID <[email protected]>
Split configure/compile and invoke ninja directly so that we can
control parallelisation.

Signed-off-by: Ross Burton <[email protected]>
---
 meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb b/meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb
index 70ad6b1611..60024553eb 100644
--- a/meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb
+++ b/meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb
@@ -40,11 +40,15 @@ EXTRA_OEMAKE += "PLATFORM=${HAFNIUM_PLATFORM}"
 # Don't use prebuilt binaries for gn and ninja
 EXTRA_OEMAKE += "GN=${STAGING_BINDIR_NATIVE}/gn NINJA=${STAGING_BINDIR_NATIVE}/ninja"
 
+do_configure() {
+    oe_runmake -C ${S} ${B}/build.ninja
+}
 do_configure[cleandirs] += "${B}"
 
 do_compile() {
-    oe_runmake -C ${S}
+    ninja -v ${PARALLEL_MAKE}
 }
+do_compile[progress] = "outof:^\[(\d+)/(\d+)\]\s+"
 
 do_install() {
     cd ${B}/${HAFNIUM_PLATFORM}_clang
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.