diff --git a/0001-ci-kernel-version-patch.patch b/0001-ci-kernel-version-patch.patch index 047e011e58ec0ccc30de117bb8cf34bf90153de9..ff522cc1dff94303dd39048ee9830a660fdda897 100644 --- a/0001-ci-kernel-version-patch.patch +++ b/0001-ci-kernel-version-patch.patch @@ -15,12 +15,12 @@ index 3cb5a30..bf9e27c 100644 -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; \ ++KERNEL_PATH := /lib/modules/6.1*/build ++KSP := $(shell if test -d /lib/modules/6.1*/source; then \ ++ echo /lib/modules/6.1*/source; \ else \ - echo /lib/modules/`uname -r`/build; \ -+ echo /lib/modules/5.10*/build; \ ++ echo /lib/modules/6.1*/build; \ fi) obj-m += uacce/ @@ -30,8 +30,8 @@ index 3cb5a30..bf9e27c 100644 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 \;) ++ $(shell mkdir -p /lib/modules/6.1*/extra) ++ $(shell find . -name "*.ko" -exec cp -f {} /lib/modules/6.1*/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; \ @@ -44,11 +44,11 @@ index 3cb5a30..bf9e27c 100644 - 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 /lib/modules/6.1*/extra/uacce.ko ++ rm -rf /lib/modules/6.1*/extra/hisi_qm.ko ++ rm -rf /lib/modules/6.1*/extra/hisi_sec2.ko ++ rm -rf /lib/modules/6.1*/extra/hisi_hpre.ko ++ rm -rf /lib/modules/6.1*/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 diff --git a/kae_driver.spec b/kae_driver.spec index e8e11c1df7ebeec1ee12ceea4bae4d5872af7a39..17d6b584c75900837d20fde5f099eb274efeb10b 100644 --- a/kae_driver.spec +++ b/kae_driver.spec @@ -232,6 +232,9 @@ echo "hisi_trng_v2 modules uninstalled" %config(noreplace) /etc/modprobe.d/hisi_trng_v2.conf %changelog +* Tue Feb 7 2023 mayunhui - 2.0.1 +- Fix kae_driver build error in the patch file + * Wed Nov 11 2020 wangyue - 1.3.9-1 - Fix kae_driver build error on kernel 5.10