[openwrt/openwrt] include/trusted-firmware-a.mk: unset CC before compiling

LEDE Commits lede-commits at lists.infradead.org
Sat Jan 4 09:12:14 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/4baa20ec661725550a830e7c86f9f75cbb1fbc4b

commit 4baa20ec661725550a830e7c86f9f75cbb1fbc4b
Author: Thomas Richard <thomas.richard at bootlin.com>
AuthorDate: Fri Jan 3 10:19:05 2025 +0100

    include/trusted-firmware-a.mk: unset CC before compiling
    
    If CC is explicitly set to a non default value, TF-A keeps this value.
    Otherwise it assigns generic default value.
    As the build bot set CC=/usr/bin/gcc-10, TF-A uses it which causes a
    compile issue.
    So unset CC before compiling.
    
    It's a new behavior since v2.12. A part of the explanation is available in
    this commit [1].
    
    [1] https://github.com/ARM-software/arm-trusted-firmware/commit/e01c71266f9df46ac46dc72669449490d1c94419
    
    Signed-off-by: Thomas Richard <thomas.richard at bootlin.com>
    Link: https://github.com/openwrt/openwrt/pull/17465
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 include/trusted-firmware-a.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/trusted-firmware-a.mk b/include/trusted-firmware-a.mk
index c0d11d68c4..c329b76c56 100644
--- a/include/trusted-firmware-a.mk
+++ b/include/trusted-firmware-a.mk
@@ -77,7 +77,8 @@ endef
 DTC=$(wildcard $(LINUX_DIR)/scripts/dtc/dtc)
 
 define Build/Compile/Trusted-Firmware-A
-	+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
+	+unset CC; \
+	$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
 		CROSS_COMPILE=$(TARGET_CROSS) \
 		OPENSSL_DIR=$(STAGING_DIR_HOST) \
 		$(if $(DTC),DTC="$(DTC)") \




More information about the lede-commits mailing list