From 01a13b11ad25aaeebf861bc30029282709216fe0 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 22 Mar 2021 18:59:51 +0000 Subject: [PATCH] arm/hafnium: refuse to build on non-x86-64 hosts For reasons, hafnium doesn't use host binaries for stuff like GN, Ninja, Clang, GCC, or Qemu. Instead it ships binaries that it uses during the build, but these binaries are only available for x86-64. Attempts to use external tools (so the recipe can just DEPENDS as usual) were not successful (clang being the problem) so just forcible stop the recipe building on anything but x86-64 for now. Change-Id: I144309d15fa1265b2b105981cd2bfcd376aab7ad Signed-off-by: Ross Burton Signed-off-by: Jon Mason --- meta-arm/recipes-bsp/hafnium/hafnium_2.4.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta-arm/recipes-bsp/hafnium/hafnium_2.4.bb b/meta-arm/recipes-bsp/hafnium/hafnium_2.4.bb index 3a525990..361d6db9 100644 --- a/meta-arm/recipes-bsp/hafnium/hafnium_2.4.bb +++ b/meta-arm/recipes-bsp/hafnium/hafnium_2.4.bb @@ -72,3 +72,9 @@ do_deploy() { cp -rf ${D}/firmware/* ${DEPLOYDIR}/ } addtask deploy after do_install + +python() { + # https://developer.trustedfirmware.org/T898 + if d.getVar("BUILD_ARCH") != "x86_64": + raise bb.parse.SkipRecipe("Cannot be built on non-x86-64 hosts") +}