Browse Source

package/gcc: enable obsolete nios2 target

GCC 14.1.0 deprecated NIOS2 so we need to enable it explicitely.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Waldemar Brodkorb 1 year ago
parent
commit
69cb625947
2 changed files with 10 additions and 0 deletions
  1. 5 0
      package/gcc/gcc-final/gcc-final.mk
  2. 5 0
      package/gcc/gcc-initial/gcc-initial.mk

+ 5 - 0
package/gcc/gcc-final/gcc-final.mk

@@ -117,6 +117,11 @@ else
 HOST_GCC_FINAL_CONF_OPTS += --disable-libgomp
 HOST_GCC_FINAL_CONF_OPTS += --disable-libgomp
 endif
 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
 # End with user-provided options, so that they can override previously
 # defined options.
 # defined options.
 HOST_GCC_FINAL_CONF_OPTS += \
 HOST_GCC_FINAL_CONF_OPTS += \

+ 5 - 0
package/gcc/gcc-initial/gcc-initial.mk

@@ -42,6 +42,11 @@ HOST_GCC_INITIAL_CONF_OPTS = \
 	--disable-largefile \
 	--disable-largefile \
 	$(call qstrip,$(BR2_EXTRA_GCC_CONFIG_OPTIONS))
 	$(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_INITIAL_CONF_ENV = \
 	$(HOST_GCC_COMMON_CONF_ENV)
 	$(HOST_GCC_COMMON_CONF_ENV)