From 739f904284ac4f96496cc9f3b080a5276a9b317c Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 2 May 2026 20:21:00 +0200 Subject: Kernel: T8147: upgrade to 6.18 * Forwared port all out-of-tree driver patches * Add Intel QAT patch to make it compile for LInux 6.18 * Remove out-of-tree OpenVPN DCO module - now available upstream --- ...02-libusdm-kernel-space-fix-include-paths.patch | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 scripts/package-build/linux-kernel/patches/intel-qat/0002-libusdm-kernel-space-fix-include-paths.patch (limited to 'scripts/package-build/linux-kernel/patches/intel-qat/0002-libusdm-kernel-space-fix-include-paths.patch') diff --git a/scripts/package-build/linux-kernel/patches/intel-qat/0002-libusdm-kernel-space-fix-include-paths.patch b/scripts/package-build/linux-kernel/patches/intel-qat/0002-libusdm-kernel-space-fix-include-paths.patch new file mode 100644 index 00000000..299cd89a --- /dev/null +++ b/scripts/package-build/linux-kernel/patches/intel-qat/0002-libusdm-kernel-space-fix-include-paths.patch @@ -0,0 +1,23 @@ +From: Christian Breunig +Subject: [PATCH] libusdm_drv: fix EXTRA_CFLAGS include handling for kernel builds + +The kernel Makefile incorrectly concatenates "-I" with $(INCLUDES), but +$(INCLUDES) already contains "-I..." entries from linux_2.6_kernel_space.mk. + +That yields broken compiler arguments like "-I-I/path/...", which breaks header +lookup on newer GCC (observed as missing qae_mem.h / Osal.h during out-of-tree +module builds against Linux 6.18). + +--- a/quickassist/utilities/libusdm_drv/linux/Makefile ++++ b/quickassist/utilities/libusdm_drv/linux/Makefile +@@ -187,7 +187,9 @@ export OUTPUT_NAME + #kernel space rules here + #produce two artefacts: module and static library and copy them + ifeq ($(OS),linux) +-EXTRA_CFLAGS+=-I$(INCLUDES) -Werror -ftree-ter ++# INCLUDES already contains "-I..." entries (see env_files/linux_2.6_kernel_space.mk). ++# Prefixing with "-I" again breaks header lookup on newer toolchains (GCC 14+). ++EXTRA_CFLAGS+=$(INCLUDES) -Werror -ftree-ter + obj-m+=$(OUTPUT_NAME).o + $(OUTPUT_NAME)-objs :=$(patsubst %.c,%.o, $(MODULE_SOURCES)) $(ADDITIONAL_KERNEL_LIBS) + lib-m := $(patsubst %.c,%.o, $(SOURCES)) $(patsubst %.S,%.o, $(ASM_SOURCES)) -- cgit v1.2.3