Add support to compile driver of 5.10 version on machine with other kernel version.
Signed-off-by: YangXin <245051644@qq.com>
This commit is contained in:
parent
1650d52af9
commit
ba1ded49f6
36
0001-Enable-qtfs-compiled-on-machine-with-5.10-kernel.patch
Normal file
36
0001-Enable-qtfs-compiled-on-machine-with-5.10-kernel.patch
Normal file
@ -0,0 +1,36 @@
|
||||
From 61bf2162d88247a6595a17a00c66e31c3b8e19c0 Mon Sep 17 00:00:00 2001
|
||||
From: Yangxin <yangxin102@huawei.com>
|
||||
Date: Fri, 12 Aug 2022 16:31:02 +0800
|
||||
Subject: [PATCH] Enable qtfs compiled on machine with 5.10 kernel.
|
||||
|
||||
Signed-off-by: Yangxin <yangxin102@huawei.com>
|
||||
---
|
||||
qtfs/qtfs/Makefile | 2 +-
|
||||
qtfs/qtfs_server/Makefile | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/qtfs/qtfs/Makefile b/qtfs/qtfs/Makefile
|
||||
index f3c6014..fb6a51e 100644
|
||||
--- a/qtfs/qtfs/Makefile
|
||||
+++ b/qtfs/qtfs/Makefile
|
||||
@@ -1,5 +1,5 @@
|
||||
ccflags-y += -I$(src)/../ -I$(src) -DQTFS_CLIENT
|
||||
-KBUILD=/lib/modules/$(shell uname -r)/build/
|
||||
+KBUILD=/lib/modules/5.10*/build/
|
||||
|
||||
obj-m:=qtfs.o
|
||||
qtfs-objs:=qtfs-mod.o sb.o syscall.o ../conn.o xattr.o proc.o ../misc.o miss.o
|
||||
diff --git a/qtfs/qtfs_server/Makefile b/qtfs/qtfs_server/Makefile
|
||||
index c1c5ef6..13f9c3e 100644
|
||||
--- a/qtfs/qtfs_server/Makefile
|
||||
+++ b/qtfs/qtfs_server/Makefile
|
||||
@@ -1,5 +1,5 @@
|
||||
ccflags-y += -I$(src)/../ -I$(src) -DQTFS_SERVER
|
||||
-KBUILD=/lib/modules/$(shell uname -r)/build/
|
||||
+KBUILD=/lib/modules/5.10*/build/
|
||||
|
||||
obj-m:=qtfs_server.o
|
||||
qtfs_server-objs:=../conn.o fsops.o qtfs-server.o ../misc.o
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -9,8 +9,9 @@ URL: https://gitee.com/openeuler/dpu-utilities
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
Conflicts: %{name} < %{version}-%{release}
|
||||
Provides: %{name} = %{version}-%{release}
|
||||
%define kernel_version %(uname -r)
|
||||
%define kernel_version %(ls /lib/modules/ | grep 5.10 -m1)
|
||||
BuildRequires: kernel-devel, gcc, make
|
||||
Patch0: 0001-Enable-qtfs-compiled-on-machine-with-5.10-kernel.patch
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user