Skip to contentSkip to conversation

package/gdb: allow selecting upstream releases on ARC

PATCH In review Thomas Petazzoni via buildroot 1 participant 3 messages Aug 4, 2025 – Aug 7, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 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.

---
 package/gdb/Config.in.host | 10 +++++++---
 package/gdb/gdb.mk         |  2 +-
 2 files changed, 8 insertions(+), 4 deletions(-)
package/gdb/Config.in.host +7 -3
index 54247ad642..ac50a292ff 100644
@@ -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
package/gdb/gdb.mk +1 -1
index b39b103d00..ca9c6d74d5 100644
@@ -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
Signature · 6 lines
2.50.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/{gcc, binutils, gdb}: update ARC version to 2024.12

This commit updates the ARC toolchain components to the 2024.12 release, keeping the same patches.

---
 package/binutils/Config.in.host               |  4 +-
 .../0001-poison-system-directories.patch      | 68 +++++++++----------
 package/binutils/binutils.hash                |  2 +-
 package/binutils/binutils.mk                  |  4 +-
 package/gcc/Config.in.host                    |  6 +-
 package/gcc/gcc.hash                          |  2 +-
 package/gdb/Config.in.host                    |  4 +-
 ...ne-tcap.h-Update-definitions-for-C23.patch |  2 +-
 package/gdb/gdb.hash                          |  2 +-
 9 files changed, 46 insertions(+), 48 deletions(-)
 rename package/binutils/{arc-2023.09-release => arc-2024.12-release}/0001-poison-system-directories.patch (87%)
 rename package/gdb/{arc-2023.09-release => arc-2024.12-release-gdb}/0001-readline-tcap.h-Update-definitions-for-C23.patch (96%)
package/binutils/Config.in.host +2 -2
index 8e0c21bae0..33002e0028 100644
@@ -13,7 +13,7 @@ choice
 	  Select the version of binutils you wish to use.
 
 config BR2_BINUTILS_VERSION_ARC
-	bool "binutils arc (2.41)"
+	bool "binutils arc (2.43)"
 	depends on BR2_arc
 
 config BR2_BINUTILS_VERSION_2_42_X
@@ -29,7 +29,7 @@ endchoice
 
 config BR2_BINUTILS_VERSION
 	string
-	default "arc-2023.09-release"	if BR2_BINUTILS_VERSION_ARC
+	default "arc-2024.12-release"	if BR2_BINUTILS_VERSION_ARC
 	default "2.42"		if BR2_BINUTILS_VERSION_2_42_X
 	default "2.43.1"	if BR2_BINUTILS_VERSION_2_43_X
 	default "2.44"		if BR2_BINUTILS_VERSION_2_44_X
package/binutils/arc-2024.12-release/0001-poison-system-directories.patch renamed from package/binutils/arc-2023.09-release/0001-poison-system-directories.patch +33 -35

185 lines not on this page · raw message

package/binutils/binutils.hash +1 -1
index ec0a382501..b40463262c 100644
@@ -4,7 +4,7 @@ sha512  20977ad17729141a2c26d358628f44a0944b84dcfefdec2ba029c2d02f40dfc41cc91c06
 sha512  b85d3bbc0e334cf67a96219d3c7c65fbf3e832b2c98a7417bf131f3645a0307057ec81cd2b29ff2563cec53e3d42f73e2c60cc5708e80d4a730efdcc6ae14ad7  binutils-2.44.tar.xz
 
 # Locally calculated (fetched from Github)
-sha512  3518b47d5c11d1fb478ee152bde1719363f9391db73f3b9f5491217c17742bef8ebca6a51a40302dfaa9476c5a32a8b8f70a4bf64289422dea5f750ae53ab88d  binutils-gdb-arc-2023.09-release.tar.gz
+sha512  46c336a16bde7b73dc4ceac0986887d47d542a1452e1936ef871b5e76afdb6cad4b18ccb4d93341358e7bb92c2ef74781e1fb72935d527d15251ac9f9daa8305  binutils-gdb-arc-2024.12-release.tar.gz
 
 # locally computed
 sha256  8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903  COPYING3
package/binutils/binutils.mk +2 -2
index 2b5064d739..a9f03225da 100644
@@ -9,13 +9,13 @@
 BINUTILS_VERSION = $(call qstrip,$(BR2_BINUTILS_VERSION))
 ifeq ($(BINUTILS_VERSION),)
 ifeq ($(BR2_arc),y)
-BINUTILS_VERSION = arc-2023.09-release
+BINUTILS_VERSION = arc-2024.12-release
 else
 BINUTILS_VERSION = 2.43.1
 endif
 endif # BINUTILS_VERSION
 
-ifeq ($(BINUTILS_VERSION),arc-2023.09-release)
+ifeq ($(BINUTILS_VERSION),arc-2024.12-release)
 BINUTILS_SITE = $(call github,foss-for-synopsys-dwc-arc-processors,binutils-gdb,$(BINUTILS_VERSION))
 BINUTILS_SOURCE = binutils-gdb-$(BINUTILS_VERSION).tar.gz
 BINUTILS_FROM_GIT = y
package/gcc/Config.in.host +3 -3
index 23fcaa9825..2149846761 100644
@@ -10,10 +10,10 @@ choice
 	  Select the version of gcc you wish to use.
 
 config BR2_GCC_VERSION_ARC
