2019-04-03 20:52:36 +07:00
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
# Copyright © 2019 Intel Corporation
|
|
|
|
|
|
|
|
# Test the headers are compilable as standalone units
|
|
|
|
header_test := \
|
|
|
|
i915_active_types.h \
|
2019-04-29 19:29:19 +07:00
|
|
|
i915_drv.h \
|
2019-04-03 20:52:36 +07:00
|
|
|
i915_gem_context_types.h \
|
2019-04-25 03:07:14 +07:00
|
|
|
i915_gem_pm.h \
|
2019-04-29 19:29:19 +07:00
|
|
|
i915_params.h \
|
2019-04-03 20:52:36 +07:00
|
|
|
i915_priolist_types.h \
|
2019-04-29 19:29:19 +07:00
|
|
|
i915_reg.h \
|
2019-04-03 20:52:36 +07:00
|
|
|
i915_scheduler_types.h \
|
|
|
|
i915_timeline_types.h \
|
2019-04-05 18:00:19 +07:00
|
|
|
intel_atomic_plane.h \
|
2019-04-05 18:00:03 +07:00
|
|
|
intel_audio.h \
|
2019-04-29 19:29:20 +07:00
|
|
|
intel_bios.h \
|
2019-04-05 18:00:25 +07:00
|
|
|
intel_cdclk.h \
|
2019-04-05 18:00:10 +07:00
|
|
|
intel_color.h \
|
2019-04-05 18:00:06 +07:00
|
|
|
intel_connector.h \
|
2019-04-05 18:00:04 +07:00
|
|
|
intel_crt.h \
|
2019-04-05 18:00:07 +07:00
|
|
|
intel_csr.h \
|
2019-04-05 18:00:05 +07:00
|
|
|
intel_ddi.h \
|
2019-04-05 18:00:17 +07:00
|
|
|
intel_dp.h \
|
2019-04-29 19:29:25 +07:00
|
|
|
intel_dp_link_training.h \
|
2019-04-29 19:29:22 +07:00
|
|
|
intel_dpll_mgr.h \
|
2019-04-29 19:29:19 +07:00
|
|
|
intel_drv.h \
|
2019-04-29 19:29:23 +07:00
|
|
|
intel_dsi.h \
|
2019-04-05 18:00:23 +07:00
|
|
|
intel_dvo.h \
|
2019-04-29 19:29:21 +07:00
|
|
|
intel_dvo_dev.h \
|
2019-04-05 18:00:08 +07:00
|
|
|
intel_fbc.h \
|
2019-04-05 18:00:16 +07:00
|
|
|
intel_fbdev.h \
|
2019-04-29 19:29:24 +07:00
|
|
|
intel_fifo_underrun.h \
|
2019-04-05 18:00:02 +07:00
|
|
|
intel_frontbuffer.h \
|
2019-04-05 18:00:13 +07:00
|
|
|
intel_hdcp.h \
|
2019-04-05 18:00:18 +07:00
|
|
|
intel_hdmi.h \
|
2019-04-05 18:00:11 +07:00
|
|
|
intel_lspcon.h \
|
2019-04-05 18:00:22 +07:00
|
|
|
intel_lvds.h \
|
2019-04-05 18:00:14 +07:00
|
|
|
intel_panel.h \
|
2019-04-05 18:00:20 +07:00
|
|
|
intel_pipe_crc.h \
|
2019-04-05 18:00:15 +07:00
|
|
|
intel_pm.h \
|
2019-04-05 18:00:09 +07:00
|
|
|
intel_psr.h \
|
2019-04-26 15:17:22 +07:00
|
|
|
intel_sideband.h \
|
2019-04-05 18:00:12 +07:00
|
|
|
intel_sdvo.h \
|
2019-04-05 18:00:24 +07:00
|
|
|
intel_sprite.h \
|
2019-04-25 03:07:13 +07:00
|
|
|
intel_tv.h \
|
2019-04-29 19:29:19 +07:00
|
|
|
intel_uncore.h \
|
2019-04-25 03:07:13 +07:00
|
|
|
intel_wakeref.h
|
2019-04-03 20:52:36 +07:00
|
|
|
|
|
|
|
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)))
|