2019-04-03 13:52:36 +00: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 11:00:19 +00:00
|
|
|
intel_atomic_plane.h \
|
2019-04-05 11:00:03 +00:00
|
|
|
intel_audio.h \
|
2019-04-05 11:00:25 +00:00
|
|
|
intel_cdclk.h \
|
2019-04-05 11:00:10 +00:00
|
|
|
intel_color.h \
|
2019-04-05 11:00:06 +00:00
|
|
|
intel_connector.h \
|
2019-04-03 13:52:36 +00:00
|
|
|
intel_context_types.h \
|
2019-04-05 11:00:04 +00:00
|
|
|
intel_crt.h \
|
2019-04-05 11:00:07 +00:00
|
|
|
intel_csr.h \
|
2019-04-05 11:00:05 +00:00
|
|
|
intel_ddi.h \
|
2019-04-05 11:00:17 +00:00
|
|
|
intel_dp.h \
|
2019-04-05 11:00:23 +00:00
|
|
|
intel_dvo.h \
|
2019-04-03 13:52:36 +00:00
|
|
|
intel_engine_types.h \
|
2019-04-05 11:00:08 +00:00
|
|
|
intel_fbc.h \
|
2019-04-05 11:00:16 +00:00
|
|
|
intel_fbdev.h \
|
2019-04-05 11:00:02 +00:00
|
|
|
intel_frontbuffer.h \
|
2019-04-05 11:00:13 +00:00
|
|
|
intel_hdcp.h \
|
2019-04-05 11:00:18 +00:00
|
|
|
intel_hdmi.h \
|
2019-04-05 11:00:11 +00:00
|
|
|
intel_lspcon.h \
|
2019-04-05 11:00:22 +00:00
|
|
|
intel_lvds.h \
|
2019-04-05 11:00:14 +00:00
|
|
|
intel_panel.h \
|
2019-04-05 11:00:20 +00:00
|
|
|
intel_pipe_crc.h \
|
2019-04-05 11:00:15 +00:00
|
|
|
intel_pm.h \
|
2019-04-05 11:00:09 +00:00
|
|
|
intel_psr.h \
|
2019-04-05 11:00:12 +00:00
|
|
|
intel_sdvo.h \
|
2019-04-05 11:00:24 +00:00
|
|
|
intel_sprite.h \
|
2019-04-05 11:00:21 +00:00
|
|
|
intel_tv.h \
|
2019-04-03 13:52:36 +00: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)))
|