Skip to content

Commit

Permalink
include/trusted-firmware-a.mk: unset CC before compiling
Browse files Browse the repository at this point in the history
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] ARM-software/arm-trusted-firmware@e01c712

Signed-off-by: Thomas Richard <[email protected]>
Link: openwrt/openwrt#17465
Signed-off-by: Hauke Mehrtens <[email protected]>
  • Loading branch information
thom24 authored and hauke committed Jan 4, 2025
1 parent 551e04f commit 4baa20e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/trusted-firmware-a.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)") \
Expand Down

0 comments on commit 4baa20e

Please sign in to comment.