Files
kernel/kernel-modules/intel-opae-fpga/centos/patches/Fix-wrong-kernel-version.patch
Dongqi Chen 243b56cfb8 Update intel-opae-fpga driver to build with 4.18 kernel from CentOS 8
(cherry picked from commit 734f29df903e075e1084e5c5027aa02b0cfcccb6)

driver sign method is updated to align with 4.18 kernel.
There is a compile issue due to 4.18 kernel in CentOS 8 contains
upstream 5.x kernel's change. Fix it by force code to go with
5.x kernel path.

Add Fix-wrong-kernel-version.patch
Fix command 'uname -r' error to get host kernel version

Change-Id: I32592614a6457dde6c68fb13b5380e5caa0328e1
Story: 2007308
Task: 38803
Depends-On: https://review.opendev.org/720325
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Signed-off-by: Dongqi Chen <chen.dq@neusoft.com>
2020-04-24 11:02:29 +08:00

26 lines
842 B
Diff

From 934c6a908315f7f5943760e9b9047e1225c54d3e Mon Sep 17 00:00:00 2001
From: Dongqi Chen <chen.dq@neusoft.com>
Date: Wed, 22 Apr 2020 23:42:26 -0700
Subject: [PATCH] Fix wrong kernel version
Signed-off-by: Dongqi Chen <chen.dq@neusoft.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 0dfd0a8..4db08f2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD ?= $(shell pwd)
-kerval = $(shell uname -r | sed 's/\([0-9]*\.[0-9]*\)\..*/\1/')
+kerval = $(shell echo $(KERNELDIR) | sed 's/.*\/\([0-9]*\.[0-9]*\)\..*/\1/')
cflags-y += -Wno-unused-value -Wno-unused-label -I$(M)/include -I$(M)/include/uapi -I$(M)/include/intel
cflags-y += -I$(M)/build/include -I$(M)/build/include/uapi -I$(M)/build/include/intel
--
1.8.3.1