From 3a283aee91fb8ecdb8db185b69fae83d698f416b Mon Sep 17 00:00:00 2001 From: Chris Dimich Date: Tue, 7 Nov 2023 14:00:47 -0800 Subject: [PATCH] imx-atf-boundary: unexport variables instead of set in compile task To match imx-atf: https://github.com/Freescale/meta-freescale/blob/master/recipes-bsp/imx-atf/imx-atf_2.8.bb#L29-L33 https://github.com/Freescale/meta-freescale/commit/ad889575ae02de982a47f642db9c9fbfc17c1873 also fixes error: bl31.elf section `coherent_ram' will not fit in region `RAM' aarch64-poky-linux-ld.bfd: BL31 image has exceeded its limit. Signed-off-by: Chris Dimich --- recipes-bsp/imx-atf/imx-atf-boundary_2.8.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/recipes-bsp/imx-atf/imx-atf-boundary_2.8.bb b/recipes-bsp/imx-atf/imx-atf-boundary_2.8.bb index b8a8fd1..2399257 100644 --- a/recipes-bsp/imx-atf/imx-atf-boundary_2.8.bb +++ b/recipes-bsp/imx-atf/imx-atf-boundary_2.8.bb @@ -31,6 +31,12 @@ EXTRA_OEMAKE += " \ PLAT=${ATF_PLATFORM} \ " +# Let the Makefile handle setting up the CFLAGS and LDFLAGS as it is a standalone application +CFLAGS[unexport] = "1" +LDFLAGS[unexport] = "1" +AS[unexport] = "1" +LD[unexport] = "1" + BUILD_OPTEE = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'true', 'false', d)}" do_compile() {