diff --git a/crash-trace-command.spec b/crash-trace-command.spec index 850584b83c31a9cd108ed7322f9328a053dea920..6ffc3eda46ddea48939bd495c3b22dbc0545c273 100644 --- a/crash-trace-command.spec +++ b/crash-trace-command.spec @@ -1,6 +1,6 @@ Name: crash-trace-command Version: 3.0 -Release: 1 +Release: 2 Summary: Crash utility's trace extension module License: GPLv2 Source: crash-trace-command-%{version}.tar.gz @@ -20,6 +20,14 @@ allowing it to read ftrace data from a core dump file. %autosetup -n crash-trace-%{version} -p1 %build +%ifarch riscv64 +sed -i -E '/^INCDIR/i \ +ifeq ($(shell arch), riscv64)\ + TARGET=RISCV64\ + TARGET_CFLAGS=\ +endif \ +' Makefile +%endif make %install @@ -32,6 +40,9 @@ cp %{_builddir}/crash-trace-%{version}/trace.so %{buildroot}%{_libdir}/crash/ext %doc COPYING %changelog +* Mon Jul 25 2022 laokz - 3.0-2 +- Support build on riscv64 + * Tue Jan 18 2022 SimpleUpdate Robot - 3.0-1 - Upgrade to version 3.0