From 6c3d62c776fc45b4bae47d178899e84b17248b31 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 9 Jun 2021 12:20:09 +0100 Subject: [PATCH] arm/trusted-firmware-a: disable branch protection on SGI575 oe-core master's gcc is built with branch protection on by default. However, this results in slightly larger binaries which mean the SGI575 build is now too large. Until this is investigated properly, we can just disable branch protection for the SGI575 build. Change-Id: I9a8b0a8e569b944c274199ce306a3864c94c8c5c Signed-off-by: Ross Burton --- .../recipes-bsp/trusted-firmware-a/trusted-firmware-a-sgi575.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-sgi575.inc b/meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-sgi575.inc index e63be960..84f679c1 100644 --- a/meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-sgi575.inc +++ b/meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-sgi575.inc @@ -14,3 +14,4 @@ DEPENDS += "virtual/uefi-firmware" EXTRA_OEMAKE += "BL33=${RECIPE_SYSROOT}/firmware/uefi.bin" EXTRA_OEMAKE += "TRUSTED_BOARD_BOOT=1 GENERATE_COT=1 ARM_ROTPK_LOCATION=devel_rsa \ ROT_KEY=plat/arm/board/common/rotpk/arm_rotprivk_rsa.pem" +EXTRA_OEMAKE += "CFLAGS=-mbranch-protection=none"