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 \
|
|
|
|
i915_gem_context_types.h \
|
|
|
|
i915_priolist_types.h \
|
|
|
|
i915_scheduler_types.h \
|
|
|
|
i915_timeline_types.h \
|
2019-04-05 18:00:03 +07:00
|
|
|
intel_audio.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-03 20:52:36 +07:00
|
|
|
intel_context_types.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-03 20:52:36 +07:00
|
|
|
intel_engine_types.h \
|
2019-04-05 18:00:08 +07:00
|
|
|
intel_fbc.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:11 +07:00
|
|
|
intel_lspcon.h \
|
2019-04-05 18:00:14 +07:00
|
|
|
intel_panel.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-05 18:00:12 +07:00
|
|
|
intel_sdvo.h \
|
2019-04-03 20:52:36 +07: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)))
|