2019-04-03 21:52:36 +08: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 19:00:03 +08:00
|
|
|
intel_audio.h \
|
2019-04-05 19:00:10 +08:00
|
|
|
intel_color.h \
|
2019-04-05 19:00:06 +08:00
|
|
|
intel_connector.h \
|
2019-04-03 21:52:36 +08:00
|
|
|
intel_context_types.h \
|
2019-04-05 19:00:04 +08:00
|
|
|
intel_crt.h \
|
2019-04-05 19:00:07 +08:00
|
|
|
intel_csr.h \
|
2019-04-05 19:00:05 +08:00
|
|
|
intel_ddi.h \
|
2019-04-03 21:52:36 +08:00
|
|
|
intel_engine_types.h \
|
2019-04-05 19:00:08 +08:00
|
|
|
intel_fbc.h \
|
2019-04-05 19:00:02 +08:00
|
|
|
intel_frontbuffer.h \
|
2019-04-05 19:00:13 +08:00
|
|
|
intel_hdcp.h \
|
2019-04-05 19:00:11 +08:00
|
|
|
intel_lspcon.h \
|
2019-04-05 19:00:09 +08:00
|
|
|
intel_psr.h \
|
2019-04-05 19:00:12 +08:00
|
|
|
intel_sdvo.h \
|
2019-04-03 21:52:36 +08: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)))
|