crash-trace-command/1001-add-loongarch-support-not-upstream-modified.patch
herengui 42ab621292 添加龙芯和申威架构支持
Signed-off-by: herengui <herengui@kylinsec.com.cn>
(cherry picked from commit 87c261a0384dd6db99e20cc20e04bcc4f71bd101)
2023-09-06 14:54:14 +08:00

29 lines
624 B
Diff

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