Files
i915-sriov-dkms/Makefile
bbaa f68ce7cadb Use our own config instead of depending on the target config.
Some older kernels may not include the Kconfig options we rely on due to
renames or code cleanups. Accurately detecting which symbols are
available would require implementing our own conftest logic, similar to
OpenZFS, which would add unnecessary complexity.

Instead, we explicitly enable all features here and assume their
dependencies are available. If any dependencies are missing, the build
will naturally fail during compilation.
2025-11-13 13:59:29 +08:00

23 lines
611 B
Makefile

DKMS_MODULE_VERSION := "2025.11.10-sriov"
DKMS_MODULE_ORIGIN_KERNEL := "6.18-rc5"
LINUXINCLUDE := \
-I$(src)/include \
-I$(src)/include/uapi \
-I$(src)/include/trace \
$(LINUXINCLUDE) \
-include $(src)/include/config.h
CONFIG_DRM_GPUSVM := y # we vendor our own copy of the GPUSVM module
subdir-ccflags-y += \
-DDKMS_MODULE_VERSION='$(DKMS_MODULE_VERSION)' \
-DDKMS_MODULE_ORIGIN_KERNEL='$(DKMS_MODULE_ORIGIN_KERNEL)' \
-DDKMS_MODULE_SOURCE_DIR='$(abspath $(src))'
obj-m += compat/
obj-m += drivers/gpu/drm/i915/
obj-m += drivers/gpu/drm/xe/
.PHONY: default clean modules load unload install patch