Skip to contentSkip to conversation

update GCC version check after Kbuild bump

PATCH In review Brian Sune 2 participants 2 messages Dec 2, 2025 – Dec 6, 2025 Arm (32-bit)

lore
Share & tools
lore

Brian Sune

author
#0 lore raw

PATCH 1/1 update GCC version check after Kbuild bump

ARM GCC tool check is not up to date,
while issues are reported such as file truncated linker errors. Using ARM official cross tools shows that 10.0.1 is a safe version to support latest kbuild bump properly.

---
 arch/arm/config.mk | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
arch/arm/config.mk +5 -5
index 73fddd50bd7..a7eff84a267 100644
@@ -58,7 +58,7 @@ endif
 
 # Only test once
 ifeq ($(CONFIG_$(PHASE_)SYS_THUMB_BUILD),y)
-archprepare: checkthumb checkgcc6
+archprepare: checkthumb checkgcc10
 
 checkthumb:
 	@if test "$(call cc-name)" = "gcc" -a \
@@ -69,13 +69,13 @@ checkthumb:
 		false; \
 	fi
 else
-archprepare: checkgcc6
+archprepare: checkgcc10
 endif
 
-checkgcc6:
+checkgcc10:
 	@if test "$(call cc-name)" = "gcc" -a \
-			"$(call cc-version)" -lt "0600"; then \
-		echo '*** Your GCC is older than 6.0 and is not supported'; \
+			"$(call cc-version)" -lt "1000"; then \
+		echo '*** Your GCC is older than 10.0 and is not supported'; \
 		false; \
 	fi
 
Signature · 1 line
2.34.1
#1 lore raw
Quoted 6 lines · Brian Sune

ARM GCC tool check is not up to date,
while issues are reported such as file truncated linker errors. Using ARM official cross tools shows that 10.0.1 is a safe version to support latest kbuild bump properly.

Applied to u-boot/master, thanks!

[1/1] update GCC version check after Kbuild bump

      commit: bb1c2b463265175f05a1e5de7b39de815db1a03a
Signature · 1 line
Tom