mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
drm/xe/kunit: Build DP link display tests
Hook the shared i915 display DP link KUnit tests into the xe display test build. Build the shared display test source from the i915 display test directory when xe display support is enabled. v2: Unchanged. v3: Add SPDX license header. (Michał) Reviewed-by: Michał Grzelak <michal.grzelak@intel.com> Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://patch.msgid.link/20260707124849.135319-2-imre.deak@intel.com
This commit is contained in:
parent
82ae0ce1ff
commit
d5a48b4817
|
|
@ -373,6 +373,9 @@ xe-$(CONFIG_DRM_XE_DP_TUNNEL) += \
|
|||
|
||||
obj-$(CONFIG_DRM_XE) += xe.o
|
||||
obj-$(CONFIG_DRM_XE_KUNIT_TEST) += tests/
|
||||
ifeq ($(CONFIG_DRM_XE_DISPLAY),y)
|
||||
obj-$(CONFIG_DRM_XE_KUNIT_TEST) += display/tests/
|
||||
endif
|
||||
|
||||
# header test
|
||||
hdrtest_find_args := -not -path xe_rtp_helpers.h
|
||||
|
|
|
|||
13
drivers/gpu/drm/xe/display/tests/Makefile
Normal file
13
drivers/gpu/drm/xe/display/tests/Makefile
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
subdir-ccflags-$(CONFIG_DRM_XE_DISPLAY) += \
|
||||
-I$(srctree)/drivers/gpu/drm/i915/display/
|
||||
|
||||
# Rule to build display code shared with i915
|
||||
$(obj)/i915-display/tests/%.o: $(srctree)/drivers/gpu/drm/i915/display/tests/%.c FORCE
|
||||
$(call cmd,force_checksrc)
|
||||
$(call if_changed_rule,cc_o_c)
|
||||
|
||||
obj-$(CONFIG_DRM_XE_KUNIT_TEST) += xe_display_test.o
|
||||
xe_display_test-y = \
|
||||
i915-display/tests/intel_dp_link_test.o
|
||||
Loading…
Reference in New Issue
Block a user