summaryrefslogtreecommitdiffstats
path: root/recipes-extended/qat/files/qat17_0.6.0-1-qat-update-KDIR-for-cross-compilation.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/qat/files/qat17_0.6.0-1-qat-update-KDIR-for-cross-compilation.patch')
-rw-r--r--recipes-extended/qat/files/qat17_0.6.0-1-qat-update-KDIR-for-cross-compilation.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/recipes-extended/qat/files/qat17_0.6.0-1-qat-update-KDIR-for-cross-compilation.patch b/recipes-extended/qat/files/qat17_0.6.0-1-qat-update-KDIR-for-cross-compilation.patch
new file mode 100644
index 0000000..78fc44b
--- /dev/null
+++ b/recipes-extended/qat/files/qat17_0.6.0-1-qat-update-KDIR-for-cross-compilation.patch
@@ -0,0 +1,38 @@
1From ae306d58c1bfc3d1c01d0e54ecfbfbbce39a0d4e Mon Sep 17 00:00:00 2001
2From: "Tan, Raymond" <raymond.tan@intel.com>
3Date: Wed, 30 May 2018 22:17:58 +0800
4Subject: [PATCH] update KDIR for cross-compilation
5
6Upstream-Status: Inappropriate [Configuration]
7
8This patch updates the kernel path for cross-compilation, avoid using the host
9machine path.
10
11Signed-off-by: Tan, Raymond <raymond.tan@intel.com>
12---
13 quickassist/qat/Makefile | 6 +++---
14 1 file changed, 3 insertions(+), 3 deletions(-)
15
16diff --git a/quickassist/qat/Makefile b/quickassist/qat/Makefile
17index ab9a381..8608378 100644
18--- a/quickassist/qat/Makefile
19+++ b/quickassist/qat/Makefile
20@@ -61,13 +61,13 @@ $(info Compiling with Heartbeat Failure Simulation feature)
21 endif
22
23 ifeq ($(KERNELRELEASE),)
24-KDIR ?= $(INSTALL_MOD_PATH)/lib/modules/$(shell uname -r)/build
25-ifneq ($(shell if [ -e $(KDIR)/include/config/auto.conf ]; then echo 1; fi),1)
26+KDIR ?= $(KERNEL_SOURCE_ROOT)
27+ifneq ($(shell if [ -e $(KERNEL_BUILDDIR)/include/config/auto.conf ]; then echo 1; fi),1)
28 $(error ERROR: Kernel header files not found. Install the appropriate \
29 kernel development package necessary for building external kernel modules \
30 or run 'make oldconfig && make modules_prepare' on kernel src to fix it)
31 endif
32-include $(KDIR)/include/config/auto.conf
33+include $(KERNEL_BUILDDIR)/include/config/auto.conf
34 INSTALL_FW_PATH ?= $(INSTALL_MOD_PATH)/lib/firmware
35
36 default: modules
37--
381.9.1