9
0
forked from pool/crash-trace

Fix build for riscv64 and 32-bit arm #1

Merged
petesarik merged 1 commits from petesarik/crash-trace:main into main 2025-05-29 10:22:00 +02:00
4 changed files with 42 additions and 0 deletions

17
crash-trace-fix-arm.patch Normal file
View File

@@ -0,0 +1,17 @@
---
Makefile | 4 ++++
1 file changed, 4 insertions(+)
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,10 @@ ifeq ($(shell arch), aarch64)
TARGET=ARM64
TARGET_CFLAGS=
endif
+ifeq ($(patsubst arm%,arm,$(shell arch)), arm)
+ TARGET=ARM
+ TARGET_CFLAGS=
+endif
INCDIR=/usr/include/crash

View File

@@ -0,0 +1,17 @@
---
Makefile | 4 ++++
1 file changed, 4 insertions(+)
--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,10 @@ ifeq ($(patsubst arm%,arm,$(shell arch))
TARGET=ARM
TARGET_CFLAGS=
endif
+ifeq ($(shell arch), riscv64)
+ TARGET=RISCV64
+ TARGET_CFLAGS=
+endif
INCDIR=/usr/include/crash

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu May 29 08:10:33 UTC 2025 - Petr Tesařík <ptesarik@suse.com>
- crash-trace-fix-arm.patch: Fix build for 32-bit Arm.
- crash-trace-fix-riscv64.patch: Fix build for RISCV64.
-------------------------------------------------------------------
Sat Nov 19 20:53:37 UTC 2022 - Petr Tesařík <ptesarik@suse.com>

View File

@@ -25,6 +25,8 @@ Group: Development/Tools/Debuggers
URL: https://github.com/fujitsu/crash-trace
Source: https://github.com/fujitsu/crash-trace/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch1: %{name}-fix-aarch64-ppc64le.patch
Patch2: %{name}-fix-arm.patch
Patch3: %{name}-fix-riscv64.patch
BuildRequires: crash-devel
Requires: trace-cmd