Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. #
  2. # Makefile for the drm device driver. This driver provides support for the
  3. # Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
  4. ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/amd/include/asic_reg \
  5. -Idrivers/gpu/drm/amd/include \
  6. -Idrivers/gpu/drm/amd/amdgpu \
  7. -Idrivers/gpu/drm/amd/scheduler
  8. amdgpu-y := amdgpu_drv.o
  9. # add KMS driver
  10. amdgpu-y += amdgpu_device.o amdgpu_kms.o \
  11. amdgpu_atombios.o atombios_crtc.o amdgpu_connectors.o \
  12. atom.o amdgpu_fence.o amdgpu_ttm.o amdgpu_object.o amdgpu_gart.o \
  13. amdgpu_encoders.o amdgpu_display.o amdgpu_i2c.o \
  14. amdgpu_fb.o amdgpu_gem.o amdgpu_ring.o \
  15. amdgpu_cs.o amdgpu_bios.o amdgpu_benchmark.o amdgpu_test.o \
  16. amdgpu_pm.o atombios_dp.o amdgpu_afmt.o amdgpu_trace_points.o \
  17. atombios_encoders.o amdgpu_semaphore.o amdgpu_sa.o atombios_i2c.o \
  18. amdgpu_prime.o amdgpu_vm.o amdgpu_ib.o amdgpu_pll.o \
  19. amdgpu_ucode.o amdgpu_bo_list.o amdgpu_ctx.o amdgpu_sync.o
  20. # add asic specific block
  21. amdgpu-$(CONFIG_DRM_AMDGPU_CIK)+= cik.o cik_ih.o kv_smc.o kv_dpm.o \
  22. ci_smc.o ci_dpm.o dce_v8_0.o gfx_v7_0.o cik_sdma.o uvd_v4_2.o vce_v2_0.o \
  23. amdgpu_amdkfd_gfx_v7.o
  24. amdgpu-y += \
  25. vi.o
  26. # add GMC block
  27. amdgpu-y += \
  28. gmc_v7_0.o \
  29. gmc_v8_0.o
  30. # add IH block
  31. amdgpu-y += \
  32. amdgpu_irq.o \
  33. amdgpu_ih.o \
  34. iceland_ih.o \
  35. tonga_ih.o \
  36. cz_ih.o
  37. # add SMC block
  38. amdgpu-y += \
  39. amdgpu_dpm.o \
  40. cz_smc.o cz_dpm.o \
  41. tonga_smc.o tonga_dpm.o \
  42. fiji_smc.o fiji_dpm.o \
  43. iceland_smc.o iceland_dpm.o
  44. # add DCE block
  45. amdgpu-y += \
  46. dce_v10_0.o \
  47. dce_v11_0.o
  48. # add GFX block
  49. amdgpu-y += \
  50. amdgpu_gfx.o \
  51. gfx_v8_0.o
  52. # add async DMA block
  53. amdgpu-y += \
  54. sdma_v2_4.o \
  55. sdma_v3_0.o
  56. # add UVD block
  57. amdgpu-y += \
  58. amdgpu_uvd.o \
  59. uvd_v5_0.o \
  60. uvd_v6_0.o
  61. # add VCE block
  62. amdgpu-y += \
  63. amdgpu_vce.o \
  64. vce_v3_0.o
  65. # add amdkfd interfaces
  66. amdgpu-y += \
  67. amdgpu_amdkfd.o \
  68. amdgpu_amdkfd_gfx_v8.o
  69. # add cgs
  70. amdgpu-y += amdgpu_cgs.o
  71. # GPU scheduler
  72. amdgpu-y += \
  73. ../scheduler/gpu_scheduler.o \
  74. ../scheduler/sched_fence.o \
  75. amdgpu_sched.o
  76. amdgpu-$(CONFIG_COMPAT) += amdgpu_ioc32.o
  77. amdgpu-$(CONFIG_VGA_SWITCHEROO) += amdgpu_atpx_handler.o
  78. amdgpu-$(CONFIG_ACPI) += amdgpu_acpi.o
  79. amdgpu-$(CONFIG_MMU_NOTIFIER) += amdgpu_mn.o
  80. obj-$(CONFIG_DRM_AMDGPU)+= amdgpu.o
  81. CFLAGS_amdgpu_trace_points.o := -I$(src)