From 69cb6259479c548a09aac1140261c17f1cbb86b3 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 12 May 2024 18:19:15 +0200 Subject: [PATCH] package/gcc: enable obsolete nios2 target GCC 14.1.0 deprecated NIOS2 so we need to enable it explicitely. Signed-off-by: Waldemar Brodkorb Signed-off-by: Thomas Petazzoni --- package/gcc/gcc-final/gcc-final.mk | 5 +++++ package/gcc/gcc-initial/gcc-initial.mk | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/package/gcc/gcc-final/gcc-final.mk b/package/gcc/gcc-final/gcc-final.mk index 99d7047b5f..5feb96b568 100644 --- a/package/gcc/gcc-final/gcc-final.mk +++ b/package/gcc/gcc-final/gcc-final.mk @@ -117,6 +117,11 @@ else HOST_GCC_FINAL_CONF_OPTS += --disable-libgomp endif +# allow to build gcc 14.x +ifeq ($(BR2_nios2),y) +HOST_GCC_FINAL_CONF_OPTS += --enable-obsolete +endif + # End with user-provided options, so that they can override previously # defined options. HOST_GCC_FINAL_CONF_OPTS += \ diff --git a/package/gcc/gcc-initial/gcc-initial.mk b/package/gcc/gcc-initial/gcc-initial.mk index 1f8b76a942..8b4247bdad 100644 --- a/package/gcc/gcc-initial/gcc-initial.mk +++ b/package/gcc/gcc-initial/gcc-initial.mk @@ -42,6 +42,11 @@ HOST_GCC_INITIAL_CONF_OPTS = \ --disable-largefile \ $(call qstrip,$(BR2_EXTRA_GCC_CONFIG_OPTIONS)) +# allow to build gcc 14.x +ifeq ($(BR2_nios2),y) +HOST_GCC_INITIAL_CONF_OPTS += --enable-obsolete +endif + HOST_GCC_INITIAL_CONF_ENV = \ $(HOST_GCC_COMMON_CONF_ENV)