From bd05f6bd1f0ecfec586a7a0557d4a0faad7b38ed Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Mon, 4 Aug 2025 22:13:32 +0200 Subject: [PATCH] package/gdb: allow selecting upstream releases on ARC package/binutils and package/gcc both allow to use upstream versions on ARC, but package/gdb allows using only the ARC version. Adjust the packaging to align package/gdb with package/binutils and package/gcc, so that upstream versions of gdb can be built for ARC. Signed-off-by: Thomas Petazzoni Signed-off-by: Julien Olivain --- package/gdb/Config.in.host | 10 +++++++--- package/gdb/gdb.mk | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host index 54247ad642..ac50a292ff 100644 --- a/package/gdb/Config.in.host +++ b/package/gdb/Config.in.host @@ -41,11 +41,15 @@ config BR2_PACKAGE_HOST_GDB_SIM choice prompt "GDB debugger Version" - default BR2_GDB_VERSION_15 - depends on !BR2_arc + default BR2_GDB_VERSION_15 if !BR2_arc + default BR2_GDB_VERSION_ARC if BR2_arc help Select the version of gdb you wish to use. +config BR2_GDB_VERSION_ARC + bool "gdb arc (14.x)" + depends on BR2_arc + config BR2_GDB_VERSION_14 bool "gdb 14.x" @@ -68,7 +72,7 @@ endif # If cross-gdb is not enabled, the latest stable version is chosen. config BR2_GDB_VERSION string - default "arc-2023.09-release" if BR2_arc + default "arc-2023.09-release" if BR2_GDB_VERSION_ARC || (!BR2_PACKAGE_HOST_GDB && BR2_arc) default "14.2" if BR2_GDB_VERSION_14 || (!BR2_PACKAGE_HOST_GDB && !BR2_TOOLCHAIN_GCC_AT_LEAST_9) default "15.2" if BR2_GDB_VERSION_15 || (!BR2_PACKAGE_HOST_GDB && BR2_TOOLCHAIN_GCC_AT_LEAST_9) default "16.3" if BR2_GDB_VERSION_16 diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk index b39b103d00..ca9c6d74d5 100644 --- a/package/gdb/gdb.mk +++ b/package/gdb/gdb.mk @@ -8,7 +8,7 @@ GDB_VERSION = $(call qstrip,$(BR2_GDB_VERSION)) GDB_SITE = $(BR2_GNU_MIRROR)/gdb GDB_SOURCE = gdb-$(GDB_VERSION).tar.xz -ifeq ($(GDB_VERSION),arc-2023.09-release) +ifeq ($(BR2_GDB_VERSION_ARC),y) GDB_SITE = $(call github,foss-for-synopsys-dwc-arc-processors,binutils-gdb,$(GDB_VERSION)) GDB_SOURCE = gdb-$(GDB_VERSION).tar.gz GDB_FROM_GIT = y