From 06f87de0adc960247266bc804a62887b6ced3dbc Mon Sep 17 00:00:00 2001
From: George Guo <guodongtai@kylinos.cn>
Date: Thu, 7 Nov 2024 11:13:50 +0800
Subject: [PATCH] kpatch/LoongArch: enable kpatch build

Since kpatch now supports LoongArch basically, enable the build.

Signed-off-by: George Guo <guodongtai@kylinos.cn>
---
 kpatch-build/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kpatch-build/Makefile b/kpatch-build/Makefile
index 4e964b7..0f01969 100644
--- a/kpatch-build/Makefile
+++ b/kpatch-build/Makefile
@@ -21,7 +21,7 @@ PLUGIN_CFLAGS := $(filter-out -std=gnu11 -Wconversion, $(CFLAGS))
 PLUGIN_CFLAGS += -shared -I$(GCC_PLUGINS_DIR)/include \
 		   -Igcc-plugins -fPIC -fno-rtti -O2 -Wall
 endif
-ifeq ($(filter $(ARCH),s390x x86_64 ppc64le),)
+ifeq ($(filter $(ARCH),s390x x86_64 ppc64le loongarch64),)
 $(error Unsupported architecture ${ARCH}, check https://github.com/dynup/kpatch/#supported-architectures)
 endif