2019-04-03 16:52:36 +03:00
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
# Copyright © 2019 Intel Corporation
|
|
|
|
|
|
|
|
# Test the headers are compilable as standalone units
|
|
|
|
header_test := \
|
|
|
|
i915_active_types.h \
|
|
|
|
i915_gem_context_types.h \
|
|
|
|
i915_priolist_types.h \
|
|
|
|
i915_scheduler_types.h \
|
|
|
|
i915_timeline_types.h \
|
2019-04-05 14:00:19 +03:00
|
|
|
intel_atomic_plane.h \
|
2019-04-05 14:00:03 +03:00
|
|
|
intel_audio.h \
|
2019-04-05 14:00:25 +03:00
|
|
|
intel_cdclk.h \
|
2019-04-05 14:00:10 +03:00
|
|
|
intel_color.h \
|
2019-04-05 14:00:06 +03:00
|
|
|
intel_connector.h \
|
2019-04-03 16:52:36 +03:00
|
|
|
intel_context_types.h \
|
2019-04-05 14:00:04 +03:00
|
|
|
intel_crt.h \
|
2019-04-05 14:00:07 +03:00
|
|
|
intel_csr.h \
|
2019-04-05 14:00:05 +03:00
|
|
|
intel_ddi.h \
|
2019-04-05 14:00:17 +03:00
|
|
|
intel_dp.h \
|
2019-04-05 14:00:23 +03:00
|
|
|
intel_dvo.h \
|
2019-04-03 16:52:36 +03:00
|
|
|
intel_engine_types.h \
|
2019-04-05 14:00:08 +03:00
|
|
|
intel_fbc.h \
|
2019-04-05 14:00:16 +03:00
|
|
|
intel_fbdev.h \
|
2019-04-05 14:00:02 +03:00
|
|
|
intel_frontbuffer.h \
|
2019-04-05 14:00:13 +03:00
|
|
|
intel_hdcp.h \
|
2019-04-05 14:00:18 +03:00
|
|
|
intel_hdmi.h \
|
2019-04-05 14:00:11 +03:00
|
|
|
intel_lspcon.h \
|
2019-04-05 14:00:22 +03:00
|
|
|
intel_lvds.h \
|
2019-04-05 14:00:14 +03:00
|
|
|
intel_panel.h \
|
2019-04-05 14:00:20 +03:00
|
|
|
intel_pipe_crc.h \
|
2019-04-05 14:00:15 +03:00
|
|
|
intel_pm.h \
|
2019-04-05 14:00:09 +03:00
|
|
|
intel_psr.h \
|
2019-04-05 14:00:12 +03:00
|
|
|
intel_sdvo.h \
|
2019-04-05 14:00:24 +03:00
|
|
|
intel_sprite.h \
|
2019-04-05 14:00:21 +03:00
|
|
|
intel_tv.h \
|
2019-04-03 16:52:36 +03:00
|
|
|
intel_workarounds_types.h
|
|
|
|
|
|
|
|
quiet_cmd_header_test = HDRTEST $@
|
|
|
|
cmd_header_test = echo "\#include \"$(<F)\"" > $@
|
|
|
|
|
|
|
|
header_test_%.c: %.h
|
|
|
|
$(call cmd,header_test)
|
|
|
|
|
|
|
|
i915-$(CONFIG_DRM_I915_WERROR) += $(foreach h,$(header_test),$(patsubst %.h,header_test_%.o,$(h)))
|
|
|
|
|
|
|
|
clean-files += $(foreach h,$(header_test),$(patsubst %.h,header_test_%.c,$(h)))
|