修改了版本号

Signed-off-by: HUI <mayunhui3@huawei.com>
This commit is contained in:
HUI 2023-02-07 11:32:14 +00:00 committed by Gitee
parent 9482c5a6ba
commit b9d496b9d2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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