-	bool "gcc arc (13.1)"
+	bool "gcc arc (15.1)"
 	# Only supported architecture
 	depends on BR2_arc
-	select BR2_TOOLCHAIN_GCC_AT_LEAST_13
+	select BR2_TOOLCHAIN_GCC_AT_LEAST_15
 
 config BR2_GCC_VERSION_POWERPC_SPE
 	bool "gcc powerpc spe"
@@ -77,7 +77,7 @@ config BR2_GCC_VERSION
 	default "13.4.0"    if BR2_GCC_VERSION_13_X
 	default "14.3.0"    if BR2_GCC_VERSION_14_X
 	default "15.1.0"    if BR2_GCC_VERSION_15_X
-	default "arc-2023.09-release" if BR2_GCC_VERSION_ARC
+	default "arc-2024.12-release" if BR2_GCC_VERSION_ARC
 
 config BR2_EXTRA_GCC_CONFIG_OPTIONS
 	string "Additional gcc options"
package/gcc/gcc.hash +1 -1
index 692aa31281..5ccbd81122 100644
@@ -8,7 +8,7 @@ sha512  cb4e3259640721bbd275c723fe4df53d12f9b1673afb3db274c22c6aa457865dccf2d6ea
 sha512  ddd35ca6c653dffa88f7c7ef9ee4cd806e156e0f3b30f4d63e75a8363361285cd566ee73127734cde6a934611de815bee3e32e24bfd2e0ab9f7ff35c929821c1  gcc-15.1.0.tar.xz
 
 # Locally calculated (fetched from Github)
-sha512  4dca20f517a42bb027fec605965b09fb917a535eebf3fe3e811d93476b02b1962df5ad4665f117bd44c2ec8e8015d51a44c00591761fe5f259c201ac5c7d920f  gcc-arc-2023.09-release.tar.gz
+sha512  7f08ae335d9112be65e92c3744c095d8fa265994b8282274948f99fe37409531e627e6dadfb77b138a82fa09d012c56d8c075b482a5a5186814a57f9db63c29e  gcc-arc-2024.12-release.tar.gz
 # Locally calculated (fetched from Github)
 sha512  2de7cf47333a4092b02d3bb98f4206f14966f1d139a724d09cf3b22f8a43ae0c704f33e6477d6367a03c29b265480dc900169e9d417006c5d46f0ae446b8c6f1  gcc-or1k-musl-5.4.0-20170218.tar.gz
 
package/gdb/Config.in.host +2 -2
index ac50a292ff..963c46129d 100644
@@ -47,7 +47,7 @@ choice
 	  Select the version of gdb you wish to use.
 
 config BR2_GDB_VERSION_ARC
-	bool "gdb arc (14.x)"
+	bool "gdb arc (15.x)"
 	depends on BR2_arc
 
 config BR2_GDB_VERSION_14
@@ -72,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_GDB_VERSION_ARC || (!BR2_PACKAGE_HOST_GDB && BR2_arc)
+	default "arc-2024.12-release-gdb" 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
package/gdb/arc-2024.12-release-gdb/0001-readline-tcap.h-Update-definitions-for-C23.patch renamed from package/gdb/arc-2023.09-release/0001-readline-tcap.h-Update-definitions-for-C23.patch +1 -1
similarity index 96%
rename from package/gdb/arc-2023.09-release/0001-readline-tcap.h-Update-definitions-for-C23.patch
rename to package/gdb/arc-2024.12-release-gdb/0001-readline-tcap.h-Update-definitions-for-C23.patch
index 33c0ee95fc..64f741fe75 100644
@@ -1,4 +1,4 @@
-From 93f772832b96e0c48223c452324e9736d7de051e Mon Sep 17 00:00:00 2001
+From 130750cf9607fc1c4bcbead820a27bee6ee60f04 Mon Sep 17 00:00:00 2001
 From: Chris Packham <[email protected]>
 Date: Wed, 30 Apr 2025 16:49:44 +1200
 Subject: [PATCH] readline/tcap.h: Update definitions for C23
package/gdb/gdb.hash +1 -1
index 8bef9cd374..7844b765e6 100644
@@ -4,7 +4,7 @@ sha512  624007deceb5b15ba89c0725883d1a699fa46714ef30887f3d0165e17c5d65d634671740
 sha512  fffd6689c3405466a179670b04720dc825e4f210a761f63dd2b33027432f8cd5d1c059c431a5ec9e165eedd1901220b5329d73c522f9a444788888c731b29e9c  gdb-16.3.tar.xz
 
 # Locally calculated (fetched from Github)
-sha512  3518b47d5c11d1fb478ee152bde1719363f9391db73f3b9f5491217c17742bef8ebca6a51a40302dfaa9476c5a32a8b8f70a4bf64289422dea5f750ae53ab88d  gdb-arc-2023.09-release.tar.gz
+sha512  a909a687abf6e9623c7ec99a8b2cbb03ab6fdeccee9ebd33ce34fffdb2bed5e4d519113aeb29ba3ca8db52e9bdbb63b59973914c74e3eebf4a4a2a6033b9e784  gdb-arc-2024.12-release-gdb.tar.gz
 
 # Locally calculated (fetched from gcc.gnu.org)
 sha256  231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c  COPYING
Signature · 6 lines
2.50.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Thomas Petazzoni via buildroot
Quoted 6 lines · Thomas Petazzoni via buildroot

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.

Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot