From a646ab2a670c7d3e0194a1c860f3a0ba99284adc Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Sun, 5 Jan 2025 13:16:40 +1300 Subject: nios2: Require GCC older than 15 As per https://gcc.gnu.org/gcc-14/changes.html nios2 will be removed in GCC 15. Even in GCC 14 we need to pass --enable-obsolete to allow this target. Update our samples accordingly. Signed-off-by: Chris Packham --- samples/i686-w64-mingw32,nios2-spico-elf/crosstool.config | 2 ++ samples/nios2-altera-linux-gnu/crosstool.config | 2 ++ samples/nios2-unknown-elf/crosstool.config | 2 ++ 3 files changed, 6 insertions(+) (limited to 'samples') diff --git a/samples/i686-w64-mingw32,nios2-spico-elf/crosstool.config b/samples/i686-w64-mingw32,nios2-spico-elf/crosstool.config index 2e839dd7..83e7783d 100644 --- a/samples/i686-w64-mingw32,nios2-spico-elf/crosstool.config +++ b/samples/i686-w64-mingw32,nios2-spico-elf/crosstool.config @@ -7,5 +7,7 @@ CT_TOOLCHAIN_BUGURL="https://bitbucket.org/netzimme/eax-gcc/issues?status=new&st CT_TARGET_VENDOR="spico" CT_CANADIAN=y CT_HOST="i686-w64-mingw32" +CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY="--enable-obsolete" +CT_CC_GCC_EXTRA_CONFIG_ARRAY="--enable-obsolete" CT_CC_LANG_CXX=y CT_DEBUG_GDB=y diff --git a/samples/nios2-altera-linux-gnu/crosstool.config b/samples/nios2-altera-linux-gnu/crosstool.config index d038aac2..f8203b50 100644 --- a/samples/nios2-altera-linux-gnu/crosstool.config +++ b/samples/nios2-altera-linux-gnu/crosstool.config @@ -3,6 +3,8 @@ CT_ARCH_NIOS2=y CT_ARCH_USE_MMU=y CT_TARGET_VENDOR="altera" CT_KERNEL_LINUX=y +CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY="--enable-obsolete" +CT_CC_GCC_EXTRA_CONFIG_ARRAY="--enable-obsolete" CT_CC_LANG_CXX=y CT_DEBUG_GDB=y # CT_GDB_CROSS_PYTHON is not set diff --git a/samples/nios2-unknown-elf/crosstool.config b/samples/nios2-unknown-elf/crosstool.config index 2fe5d443..045d360c 100644 --- a/samples/nios2-unknown-elf/crosstool.config +++ b/samples/nios2-unknown-elf/crosstool.config @@ -1,5 +1,7 @@ CT_CONFIG_VERSION="4" CT_ARCH_NIOS2=y +CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY="--enable-obsolete" +CT_CC_GCC_EXTRA_CONFIG_ARRAY="--enable-obsolete" CT_CC_LANG_CXX=y CT_DEBUG_GDB=y # CT_GDB_CROSS_PYTHON is not set -- cgit v1.2.3