From 387465c622b373e99cb0cccc7c426a5a18741eac Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Thu, 20 Apr 2023 13:52:29 +0100 Subject: [PATCH] arm/trusted-firmware-m: clean up environment flags We don't need to unset CFLAGS and LDFLAGS as the CMake file doesn't respect them anyway. Add CC to the unexport list for completeness, at least one of these is needed for now as the build fails without the unexports. Signed-off-by: Ross Burton Signed-off-by: Jon Mason --- .../recipes-bsp/trusted-firmware-m/trusted-firmware-m.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m.inc b/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m.inc index a753a3da..09efaffa 100644 --- a/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m.inc +++ b/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m.inc @@ -76,10 +76,8 @@ EXTRA_OECMAKE += "-DMBEDCRYPTO_PATH=${S}/../mbedtls -DTFM_TEST_REPO_PATH=${S}/.. export CMAKE_BUILD_PARALLEL_LEVEL = "${@oe.utils.parallel_make(d, False)}" -# 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" +CC[unexport] = "1" LD[unexport] = "1" # python3-cryptography needs the legacy provider, so set OPENSSL_MODULES to the