Makefile (8bdbde7c4c84286aff55c0af37bcf0a72828d98f) | Makefile (f6c823f9b9d40f6811a6da4bcf6005a52f28c6d6) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for the drm device driver. This driver provides support for the 4# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher. 5 | 1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for the drm device driver. This driver provides support for the 4# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher. 5 |
6# Unconditionally enable W=1 warnings locally 7# --- begin copy-paste W=1 warnings from scripts/Makefile.extrawarn 8subdir-ccflags-y += -Wextra -Wunused -Wno-unused-parameter 9subdir-ccflags-y += -Wmissing-declarations 10subdir-ccflags-y += $(call cc-option, -Wrestrict) 11subdir-ccflags-y += -Wmissing-format-attribute 12subdir-ccflags-y += -Wmissing-prototypes 13subdir-ccflags-y += -Wold-style-definition 14subdir-ccflags-y += -Wmissing-include-dirs 15subdir-ccflags-y += $(call cc-option, -Wunused-but-set-variable) 16subdir-ccflags-y += $(call cc-option, -Wunused-const-variable) 17subdir-ccflags-y += $(call cc-option, -Wpacked-not-aligned) 18subdir-ccflags-y += $(call cc-option, -Wformat-overflow) | 6# Enable W=1 warnings not enabled in drm subsystem Makefile |
19subdir-ccflags-y += $(call cc-option, -Wformat-truncation) | 7subdir-ccflags-y += $(call cc-option, -Wformat-truncation) |
20subdir-ccflags-y += $(call cc-option, -Wstringop-truncation) 21# The following turn off the warnings enabled by -Wextra 22ifeq ($(findstring 2, $(KBUILD_EXTRA_WARN)),) 23subdir-ccflags-y += -Wno-missing-field-initializers 24subdir-ccflags-y += -Wno-type-limits 25subdir-ccflags-y += -Wno-shift-negative-value 26endif 27ifeq ($(findstring 3, $(KBUILD_EXTRA_WARN)),) 28subdir-ccflags-y += -Wno-sign-compare 29endif 30# --- end copy-paste | |
31 32# Enable -Werror in CI and development 33subdir-ccflags-$(CONFIG_DRM_XE_WERROR) += -Werror 34 35subdir-ccflags-y += -I$(obj) -I$(srctree)/$(src) 36 37# generated sources 38hostprogs := xe_gen_wa_oob --- 45 unchanged lines hidden (view full) --- 84 xe_gt_ccs_mode.o \ 85 xe_gt_clock.o \ 86 xe_gt_debugfs.o \ 87 xe_gt_freq.o \ 88 xe_gt_idle.o \ 89 xe_gt_mcr.o \ 90 xe_gt_pagefault.o \ 91 xe_gt_sysfs.o \ | 8 9# Enable -Werror in CI and development 10subdir-ccflags-$(CONFIG_DRM_XE_WERROR) += -Werror 11 12subdir-ccflags-y += -I$(obj) -I$(srctree)/$(src) 13 14# generated sources 15hostprogs := xe_gen_wa_oob --- 45 unchanged lines hidden (view full) --- 61 xe_gt_ccs_mode.o \ 62 xe_gt_clock.o \ 63 xe_gt_debugfs.o \ 64 xe_gt_freq.o \ 65 xe_gt_idle.o \ 66 xe_gt_mcr.o \ 67 xe_gt_pagefault.o \ 68 xe_gt_sysfs.o \ |
92 xe_gt_throttle_sysfs.o \ | 69 xe_gt_throttle.o \ |
93 xe_gt_tlb_invalidation.o \ 94 xe_gt_topology.o \ 95 xe_guc.o \ 96 xe_guc_ads.o \ 97 xe_guc_ct.o \ 98 xe_guc_db_mgr.o \ 99 xe_guc_debugfs.o \ 100 xe_guc_hwconfig.o \ --- 37 unchanged lines hidden (view full) --- 138 xe_ttm_sys_mgr.o \ 139 xe_ttm_stolen_mgr.o \ 140 xe_ttm_vram_mgr.o \ 141 xe_tuning.o \ 142 xe_uc.o \ 143 xe_uc_debugfs.o \ 144 xe_uc_fw.o \ 145 xe_vm.o \ | 70 xe_gt_tlb_invalidation.o \ 71 xe_gt_topology.o \ 72 xe_guc.o \ 73 xe_guc_ads.o \ 74 xe_guc_ct.o \ 75 xe_guc_db_mgr.o \ 76 xe_guc_debugfs.o \ 77 xe_guc_hwconfig.o \ --- 37 unchanged lines hidden (view full) --- 115 xe_ttm_sys_mgr.o \ 116 xe_ttm_stolen_mgr.o \ 117 xe_ttm_vram_mgr.o \ 118 xe_tuning.o \ 119 xe_uc.o \ 120 xe_uc_debugfs.o \ 121 xe_uc_fw.o \ 122 xe_vm.o \ |
123 xe_vram.o \ |
|
146 xe_vram_freq.o \ 147 xe_wait_user_fence.o \ 148 xe_wa.o \ 149 xe_wopcm.o 150 151xe-$(CONFIG_HMM_MIRROR) += xe_hmm.o 152 153# graphics hardware monitoring (HWMON) support 154xe-$(CONFIG_HWMON) += xe_hwmon.o 155 156# graphics virtualization (SR-IOV) support 157xe-y += \ | 124 xe_vram_freq.o \ 125 xe_wait_user_fence.o \ 126 xe_wa.o \ 127 xe_wopcm.o 128 129xe-$(CONFIG_HMM_MIRROR) += xe_hmm.o 130 131# graphics hardware monitoring (HWMON) support 132xe-$(CONFIG_HWMON) += xe_hwmon.o 133 134# graphics virtualization (SR-IOV) support 135xe-y += \ |
136 xe_gt_sriov_vf.o \ 137 xe_gt_sriov_vf_debugfs.o \ |
|
158 xe_guc_relay.o \ 159 xe_memirq.o \ 160 xe_sriov.o 161 162xe-$(CONFIG_PCI_IOV) += \ 163 xe_gt_sriov_pf.o \ 164 xe_gt_sriov_pf_config.o \ 165 xe_gt_sriov_pf_control.o \ | 138 xe_guc_relay.o \ 139 xe_memirq.o \ 140 xe_sriov.o 141 142xe-$(CONFIG_PCI_IOV) += \ 143 xe_gt_sriov_pf.o \ 144 xe_gt_sriov_pf_config.o \ 145 xe_gt_sriov_pf_control.o \ |
146 xe_gt_sriov_pf_debugfs.o \ 147 xe_gt_sriov_pf_monitor.o \ |
|
166 xe_gt_sriov_pf_policy.o \ | 148 xe_gt_sriov_pf_policy.o \ |
149 xe_gt_sriov_pf_service.o \ |
|
167 xe_lmtt.o \ 168 xe_lmtt_2l.o \ 169 xe_lmtt_ml.o \ | 150 xe_lmtt.o \ 151 xe_lmtt_2l.o \ 152 xe_lmtt_ml.o \ |
153 xe_pci_sriov.o \ |
|
170 xe_sriov_pf.o 171 172# include helpers for tests even when XE is built-in 173ifdef CONFIG_DRM_XE_KUNIT_TEST 174xe-y += tests/xe_kunit_helpers.o 175endif 176 177# i915 Display compat #defines and #includes --- 21 unchanged lines hidden (view full) --- 199 display/intel_fb_bo.o \ 200 display/intel_fbdev_fb.o \ 201 display/xe_display.o \ 202 display/xe_display_misc.o \ 203 display/xe_display_rps.o \ 204 display/xe_dsb_buffer.o \ 205 display/xe_fb_pin.o \ 206 display/xe_hdcp_gsc.o \ | 154 xe_sriov_pf.o 155 156# include helpers for tests even when XE is built-in 157ifdef CONFIG_DRM_XE_KUNIT_TEST 158xe-y += tests/xe_kunit_helpers.o 159endif 160 161# i915 Display compat #defines and #includes --- 21 unchanged lines hidden (view full) --- 183 display/intel_fb_bo.o \ 184 display/intel_fbdev_fb.o \ 185 display/xe_display.o \ 186 display/xe_display_misc.o \ 187 display/xe_display_rps.o \ 188 display/xe_dsb_buffer.o \ 189 display/xe_fb_pin.o \ 190 display/xe_hdcp_gsc.o \ |
207 display/xe_plane_initial.o \ 208 display/xe_tdf.o | 191 display/xe_plane_initial.o |
209 210# SOC code shared with i915 211xe-$(CONFIG_DRM_XE_DISPLAY) += \ 212 i915-soc/intel_dram.o \ 213 i915-soc/intel_pch.o 214 215# Display code shared with i915 216xe-$(CONFIG_DRM_XE_DISPLAY) += \ 217 i915-display/icl_dsi.o \ | 192 193# SOC code shared with i915 194xe-$(CONFIG_DRM_XE_DISPLAY) += \ 195 i915-soc/intel_dram.o \ 196 i915-soc/intel_pch.o 197 198# Display code shared with i915 199xe-$(CONFIG_DRM_XE_DISPLAY) += \ 200 i915-display/icl_dsi.o \ |
218 i915-display/intel_alpm.o \ | |
219 i915-display/intel_atomic.o \ 220 i915-display/intel_atomic_plane.o \ 221 i915-display/intel_audio.o \ 222 i915-display/intel_backlight.o \ 223 i915-display/intel_bios.o \ 224 i915-display/intel_bw.o \ 225 i915-display/intel_cdclk.o \ 226 i915-display/intel_color.o \ --- 104 unchanged lines hidden --- | 201 i915-display/intel_atomic.o \ 202 i915-display/intel_atomic_plane.o \ 203 i915-display/intel_audio.o \ 204 i915-display/intel_backlight.o \ 205 i915-display/intel_bios.o \ 206 i915-display/intel_bw.o \ 207 i915-display/intel_cdclk.o \ 208 i915-display/intel_color.o \ --- 104 unchanged lines hidden --- |