From f9536761668f377a02d810a4a2029a692de58cb6 Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Sun, 29 May 2022 15:18:09 +0200 Subject: [PATCH] arch: add BR2_ARCH_NEEDS_GCC_AT_LEAST_12 This new symbol will be used by architectures introduced with gcc 12. Signed-off-by: Romain Naour Signed-off-by: Thomas Petazzoni --- arch/Config.in | 4 ++++ package/gcc/Config.in.host | 1 + 2 files changed, 5 insertions(+) diff --git a/arch/Config.in b/arch/Config.in index 26293d4986..442d6b0075 100644 --- a/arch/Config.in +++ b/arch/Config.in @@ -313,6 +313,10 @@ config BR2_ARCH_NEEDS_GCC_AT_LEAST_11 bool select BR2_ARCH_NEEDS_GCC_AT_LEAST_10 +config BR2_ARCH_NEEDS_GCC_AT_LEAST_12 + bool + select BR2_ARCH_NEEDS_GCC_AT_LEAST_11 + # The following string values are defined by the individual # Config.in.$ARCH files config BR2_ARCH diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host index 2d9eaef102..4e906acc5b 100644 --- a/package/gcc/Config.in.host +++ b/package/gcc/Config.in.host @@ -51,6 +51,7 @@ config BR2_GCC_VERSION_10_X config BR2_GCC_VERSION_11_X bool "gcc 11.x" + depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_12 # powerpc spe support has been deprecated since gcc 8.x. # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html depends on !BR2_powerpc_SPE