!9 add loongarch support for crash-trace-command
From: @zhangwenlong01 Reviewed-by: @zengwefeng, @caodongxia Signed-off-by: @zengwefeng, @caodongxia
This commit is contained in:
commit
2243403338
26
0001-crash-trace-command-3.0-add-loongarch64-support.patch
Normal file
26
0001-crash-trace-command-3.0-add-loongarch64-support.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From 9f358a85cc562d0d992bdc79095f9ad0ecc644dd Mon Sep 17 00:00:00 2001
|
||||||
|
From: Huang Yang <huangyang@loongson.cn>
|
||||||
|
Date: Mon, 16 May 2022 09:02:35 +0000
|
||||||
|
Subject: [PATCH] crash-trace-command 3.0 add loongarch64 support
|
||||||
|
|
||||||
|
---
|
||||||
|
Makefile | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index 0d35d4f..5bb4aca 100755
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -30,6 +30,10 @@ ifeq ($(shell arch), aarch64)
|
||||||
|
TARGET=ARM64
|
||||||
|
TARGET_CFLAGS=
|
||||||
|
endif
|
||||||
|
+ifeq ($(shell arch), loongarch64)
|
||||||
|
+ TARGET=LOONGARCH64
|
||||||
|
+ TARGET_CFLAGS=
|
||||||
|
+endif
|
||||||
|
|
||||||
|
INCDIR=/usr/include/crash
|
||||||
|
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: crash-trace-command
|
Name: crash-trace-command
|
||||||
Version: 3.0
|
Version: 3.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Crash utility's trace extension module
|
Summary: Crash utility's trace extension module
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Source: crash-trace-command-%{version}.tar.gz
|
Source: crash-trace-command-%{version}.tar.gz
|
||||||
@ -11,13 +11,19 @@ Requires: trace-cmd crash >= 7.3.0-2
|
|||||||
|
|
||||||
Patch0001: 0001-Makefile-set-DT_SONAME-to-trace.so.patch
|
Patch0001: 0001-Makefile-set-DT_SONAME-to-trace.so.patch
|
||||||
Patch0002: 0002-Makefile-fix-build-failure-on-aarch64-and-ppc64le.patch
|
Patch0002: 0002-Makefile-fix-build-failure-on-aarch64-and-ppc64le.patch
|
||||||
|
Patch0003: 0001-crash-trace-command-3.0-add-loongarch64-support.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package provides a trace extension module for the crash utility,
|
This package provides a trace extension module for the crash utility,
|
||||||
allowing it to read ftrace data from a core dump file.
|
allowing it to read ftrace data from a core dump file.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n crash-trace-%{version} -p1
|
%setup -n crash-trace-%{version}
|
||||||
|
%patch0001 -p1
|
||||||
|
%patch0002 -p1
|
||||||
|
%ifarch loongarch64
|
||||||
|
%patch0003 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make
|
make
|
||||||
@ -32,6 +38,9 @@ cp %{_builddir}/crash-trace-%{version}/trace.so %{buildroot}%{_libdir}/crash/ext
|
|||||||
%doc COPYING
|
%doc COPYING
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 14 2022 Wenlong Zhang <zhangwenlong@loongson.cn> - 3.0-2
|
||||||
|
- add loongarch support for crash-trace-command
|
||||||
|
|
||||||
* Tue Jan 18 2022 SimpleUpdate Robot <tc@openeuler.org> - 3.0-1
|
* Tue Jan 18 2022 SimpleUpdate Robot <tc@openeuler.org> - 3.0-1
|
||||||
- Upgrade to version 3.0
|
- Upgrade to version 3.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user