[PATCH 2/3] arm/hafnium: ensure prebuilt binaries can't be used

Ross Burton <[email protected]>
Newsgroups org.yoctoproject.lists.meta-arm
Message-ID <[email protected]>
We depend on native tools to provide these binaries, so we can delete
them to ensure that our tools are always used and never the prebuilt.

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

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 60024553eb..72b7801073 100644
--- a/meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb
+++ b/meta-arm/recipes-bsp/hafnium/hafnium_2.13.0.bb
@@ -40,6 +40,13 @@ 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"
 
+prune_prebuilts() {
+    for dir in dtc gn ninja qemu; do
+        rm -rf ${S}/prebuilts/*/$dir
+    done
+}
+do_unpack[postfuncs] += "prune_prebuilts"
+
 do_configure() {
     oe_runmake -C ${S} ${B}/build.ninja
 }
-- 
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.