Makefile (4db102dcb0396a4ccf89b1eac0f4eb3fd167a080) | Makefile (f01ece502af0e8c6ed5af1facbd88fe9a6160a1e) |
---|---|
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 --- 62 unchanged lines hidden (view full) --- 71 xe_drm_client.o \ 72 xe_exec.o \ 73 xe_execlist.o \ 74 xe_exec_queue.o \ 75 xe_force_wake.o \ 76 xe_ggtt.o \ 77 xe_gpu_scheduler.o \ 78 xe_gsc.o \ | 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 --- 62 unchanged lines hidden (view full) --- 71 xe_drm_client.o \ 72 xe_exec.o \ 73 xe_execlist.o \ 74 xe_exec_queue.o \ 75 xe_force_wake.o \ 76 xe_ggtt.o \ 77 xe_gpu_scheduler.o \ 78 xe_gsc.o \ |
79 xe_gsc_proxy.o \ |
|
79 xe_gsc_submit.o \ 80 xe_gt.o \ 81 xe_gt_ccs_mode.o \ 82 xe_gt_clock.o \ 83 xe_gt_debugfs.o \ 84 xe_gt_freq.o \ 85 xe_gt_idle.o \ 86 xe_gt_mcr.o \ 87 xe_gt_pagefault.o \ 88 xe_gt_sysfs.o \ 89 xe_gt_throttle_sysfs.o \ 90 xe_gt_tlb_invalidation.o \ 91 xe_gt_topology.o \ 92 xe_guc.o \ 93 xe_guc_ads.o \ 94 xe_guc_ct.o \ | 80 xe_gsc_submit.o \ 81 xe_gt.o \ 82 xe_gt_ccs_mode.o \ 83 xe_gt_clock.o \ 84 xe_gt_debugfs.o \ 85 xe_gt_freq.o \ 86 xe_gt_idle.o \ 87 xe_gt_mcr.o \ 88 xe_gt_pagefault.o \ 89 xe_gt_sysfs.o \ 90 xe_gt_throttle_sysfs.o \ 91 xe_gt_tlb_invalidation.o \ 92 xe_gt_topology.o \ 93 xe_guc.o \ 94 xe_guc_ads.o \ 95 xe_guc_ct.o \ |
96 xe_guc_db_mgr.o \ |
|
95 xe_guc_debugfs.o \ 96 xe_guc_hwconfig.o \ 97 xe_guc_log.o \ 98 xe_guc_pc.o \ 99 xe_guc_submit.o \ 100 xe_heci_gsc.o \ 101 xe_hw_engine.o \ 102 xe_hw_engine_class_sysfs.o \ --- 29 unchanged lines hidden (view full) --- 132 xe_ttm_sys_mgr.o \ 133 xe_ttm_stolen_mgr.o \ 134 xe_ttm_vram_mgr.o \ 135 xe_tuning.o \ 136 xe_uc.o \ 137 xe_uc_debugfs.o \ 138 xe_uc_fw.o \ 139 xe_vm.o \ | 97 xe_guc_debugfs.o \ 98 xe_guc_hwconfig.o \ 99 xe_guc_log.o \ 100 xe_guc_pc.o \ 101 xe_guc_submit.o \ 102 xe_heci_gsc.o \ 103 xe_hw_engine.o \ 104 xe_hw_engine_class_sysfs.o \ --- 29 unchanged lines hidden (view full) --- 134 xe_ttm_sys_mgr.o \ 135 xe_ttm_stolen_mgr.o \ 136 xe_ttm_vram_mgr.o \ 137 xe_tuning.o \ 138 xe_uc.o \ 139 xe_uc_debugfs.o \ 140 xe_uc_fw.o \ 141 xe_vm.o \ |
142 xe_vram_freq.o \ |
|
140 xe_wait_user_fence.o \ 141 xe_wa.o \ 142 xe_wopcm.o 143 144# graphics hardware monitoring (HWMON) support 145xe-$(CONFIG_HWMON) += xe_hwmon.o 146 147# graphics virtualization (SR-IOV) support | 143 xe_wait_user_fence.o \ 144 xe_wa.o \ 145 xe_wopcm.o 146 147# graphics hardware monitoring (HWMON) support 148xe-$(CONFIG_HWMON) += xe_hwmon.o 149 150# graphics virtualization (SR-IOV) support |
148xe-y += xe_sriov.o | 151xe-y += \ 152 xe_guc_relay.o \ 153 xe_memirq.o \ 154 xe_sriov.o |
149 150xe-$(CONFIG_PCI_IOV) += \ 151 xe_lmtt.o \ 152 xe_lmtt_2l.o \ 153 xe_lmtt_ml.o 154 | 155 156xe-$(CONFIG_PCI_IOV) += \ 157 xe_lmtt.o \ 158 xe_lmtt_2l.o \ 159 xe_lmtt_ml.o 160 |
161xe-$(CONFIG_DRM_XE_KUNIT_TEST) += \ 162 tests/xe_kunit_helpers.o 163 |
|
155# i915 Display compat #defines and #includes 156subdir-ccflags-$(CONFIG_DRM_XE_DISPLAY) += \ 157 -I$(srctree)/$(src)/display/ext \ 158 -I$(srctree)/$(src)/compat-i915-headers \ 159 -I$(srctree)/drivers/gpu/drm/xe/display/ \ 160 -I$(srctree)/drivers/gpu/drm/i915/display/ \ 161 -Ddrm_i915_gem_object=xe_bo \ 162 -Ddrm_i915_private=xe_device --- 8 unchanged lines hidden (view full) --- 171 172# Rule to build display code shared with i915 173$(obj)/i915-display/%.o: $(srctree)/drivers/gpu/drm/i915/display/%.c FORCE 174 $(call cmd,force_checksrc) 175 $(call if_changed_rule,cc_o_c) 176 177# Display code specific to xe 178xe-$(CONFIG_DRM_XE_DISPLAY) += \ | 164# i915 Display compat #defines and #includes 165subdir-ccflags-$(CONFIG_DRM_XE_DISPLAY) += \ 166 -I$(srctree)/$(src)/display/ext \ 167 -I$(srctree)/$(src)/compat-i915-headers \ 168 -I$(srctree)/drivers/gpu/drm/xe/display/ \ 169 -I$(srctree)/drivers/gpu/drm/i915/display/ \ 170 -Ddrm_i915_gem_object=xe_bo \ 171 -Ddrm_i915_private=xe_device --- 8 unchanged lines hidden (view full) --- 180 181# Rule to build display code shared with i915 182$(obj)/i915-display/%.o: $(srctree)/drivers/gpu/drm/i915/display/%.c FORCE 183 $(call cmd,force_checksrc) 184 $(call if_changed_rule,cc_o_c) 185 186# Display code specific to xe 187xe-$(CONFIG_DRM_XE_DISPLAY) += \ |
179 xe_display.o \ 180 display/xe_fb_pin.o \ 181 display/xe_hdcp_gsc.o \ 182 display/xe_plane_initial.o \ 183 display/xe_display_rps.o \ | 188 display/ext/i915_irq.o \ 189 display/ext/i915_utils.o \ 190 display/intel_fb_bo.o \ 191 display/intel_fbdev_fb.o \ 192 display/xe_display.o \ |
184 display/xe_display_misc.o \ | 193 display/xe_display_misc.o \ |
194 display/xe_display_rps.o \ |
|
185 display/xe_dsb_buffer.o \ | 195 display/xe_dsb_buffer.o \ |
186 display/intel_fbdev_fb.o \ 187 display/intel_fb_bo.o \ 188 display/ext/i915_irq.o \ 189 display/ext/i915_utils.o | 196 display/xe_fb_pin.o \ 197 display/xe_hdcp_gsc.o \ 198 display/xe_plane_initial.o |
190 191# SOC code shared with i915 192xe-$(CONFIG_DRM_XE_DISPLAY) += \ 193 i915-soc/intel_dram.o \ 194 i915-soc/intel_pch.o 195 196# Display code shared with i915 197xe-$(CONFIG_DRM_XE_DISPLAY) += \ --- 10 unchanged lines hidden (view full) --- 208 i915-display/intel_connector.o \ 209 i915-display/intel_crtc.o \ 210 i915-display/intel_crtc_state_dump.o \ 211 i915-display/intel_cursor.o \ 212 i915-display/intel_cx0_phy.o \ 213 i915-display/intel_ddi.o \ 214 i915-display/intel_ddi_buf_trans.o \ 215 i915-display/intel_display.o \ | 199 200# SOC code shared with i915 201xe-$(CONFIG_DRM_XE_DISPLAY) += \ 202 i915-soc/intel_dram.o \ 203 i915-soc/intel_pch.o 204 205# Display code shared with i915 206xe-$(CONFIG_DRM_XE_DISPLAY) += \ --- 10 unchanged lines hidden (view full) --- 217 i915-display/intel_connector.o \ 218 i915-display/intel_crtc.o \ 219 i915-display/intel_crtc_state_dump.o \ 220 i915-display/intel_cursor.o \ 221 i915-display/intel_cx0_phy.o \ 222 i915-display/intel_ddi.o \ 223 i915-display/intel_ddi_buf_trans.o \ 224 i915-display/intel_display.o \ |
216 i915-display/intel_display_debugfs.o \ 217 i915-display/intel_display_debugfs_params.o \ | |
218 i915-display/intel_display_device.o \ 219 i915-display/intel_display_driver.o \ 220 i915-display/intel_display_irq.o \ 221 i915-display/intel_display_params.o \ 222 i915-display/intel_display_power.o \ 223 i915-display/intel_display_power_map.o \ 224 i915-display/intel_display_power_well.o \ 225 i915-display/intel_display_trace.o \ --- 27 unchanged lines hidden (view full) --- 253 i915-display/intel_hotplug_irq.o \ 254 i915-display/intel_hti.o \ 255 i915-display/intel_link_bw.o \ 256 i915-display/intel_lspcon.o \ 257 i915-display/intel_modeset_lock.o \ 258 i915-display/intel_modeset_setup.o \ 259 i915-display/intel_modeset_verify.o \ 260 i915-display/intel_panel.o \ | 225 i915-display/intel_display_device.o \ 226 i915-display/intel_display_driver.o \ 227 i915-display/intel_display_irq.o \ 228 i915-display/intel_display_params.o \ 229 i915-display/intel_display_power.o \ 230 i915-display/intel_display_power_map.o \ 231 i915-display/intel_display_power_well.o \ 232 i915-display/intel_display_trace.o \ --- 27 unchanged lines hidden (view full) --- 260 i915-display/intel_hotplug_irq.o \ 261 i915-display/intel_hti.o \ 262 i915-display/intel_link_bw.o \ 263 i915-display/intel_lspcon.o \ 264 i915-display/intel_modeset_lock.o \ 265 i915-display/intel_modeset_setup.o \ 266 i915-display/intel_modeset_verify.o \ 267 i915-display/intel_panel.o \ |
261 i915-display/intel_pipe_crc.o \ | |
262 i915-display/intel_pmdemand.o \ 263 i915-display/intel_pps.o \ 264 i915-display/intel_psr.o \ 265 i915-display/intel_qp_tables.o \ 266 i915-display/intel_quirks.o \ 267 i915-display/intel_snps_phy.o \ 268 i915-display/intel_tc.o \ 269 i915-display/intel_vblank.o \ --- 10 unchanged lines hidden (view full) --- 280 i915-display/intel_acpi.o \ 281 i915-display/intel_opregion.o 282endif 283 284ifeq ($(CONFIG_DRM_FBDEV_EMULATION),y) 285 xe-$(CONFIG_DRM_XE_DISPLAY) += i915-display/intel_fbdev.o 286endif 287 | 268 i915-display/intel_pmdemand.o \ 269 i915-display/intel_pps.o \ 270 i915-display/intel_psr.o \ 271 i915-display/intel_qp_tables.o \ 272 i915-display/intel_quirks.o \ 273 i915-display/intel_snps_phy.o \ 274 i915-display/intel_tc.o \ 275 i915-display/intel_vblank.o \ --- 10 unchanged lines hidden (view full) --- 286 i915-display/intel_acpi.o \ 287 i915-display/intel_opregion.o 288endif 289 290ifeq ($(CONFIG_DRM_FBDEV_EMULATION),y) 291 xe-$(CONFIG_DRM_XE_DISPLAY) += i915-display/intel_fbdev.o 292endif 293 |
294ifeq ($(CONFIG_DEBUG_FS),y) 295 xe-$(CONFIG_DRM_XE_DISPLAY) += \ 296 i915-display/intel_display_debugfs.o \ 297 i915-display/intel_display_debugfs_params.o \ 298 i915-display/intel_pipe_crc.o 299endif 300 |
|
288obj-$(CONFIG_DRM_XE) += xe.o 289obj-$(CONFIG_DRM_XE_KUNIT_TEST) += tests/ 290 291# header test 292hdrtest_find_args := -not -path xe_rtp_helpers.h 293ifneq ($(CONFIG_DRM_XE_DISPLAY),y) 294 hdrtest_find_args += -not -path display/\* -not -path compat-i915-headers/\* -not -path xe_display.h 295endif 296 297always-$(CONFIG_DRM_XE_WERROR) += \ 298 $(patsubst %.h,%.hdrtest, $(shell cd $(srctree)/$(src) && find * -name '*.h' $(hdrtest_find_args))) 299 300quiet_cmd_hdrtest = HDRTEST $(patsubst %.hdrtest,%.h,$@) 301 cmd_hdrtest = $(CC) -DHDRTEST $(filter-out $(CFLAGS_GCOV), $(c_flags)) -S -o /dev/null -x c /dev/null -include $<; touch $@ 302 303$(obj)/%.hdrtest: $(src)/%.h FORCE 304 $(call if_changed_dep,hdrtest) | 301obj-$(CONFIG_DRM_XE) += xe.o 302obj-$(CONFIG_DRM_XE_KUNIT_TEST) += tests/ 303 304# header test 305hdrtest_find_args := -not -path xe_rtp_helpers.h 306ifneq ($(CONFIG_DRM_XE_DISPLAY),y) 307 hdrtest_find_args += -not -path display/\* -not -path compat-i915-headers/\* -not -path xe_display.h 308endif 309 310always-$(CONFIG_DRM_XE_WERROR) += \ 311 $(patsubst %.h,%.hdrtest, $(shell cd $(srctree)/$(src) && find * -name '*.h' $(hdrtest_find_args))) 312 313quiet_cmd_hdrtest = HDRTEST $(patsubst %.hdrtest,%.h,$@) 314 cmd_hdrtest = $(CC) -DHDRTEST $(filter-out $(CFLAGS_GCOV), $(c_flags)) -S -o /dev/null -x c /dev/null -include $<; touch $@ 315 316$(obj)/%.hdrtest: $(src)/%.h FORCE 317 $(call if_changed_dep,hdrtest) |