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 <thomas.petazzoni@bootlin.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Thomas Petazzoni
2025-08-07 23:00:41 +02:00
committed by Julien Olivain
parent 84a3a8f39a
commit bd05f6bd1f
2 changed files with 8 additions and 4 deletions
+7 -3
View File
@@ -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
+1 -1
View File
@@ -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