Makefile.header-test 1.02 KB
Newer Older
1 2 3 4 5 6 7
# 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 \
8
	i915_gem_pm.h \
9 10 11
	i915_priolist_types.h \
	i915_scheduler_types.h \
	i915_timeline_types.h \
12
	intel_atomic_plane.h \
13
	intel_audio.h \
14
	intel_cdclk.h \
15
	intel_color.h \
16
	intel_connector.h \
17
	intel_crt.h \
18
	intel_csr.h \
19
	intel_ddi.h \
20
	intel_dp.h \
21
	intel_dvo.h \
22
	intel_fbc.h \
23
	intel_fbdev.h \
24
	intel_frontbuffer.h \
25
	intel_hdcp.h \
26
	intel_hdmi.h \
27
	intel_lspcon.h \
28
	intel_lvds.h \
29
	intel_panel.h \
30
	intel_pipe_crc.h \
31
	intel_pm.h \
32
	intel_psr.h \
33
	intel_sideband.h \
34
	intel_sdvo.h \
35
	intel_sprite.h \
36 37
	intel_tv.h \
	intel_wakeref.h
38 39 40 41 42 43 44 45 46 47

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