mirror of
https://github.com/strongtz/i915-sriov-dkms.git
synced 2026-05-06 21:53:25 +08:00
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.
23 lines
611 B
Makefile
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
|