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-05-02 22:02:43 +07:00
|
|
|
i915_debugfs.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:27 +07:00
|
|
|
i915_irq.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-05-02 22:02:45 +07:00
|
|
|
i915_utils.h \
|
2019-05-02 22:02:42 +07:00
|
|
|
intel_acpi.h \
|
2019-04-29 19:53:31 +07:00
|
|
|
intel_atomic.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-29 19:29:38 +07:00
|
|
|
intel_combo_phy.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:26 +07:00
|
|
|
intel_dp_aux_backlight.h \
|
2019-04-29 19:29:25 +07:00
|
|
|
intel_dp_link_training.h \
|
2019-04-29 19:29:33 +07:00
|
|
|
intel_dp_mst.h \
|
2019-05-02 22:02:40 +07:00
|
|
|
intel_dpio_phy.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-29 19:29:34 +07:00
|
|
|
intel_dsi_dcs_backlight.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-05-02 22:02:47 +07:00
|
|
|
intel_gmbus.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-29 19:50:11 +07:00
|
|
|
intel_hotplug.h \
|
2019-05-02 22:02:41 +07:00
|
|
|
intel_lpe_audio.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-29 19:29:31 +07:00
|
|
|
intel_overlay.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-29 19:29:30 +07:00
|
|
|
intel_quirks.h \
|
2019-05-22 17:35:05 +07:00
|
|
|
intel_runtime_pm.h \
|
2019-04-05 18:00:12 +07:00
|
|
|
intel_sdvo.h \
|
2019-04-29 19:29:30 +07:00
|
|
|
intel_sideband.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-29 19:29:32 +07:00
|
|
|
intel_vdsc.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)))
|