diff --git a/0003-carsh-trace-command-3.0-add-riscv64-support.patch b/0003-carsh-trace-command-3.0-add-riscv64-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..f043d48e0f3a4378893f7cac470bc24f98b20b80 --- /dev/null +++ b/0003-carsh-trace-command-3.0-add-riscv64-support.patch @@ -0,0 +1,13 @@ +--- a/Makefile 2023-07-08 11:07:34.321771165 +0800 ++++ b/Makefile 2023-07-08 11:08:32.621465214 +0800 +@@ -34,6 +34,10 @@ + TARGET=ARM64 + TARGET_CFLAGS= + endif ++ifeq ($(shell arch), riscv64) ++ TARGET=RISCV64 ++ TARGET_CFLAGS= ++endif + + INCDIR=/usr/include/crash + diff --git a/crash-trace-command.spec b/crash-trace-command.spec index c3eeff9d82e0d96e9bbd41eb6f42c63abcf9be74..4d23061ec3a1f1afb74f1f193cdb69479af03708 100644 --- a/crash-trace-command.spec +++ b/crash-trace-command.spec @@ -1,6 +1,6 @@ Name: crash-trace-command Version: 3.0 -Release: 2 +Release: 3 Summary: Crash utility's trace extension module License: GPLv2 Source: crash-trace-command-%{version}.tar.gz @@ -11,7 +11,8 @@ Requires: trace-cmd crash >= 7.3.0-2 Patch0001: 0001-Makefile-set-DT_SONAME-to-trace.so.patch Patch0002: 0002-Makefile-fix-build-failure-on-aarch64-and-ppc64le.patch -Patch0003: 0001-crash-trace-command-3.0-add-loongarch64-support.patch +Patch0003: 0001-crash-trace-command-3.0-add-loongarch64-support.patch +Patch0004: 0003-carsh-trace-command-3.0-add-riscv64-support.patch %description This package provides a trace extension module for the crash utility, @@ -24,6 +25,9 @@ allowing it to read ftrace data from a core dump file. %ifarch loongarch64 %patch0003 -p1 %endif +%ifarch riscv64 +%patch0004 -p1 +%endif %build make @@ -38,6 +42,9 @@ cp %{_builddir}/crash-trace-%{version}/trace.so %{buildroot}%{_libdir}/crash/ext %doc COPYING %changelog +* Fri Jul 7 2023 EastDong - 3.0-3 +- add riscv64 support + * Mon Nov 14 2022 Wenlong Zhang - 3.0-2 - add loongarch support for crash-trace-command