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 \
|
2019-05-02 23:02:43 +08:00
|
|
|
i915_debugfs.h \
|
2019-04-29 20:29:19 +08:00
|
|
|
i915_drv.h \
|
2019-06-26 22:40:10 +08:00
|
|
|
i915_fixed.h \
|
2019-06-21 02:37:05 +08:00
|
|
|
i915_gem_gtt.h \
|
2019-06-26 22:40:12 +08:00
|
|
|
i915_globals.h \
|
2019-04-29 20:29:27 +08:00
|
|
|
i915_irq.h \
|
2019-04-29 20:29:19 +08:00
|
|
|
i915_params.h \
|
2019-04-03 21:52:36 +08:00
|
|
|
i915_priolist_types.h \
|
2019-06-26 22:40:13 +08:00
|
|
|
i915_pvinfo.h \
|
2019-04-29 20:29:19 +08:00
|
|
|
i915_reg.h \
|
2019-04-03 21:52:36 +08:00
|
|
|
i915_scheduler_types.h \
|
2019-05-02 23:02:45 +08:00
|
|
|
i915_utils.h \
|
2019-06-26 22:40:14 +08:00
|
|
|
i915_vgpu.h \
|
2019-04-05 19:00:07 +08:00
|
|
|
intel_csr.h \
|
2019-04-29 20:29:19 +08:00
|
|
|
intel_drv.h \
|
2019-06-26 22:40:15 +08:00
|
|
|
intel_guc_ct.h \
|
2019-06-26 22:40:16 +08:00
|
|
|
intel_guc_fwif.h \
|
2019-06-26 22:40:17 +08:00
|
|
|
intel_guc_reg.h \
|
2019-06-26 22:40:18 +08:00
|
|
|
intel_gvt.h \
|
2019-04-05 19:00:15 +08:00
|
|
|
intel_pm.h \
|
2019-05-22 18:35:05 +08:00
|
|
|
intel_runtime_pm.h \
|
2019-04-29 20:29:30 +08:00
|
|
|
intel_sideband.h \
|
2019-06-26 22:40:19 +08:00
|
|
|
intel_uc_fw.h \
|
2019-04-29 20:29:19 +08:00
|
|
|
intel_uncore.h \
|
2019-04-25 04:07:13 +08:00
|
|
|
intel_wakeref.h
|
2019-04-03 21:52:36 +08: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)))
|