From 3d20fdb1f1e6c4a0d4f95bdb7dcd38dbc408d402 Mon Sep 17 00:00:00 2001 From: HUI Date: Thu, 2 Feb 2023 03:36:09 +0000 Subject: [PATCH 1/2] update kae_driver.spec. Signed-off-by: HUI --- kae_driver.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/kae_driver.spec b/kae_driver.spec index e8e11c1..1e408c3 100644 --- a/kae_driver.spec +++ b/kae_driver.spec @@ -14,7 +14,6 @@ Conflicts: %{name} < %{version}-%{release} Provides: %{name} = %{version}-%{release} BuildRequires: kernel-devel, gcc, make ExclusiveArch: aarch64 -Patch0001: 0001-ci-kernel-version-patch.patch %define kernel_version %(uname -r) %define kae_driver_path %{_builddir}/%{name}-%{version} -- Gitee From 12ee932cc179212ed2b388dac691e6557536b4a3 Mon Sep 17 00:00:00 2001 From: HUI Date: Thu, 2 Feb 2023 03:36:26 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=200001?= =?UTF-8?q?-ci-kernel-version-patch.patch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 0001-ci-kernel-version-patch.patch | 57 ------------------------------ 1 file changed, 57 deletions(-) delete mode 100644 0001-ci-kernel-version-patch.patch diff --git a/0001-ci-kernel-version-patch.patch b/0001-ci-kernel-version-patch.patch deleted file mode 100644 index 047e011..0000000 --- a/0001-ci-kernel-version-patch.patch +++ /dev/null @@ -1,57 +0,0 @@ -From 0f373a79d760586d194040896b6abfd4ac8c4414 Mon Sep 17 00:00:00 2001 -From: z00590711 -Date: Sat, 12 Feb 2022 16:44:03 +0800 -Subject: [PATCH] ci kernel version patch - ---- - Makefile | 22 +++++++++++----------- - 1 file changed, 11 insertions(+), 11 deletions(-) - -diff --git a/Makefile b/Makefile -index 3cb5a30..bf9e27c 100644 ---- a/Makefile -+++ b/Makefile -@@ -1,8 +1,8 @@ --KERNEL_PATH := /lib/modules/`uname -r`/build --KSP := $(shell if test -d /lib/modules/`uname -r`/source; then \ -- echo /lib/modules/`uname -r`/source; \ -+KERNEL_PATH := /lib/modules/5.10*/build -+KSP := $(shell if test -d /lib/modules/5.10*/source; then \ -+ echo /lib/modules/5.10*/source; \ - else \ -- echo /lib/modules/`uname -r`/build; \ -+ echo /lib/modules/5.10*/build; \ - fi) - - obj-m += uacce/ -@@ -28,8 +28,8 @@ defaul: - # cp -f $(shell pwd)/include_uapi_linux/uacce.h $(KSP)/include/uapi/linux - - install: -- $(shell mkdir -p /lib/modules/`uname -r`/extra) -- $(shell find . -name "*.ko" -exec cp -f {} /lib/modules/`uname -r`/extra \;) -+ $(shell mkdir -p /lib/modules/5.10*/extra) -+ $(shell find . -name "*.ko" -exec cp -f {} /lib/modules/5.10*/extra \;) - depmod -a - $(shell if test -e /etc/modprobe.d/10-unsupported-modules.conf; then \ - sed -i "s/^allow_unsupported_modules.*/allow_unsupported_modules 1/" /etc/modprobe.d/10-unsupported-modules.conf; \ -@@ -50,11 +50,11 @@ uninstall: - modprobe -r hisi_sec2 - modprobe -r hisi_qm - modprobe -r uacce -- rm -rf /lib/modules/`uname -r`/extra/uacce.ko -- rm -rf /lib/modules/`uname -r`/extra/hisi_qm.ko -- rm -rf /lib/modules/`uname -r`/extra/hisi_sec2.ko -- rm -rf /lib/modules/`uname -r`/extra/hisi_hpre.ko -- rm -rf /lib/modules/`uname -r`/extra/hisi_zip.ko -+ rm -rf /lib/modules/5.10*/extra/uacce.ko -+ rm -rf /lib/modules/5.10*/extra/hisi_qm.ko -+ rm -rf /lib/modules/5.10*/extra/hisi_sec2.ko -+ rm -rf /lib/modules/5.10*/extra/hisi_hpre.ko -+ rm -rf /lib/modules/5.10*/extra/hisi_zip.ko - rm -rf /etc/modprobe.d/hisi_sec2.conf - rm -rf /etc/modprobe.d/hisi_hpre.conf - rm -rf /etc/modprobe.d/hisi_zip.conf --- -2.35.0.windows.1 - -- Gitee