!15 [sync] PR-13: 添加龙芯和申威架构支持
From: @openeuler-sync-bot Reviewed-by: @Charlie_li Signed-off-by: @Charlie_li
This commit is contained in:
commit
f554378c2b
27
1000-add-sw_64-support-not-upstream-modified.patch
Normal file
27
1000-add-sw_64-support-not-upstream-modified.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From 2f7ac2e08003c42ef13ed001b5344e2ddba36ef2 Mon Sep 17 00:00:00 2001
|
||||||
|
From: yangchenguang <yangchenguang@kylinsec.com.cn>
|
||||||
|
Date: Sat, 13 May 2023 16:40:50 +0800
|
||||||
|
Subject: [PATCH] Add sw_64 support
|
||||||
|
|
||||||
|
Signed-off-by: yangchenguang <yangchenguang@kylinsec.com.cn>
|
||||||
|
---
|
||||||
|
Makefile | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index 0d35d4f..325822e 100755
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -30,6 +30,10 @@ ifeq ($(shell arch), aarch64)
|
||||||
|
TARGET=ARM64
|
||||||
|
TARGET_CFLAGS=
|
||||||
|
endif
|
||||||
|
+ifeq ($(shell arch), sw_64)
|
||||||
|
+ TARGET=SW_64
|
||||||
|
+ TARGET_CFLAGS=
|
||||||
|
+endif
|
||||||
|
|
||||||
|
INCDIR=/usr/include/crash
|
||||||
|
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
28
1001-add-loongarch-support-not-upstream-modified.patch
Normal file
28
1001-add-loongarch-support-not-upstream-modified.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
From 2f7ac2e08003c42ef13ed001b5344e2ddba36ef2 Mon Sep 17 00:00:00 2001
|
||||||
|
From: yangchenguang <yangchenguang@kylinsec.com.cn>
|
||||||
|
Date: Sat, 13 May 2023 16:40:50 +0800
|
||||||
|
Subject: [PATCH] Add loongarch64 support
|
||||||
|
|
||||||
|
Signed-off-by: yangchenguang <yangchenguang@kylinsec.com.cn>
|
||||||
|
---
|
||||||
|
Makefile | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index 325822e..a148715 100755
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -34,6 +34,10 @@ ifeq ($(shell arch), sw_64)
|
||||||
|
TARGET=SW_64
|
||||||
|
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: 2
|
Release: 3
|
||||||
Summary: Crash utility's trace extension module
|
Summary: Crash utility's trace extension module
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Source: https://github.com/fujitsu/crash-trace/archive/v%{version}/%{name}-%{version}.tar.gz
|
Source: https://github.com/fujitsu/crash-trace/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
@ -12,6 +12,9 @@ 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
|
||||||
|
|
||||||
|
Patch1000: 1000-add-sw_64-support-not-upstream-modified.patch
|
||||||
|
Patch1001: 1001-add-loongarch-support-not-upstream-modified.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.
|
||||||
@ -32,6 +35,9 @@ cp %{_builddir}/crash-trace-%{version}/trace.so %{buildroot}%{_libdir}/crash/ext
|
|||||||
%doc COPYING
|
%doc COPYING
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 10 2023 herengui <herengui@kylinsec.com.cn> - 3.0-3
|
||||||
|
- Add support for sw_64 and loongarch64
|
||||||
|
|
||||||
* Mon Nov 14 2022 yaoxin <yaoxin30@h-partners.com> - 3.0-2
|
* Mon Nov 14 2022 yaoxin <yaoxin30@h-partners.com> - 3.0-2
|
||||||
- Modify invalid Source and URL
|
- Modify invalid Source and URL
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user