1 Star 0 Fork 14

zhangkea/kae_driver

forked from src-openEuler/kae_driver 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-ci-kernel-version-patch.patch 2.12 KB
一键复制 编辑 原始数据 按行查看 历史
mayunhui 提交于 2023-02-07 11:32 . 修改了版本号
From 0f373a79d760586d194040896b6abfd4ac8c4414 Mon Sep 17 00:00:00 2001
From: z00590711 <[email protected]>
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/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/6.1*/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/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; \
@@ -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/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
--
2.35.0.windows.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangkea/kae_driver.git
[email protected]:zhangkea/kae_driver.git
zhangkea
kae_driver
kae_driver
master

搜索帮助