package/gcc: enable obsolete nios2 target
PATCH 1/1 package/gcc: enable obsolete nios2 target
GCC 14.1.0 deprecated NIOS2 so we had to enable it explicitely.
Signed-off-by Waldemar Brodkorb <[email protected]>
--- package/gcc/gcc-final/gcc-final.mk | 5 +++++ package/gcc/gcc-initial/gcc-initial.mk | 5 +++++ 2 files changed, 10 insertions(+)
package/gcc/gcc-final/gcc-final.mk +5 -0
@@ -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 += \
package/gcc/gcc-initial/gcc-initial.mk +5 -0
@@ -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)
Signature · 6 lines
2.39.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedQuoted 7 lines · On Sun, 12 May 2024 18:19:15 +0200 Waldemar Brodkorb <[email protected]> wrote:
GCC 14.1.0 deprecated NIOS2 so we had to enable it explicitely.
Signed-off-by Waldemar Brodkorb <[email protected]>--- package/gcc/gcc-final/gcc-final.mk | 5 +++++ package/gcc/gcc-initial/gcc-initial.mk | 5 +++++ 2 files changed, 10 insertions(+)
Applied to master, thanks.
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
package/gcc/gcc-final/gcc-final.mk else · line 123
Quoted 4 lines · On Sun, 12 May 2024 18:19:15 +0200 Waldemar Brodkorb <[email protected]> wrote:
package/gcc/gcc-final/gcc-final.mk +4
-0+# allow to build gcc 14.x +ifeq ($(BR2_nios2),y) +HOST_GCC_FINAL_CONF_OPTS += --enable-obsolete +endif
Dammit, I applied, but in fact, this change should have gone in one single place: package/gcc/gcc.mk, adding to HOST_GCC_COMMON_CONF_OPTS, which is used for both the gcc-initial and gcc-final stage. So I did this as a follow-up commit in
https://gitlab.com/buildroot.org/buildroot/-/commit/1c8bdef54213640e88b199466d1e504515c1a073.
Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot