toolchain/toolchain-external/toolchain-external-custom: hide gcc versions for unsupported CPUs

The BR2_ARCH_NEEDS_GCC_AT_LEAST_X guards were added in commit [1]
for toolchain-external-custom gcc versions from 4.8 to 12. No guard
was added for gcc 13 because is was the latest version at that time
(and the symbol BR2_ARCH_NEEDS_GCC_AT_LEAST_14 was not available
at that time).

Then, commit [2] and [3] added gcc 14 and 15 without adding
guards.

In order to prevent a Buildroot user selecting an external custom
toolchain that does not support a selected CPU, this commit adds all
the missing guards.

[1] eed1670d8a
[2] 7fa12e4f9e
[3] 5f1a38a41f

Reported-by: Arnout Vandecappelle <arnout@rnout.be>
Signed-off-by: Julien Olivain <ju.o@free.fr>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
This commit is contained in:
Julien Olivain
2025-07-01 21:44:11 +02:00
committed by Romain Naour
parent 49dbfba22f
commit 8e48dd8f21

View File

@@ -48,14 +48,17 @@ choice
config BR2_TOOLCHAIN_EXTERNAL_GCC_15
bool "15.x"
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_16
select BR2_TOOLCHAIN_GCC_AT_LEAST_15
config BR2_TOOLCHAIN_EXTERNAL_GCC_14
bool "14.x"
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_15
select BR2_TOOLCHAIN_GCC_AT_LEAST_14
config BR2_TOOLCHAIN_EXTERNAL_GCC_13
bool "13.x"
depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_14
select BR2_TOOLCHAIN_GCC_AT_LEAST_13
config BR2_TOOLCHAIN_EXTERNAL_GCC_12