!12 Add riscv64 support
From: @East_x Reviewed-by: @Charlie_li Signed-off-by: @Charlie_li
This commit is contained in:
commit
cd454bb826
13
0003-carsh-trace-command-3.0-add-riscv64-support.patch
Normal file
13
0003-carsh-trace-command-3.0-add-riscv64-support.patch
Normal file
@ -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
|
||||
|
||||
@ -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
|
||||
@ -12,6 +12,7 @@ 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
|
||||
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 <xudong23@iscas.ac.cn> - 3.0-3
|
||||
- add riscv64 support
|
||||
|
||||
* Mon Nov 14 2022 Wenlong Zhang <zhangwenlong@loongson.cn> - 3.0-2
|
||||
- add loongarch support for crash-trace-command
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user