[PATCH 4/4] 5: Add GDB for RISC-V
Sebastian Huber
sebastian.huber at embedded-brains.de
Wed Jun 6 09:45:35 UTC 2018
Mainline GDB support for RISC-V is not yet in a released GDB version.
---
rtems/config/5/rtems-riscv32.bset | 1 +
rtems/config/5/rtems-riscv64.bset | 1 +
.../rtems-gdb-773ff7907c05313aebbcd5e8319e5b869ac4f792.cfg | 14 ++++++++++++++
3 files changed, 16 insertions(+)
create mode 100644 rtems/config/tools/rtems-gdb-773ff7907c05313aebbcd5e8319e5b869ac4f792.cfg
diff --git a/rtems/config/5/rtems-riscv32.bset b/rtems/config/5/rtems-riscv32.bset
index f19adcd..3f3cb8d 100644
--- a/rtems/config/5/rtems-riscv32.bset
+++ b/rtems/config/5/rtems-riscv32.bset
@@ -12,5 +12,6 @@
devel/expat-2.1.0-1
tools/rtems-binutils-773ff7907c05313aebbcd5e8319e5b869ac4f792
tools/rtems-gcc-7.3.0-newlib-3.0.0
+tools/rtems-gdb-773ff7907c05313aebbcd5e8319e5b869ac4f792
tools/rtems-tools-5-1
tools/rtems-kernel-5
diff --git a/rtems/config/5/rtems-riscv64.bset b/rtems/config/5/rtems-riscv64.bset
index feb693e..1bc9440 100644
--- a/rtems/config/5/rtems-riscv64.bset
+++ b/rtems/config/5/rtems-riscv64.bset
@@ -12,5 +12,6 @@
devel/expat-2.1.0-1
tools/rtems-binutils-773ff7907c05313aebbcd5e8319e5b869ac4f792
tools/rtems-gcc-7.3.0-newlib-3.0.0
+tools/rtems-gdb-773ff7907c05313aebbcd5e8319e5b869ac4f792
tools/rtems-tools-5-1
tools/rtems-kernel-5
diff --git a/rtems/config/tools/rtems-gdb-773ff7907c05313aebbcd5e8319e5b869ac4f792.cfg b/rtems/config/tools/rtems-gdb-773ff7907c05313aebbcd5e8319e5b869ac4f792.cfg
new file mode 100644
index 0000000..a8e4671
--- /dev/null
+++ b/rtems/config/tools/rtems-gdb-773ff7907c05313aebbcd5e8319e5b869ac4f792.cfg
@@ -0,0 +1,14 @@
+#
+# GDB
+#
+
+%include %{_configdir}/checks.cfg
+%include %{_configdir}/base.cfg
+
+%define gdb_version 773ff7907c05313aebbcd5e8319e5b869ac4f792
+%define gdb_external 1
+%define gdb_expand_name binutils-gdb-%{gdb_version}
+%source set gdb --rsb-file=%{gdb_expand_name}.tar.gz https://github.com/bminor/binutils-gdb/archive/%{gdb_version}.tar.gz
+%hash sha512 %{gdb_expand_name}.tar.gz 64ae16e9da89f0e150c1d95cf0aa2c1ff5df4fe9ecefcf9ed702f2fffe66fb194ae50642b13f4e3724db3dfd598710b1f1877ed39d06cb6c5903dad9ddcddcc3
+
+%include %{_configdir}/gdb-7-1.cfg
--
2.13.7
More information about the devel
mailing list