1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-01-11 15:00:39 +00:00

arm/hafnium: ensure prebuilt binaries can't be used

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 <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Ross Burton
2025-11-13 14:01:37 +00:00
committed by Jon Mason
parent a48f0afe7f
commit 62b9a84c4d

View File

@@ -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
}