Makefile.header-test 1.3 KB
Newer Older
1 2 3 4 5 6
# SPDX-License-Identifier: MIT
# Copyright © 2019 Intel Corporation

# Test the headers are compilable as standalone units
header_test := \
	i915_active_types.h \
7
	i915_drv.h \
8
	i915_gem_context_types.h \
9
	i915_gem_pm.h \
10
	i915_irq.h \
11
	i915_params.h \
12
	i915_priolist_types.h \
13
	i915_reg.h \
14 15
	i915_scheduler_types.h \
	i915_timeline_types.h \
16
	intel_atomic_plane.h \
17
	intel_audio.h \
18
	intel_bios.h \
19
	intel_cdclk.h \
20
	intel_color.h \
21
	intel_connector.h \
22
	intel_crt.h \
23
	intel_csr.h \
24
	intel_ddi.h \
25
	intel_dp.h \
26
	intel_dp_aux_backlight.h \
27
	intel_dp_link_training.h \
28
	intel_dpll_mgr.h \
29
	intel_drv.h \
30
	intel_dsi.h \
31
	intel_dvo.h \
32
	intel_dvo_dev.h \
33
	intel_fbc.h \
34
	intel_fbdev.h \
35
	intel_fifo_underrun.h \
36
	intel_frontbuffer.h \
37
	intel_hdcp.h \
38
	intel_hdmi.h \
39
	intel_hotplug.h \
40
	intel_lspcon.h \
41
	intel_lvds.h \
42
	intel_overlay.h \
43
	intel_panel.h \
44
	intel_pipe_crc.h \
45
	intel_pm.h \
46
	intel_psr.h \
47
	intel_quirks.h \
48
	intel_sdvo.h \
49
	intel_sideband.h \
50
	intel_sprite.h \
51
	intel_tv.h \
52
	intel_uncore.h \
53
	intel_wakeref.h
54 55 56 57 58 59 60 61 62 63

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)))