diff --git a/1002-add-loongarch64-support-for-kpatch-build.patch b/1002-add-loongarch64-support-for-kpatch-build.patch new file mode 100644 index 0000000000000000000000000000000000000000..c2221703ffaba15a8bbf420f10c221cae7f60dcd --- /dev/null +++ b/1002-add-loongarch64-support-for-kpatch-build.patch @@ -0,0 +1,25 @@ +From 82005a0ca4d9c8afe83bbd2b55eb3747628e6905 Mon Sep 17 00:00:00 2001 +From: Wenlong Zhang +Date: Fri, 20 Oct 2023 03:07:41 +0000 +Subject: [PATCH] add loongarch64 support for kpatch-build + +--- + kpatch-build/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/kpatch-build/Makefile b/kpatch-build/Makefile +index 7fb2231..efa26fe 100644 +--- a/kpatch-build/Makefile ++++ b/kpatch-build/Makefile +@@ -22,7 +22,7 @@ PLUGIN_CFLAGS := $(filter-out -Wconversion, $(CFLAGS)) + PLUGIN_CFLAGS += -shared -I$(GCC_PLUGINS_DIR)/include \ + -Igcc-plugins -fPIC -fno-rtti -O2 -Wall + endif +-ifeq ($(filter $(ARCH),aarch64 s390x x86_64 ppc64le),) ++ifeq ($(filter $(ARCH),aarch64 s390x x86_64 ppc64le loongarch64),) + $(error Unsupported architecture ${ARCH}, check https://github.com/dynup/kpatch/#supported-architectures) + endif + +-- +2.40.1 + diff --git a/kpatch-build.spec b/kpatch-build.spec index 0fd721f53e19975682212b56705912608fa4e780..0e546b33e6eb2af546aad2e7fba7fe7546445204 100644 --- a/kpatch-build.spec +++ b/kpatch-build.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %define debug_package %{nil} Name: kpatch-build @@ -16,6 +16,7 @@ Requires: bison flex openssl-devel elfutils elfutils-devel dwarves Requires: kernel-devel gcc patch make Patch1001: 1001-change-the-install-dir-to-system-path.patch +Patch1002: 1002-add-loongarch64-support-for-kpatch-build.patch %description kpatch-build is a hot patch creation tool that can perform CVE and @@ -62,5 +63,8 @@ install -m 644 kmod/patch/* %{buildroot}/%{_datadir}/kpatch/patch %doc doc/arm64-upstream-prerequisites.md %changelog +* Wed Oct 18 2023 Wenlong Zhang - 1.0.0-2 +- add loong64 support for kpatch-build + * Tue Jun 20 2022 happy_orange - 1.0.0-1 - package init.