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/nios2-altera-linux-gnu/crosstool.config | 2 ++ 1 file changed, 2 insertions(+) (limited to 'samples/nios2-altera-linux-gnu') 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 -- cgit v1.2.3