Makefile 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # Makefile for the Linux kernel device drivers.
  4. #
  5. # 15 Sep 2000, Christoph Hellwig <hch@infradead.org>
  6. # Rewritten to use lists instead of if-statements.
  7. #
  8. obj-y += irqchip/
  9. obj-y += bus/
  10. obj-$(CONFIG_GENERIC_PHY) += phy/
  11. # GPIO must come after pinctrl as gpios may need to mux pins etc
  12. obj-$(CONFIG_PINCTRL) += pinctrl/
  13. obj-$(CONFIG_GPIOLIB) += gpio/
  14. obj-y += pwm/
  15. obj-y += pci/
  16. obj-$(CONFIG_PARISC) += parisc/
  17. obj-$(CONFIG_RAPIDIO) += rapidio/
  18. obj-y += video/
  19. obj-y += idle/
  20. # IPMI must come before ACPI in order to provide IPMI opregion support
  21. obj-y += char/ipmi/
  22. obj-$(CONFIG_ACPI) += acpi/
  23. obj-$(CONFIG_SFI) += sfi/
  24. # PnP must come after ACPI since it will eventually need to check if acpi
  25. # was used and do nothing if so
  26. obj-$(CONFIG_PNP) += pnp/
  27. obj-y += amba/
  28. obj-y += clk/
  29. # Many drivers will want to use DMA so this has to be made available
  30. # really early.
  31. obj-$(CONFIG_DMADEVICES) += dma/
  32. # SOC specific infrastructure drivers.
  33. obj-y += soc/
  34. obj-$(CONFIG_VIRTIO) += virtio/
  35. obj-$(CONFIG_VDPA) += vdpa/
  36. obj-$(CONFIG_XEN) += xen/
  37. # regulators early, since some subsystems rely on them to initialize
  38. obj-$(CONFIG_REGULATOR) += regulator/
  39. # reset controllers early, since gpu drivers might rely on them to initialize
  40. obj-$(CONFIG_RESET_CONTROLLER) += reset/
  41. # tty/ comes before char/ so that the VT console is the boot-time
  42. # default.
  43. obj-y += tty/
  44. obj-y += char/
  45. # iommu/ comes before gpu as gpu are using iommu controllers
  46. obj-y += iommu/
  47. # gpu/ comes after char for AGP vs DRM startup and after iommu
  48. obj-y += gpu/
  49. obj-$(CONFIG_CONNECTOR) += connector/
  50. # i810fb and intelfb depend on char/agp/
  51. obj-$(CONFIG_FB_I810) += video/fbdev/i810/
  52. obj-$(CONFIG_FB_INTEL) += video/fbdev/intelfb/
  53. obj-$(CONFIG_PARPORT) += parport/
  54. obj-$(CONFIG_NVM) += lightnvm/
  55. obj-y += base/ block/ misc/ mfd/ nfc/ light/
  56. obj-$(CONFIG_LIBNVDIMM) += nvdimm/
  57. obj-$(CONFIG_DAX) += dax/
  58. obj-$(CONFIG_DMA_SHARED_BUFFER) += dma-buf/
  59. obj-$(CONFIG_NUBUS) += nubus/
  60. obj-y += macintosh/
  61. obj-$(CONFIG_IDE) += ide/
  62. obj-y += scsi/
  63. obj-y += nvme/
  64. obj-$(CONFIG_ATA) += ata/
  65. obj-$(CONFIG_TARGET_CORE) += target/
  66. obj-$(CONFIG_MTD) += mtd/
  67. obj-$(CONFIG_SPI) += spi/
  68. obj-$(CONFIG_SPMI) += spmi/
  69. obj-$(CONFIG_HSI) += hsi/
  70. obj-$(CONFIG_SLIMBUS) += slimbus/
  71. obj-y += net/
  72. obj-$(CONFIG_ATM) += atm/
  73. obj-$(CONFIG_FUSION) += message/
  74. obj-y += firewire/
  75. obj-$(CONFIG_UIO) += uio/
  76. obj-$(CONFIG_VFIO) += vfio/
  77. obj-y += cdrom/
  78. obj-y += auxdisplay/
  79. obj-$(CONFIG_PCCARD) += pcmcia/
  80. obj-$(CONFIG_DIO) += dio/
  81. obj-$(CONFIG_SBUS) += sbus/
  82. obj-$(CONFIG_ZORRO) += zorro/
  83. obj-$(CONFIG_ATA_OVER_ETH) += block/aoe/
  84. obj-$(CONFIG_PARIDE) += block/paride/
  85. obj-$(CONFIG_TC) += tc/
  86. obj-$(CONFIG_USB_PHY) += usb/
  87. obj-$(CONFIG_USB) += usb/
  88. obj-$(CONFIG_USB_SUPPORT) += usb/
  89. obj-$(CONFIG_PCI) += usb/
  90. obj-$(CONFIG_USB_GADGET) += usb/
  91. obj-$(CONFIG_OF) += usb/
  92. obj-$(CONFIG_SERIO) += input/serio/
  93. obj-$(CONFIG_GAMEPORT) += input/gameport/
  94. obj-$(CONFIG_INPUT) += input/
  95. obj-$(CONFIG_RTC_LIB) += rtc/
  96. obj-y += i2c/ i3c/ media/
  97. obj-$(CONFIG_PPS) += pps/
  98. obj-y += ptp/
  99. obj-$(CONFIG_W1) += w1/
  100. obj-y += power/
  101. obj-$(CONFIG_HWMON) += hwmon/
  102. obj-$(CONFIG_THERMAL) += thermal/
  103. obj-$(CONFIG_WATCHDOG) += watchdog/
  104. obj-$(CONFIG_MD) += md/
  105. obj-$(CONFIG_BT) += bluetooth/
  106. obj-$(CONFIG_ACCESSIBILITY) += accessibility/
  107. obj-$(CONFIG_ISDN) += isdn/
  108. obj-$(CONFIG_EDAC) += edac/
  109. obj-$(CONFIG_EISA) += eisa/
  110. obj-$(CONFIG_PM_OPP) += opp/
  111. obj-$(CONFIG_CPU_FREQ) += cpufreq/
  112. obj-$(CONFIG_CPU_IDLE) += cpuidle/
  113. obj-y += mmc/
  114. obj-$(CONFIG_MEMSTICK) += memstick/
  115. obj-$(CONFIG_NEW_LEDS) += leds/
  116. obj-$(CONFIG_INFINIBAND) += infiniband/
  117. obj-y += firmware/
  118. obj-$(CONFIG_CRYPTO) += crypto/
  119. obj-$(CONFIG_SUPERH) += sh/
  120. ifndef CONFIG_ARCH_USES_GETTIMEOFFSET
  121. obj-y += clocksource/
  122. endif
  123. obj-$(CONFIG_DCA) += dca/
  124. obj-$(CONFIG_HID) += hid/
  125. obj-$(CONFIG_PPC_PS3) += ps3/
  126. obj-$(CONFIG_OF) += of/
  127. obj-$(CONFIG_SSB) += ssb/
  128. obj-$(CONFIG_BCMA) += bcma/
  129. obj-$(CONFIG_VHOST_RING) += vhost/
  130. obj-$(CONFIG_VHOST_IOTLB) += vhost/
  131. obj-$(CONFIG_VHOST) += vhost/
  132. obj-$(CONFIG_VLYNQ) += vlynq/
  133. obj-$(CONFIG_GREYBUS) += greybus/
  134. obj-$(CONFIG_STAGING) += staging/
  135. obj-y += platform/
  136. obj-$(CONFIG_MAILBOX) += mailbox/
  137. obj-$(CONFIG_HWSPINLOCK) += hwspinlock/
  138. obj-$(CONFIG_REMOTEPROC) += remoteproc/
  139. obj-$(CONFIG_RPMSG) += rpmsg/
  140. obj-$(CONFIG_SOUNDWIRE) += soundwire/
  141. # Virtualization drivers
  142. obj-$(CONFIG_VIRT_DRIVERS) += virt/
  143. obj-$(CONFIG_HYPERV) += hv/
  144. obj-$(CONFIG_PM_DEVFREQ) += devfreq/
  145. obj-$(CONFIG_EXTCON) += extcon/
  146. obj-$(CONFIG_MEMORY) += memory/
  147. obj-$(CONFIG_IIO) += iio/
  148. obj-$(CONFIG_VME_BUS) += vme/
  149. obj-$(CONFIG_IPACK_BUS) += ipack/
  150. obj-$(CONFIG_NTB) += ntb/
  151. obj-$(CONFIG_POWERCAP) += powercap/
  152. obj-$(CONFIG_MCB) += mcb/
  153. obj-$(CONFIG_PERF_EVENTS) += perf/
  154. obj-$(CONFIG_RAS) += ras/
  155. obj-$(CONFIG_USB4) += thunderbolt/
  156. obj-$(CONFIG_CORESIGHT) += hwtracing/coresight/
  157. obj-y += hwtracing/intel_th/
  158. obj-$(CONFIG_STM) += hwtracing/stm/
  159. obj-$(CONFIG_ANDROID) += android/
  160. obj-$(CONFIG_NVMEM) += nvmem/
  161. obj-$(CONFIG_FPGA) += fpga/
  162. obj-$(CONFIG_FSI) += fsi/
  163. obj-$(CONFIG_TEE) += tee/
  164. obj-$(CONFIG_MULTIPLEXER) += mux/
  165. obj-$(CONFIG_UNISYS_VISORBUS) += visorbus/
  166. obj-$(CONFIG_SIOX) += siox/
  167. obj-$(CONFIG_GNSS) += gnss/
  168. obj-$(CONFIG_INTERCONNECT) += interconnect/
  169. obj-$(CONFIG_COUNTER) += counter/
  170. obj-$(CONFIG_MOST) += most/
  171. obj-$(CONFIG_LIGHT_GPU_VIV) += gpu-viv/