Makefile 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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-$(CONFIG_PCI) += pci/
  16. obj-$(CONFIG_PCI_ENDPOINT) += pci/endpoint/
  17. # PCI dwc controller drivers
  18. obj-y += pci/dwc/
  19. obj-$(CONFIG_PARISC) += parisc/
  20. obj-$(CONFIG_RAPIDIO) += rapidio/
  21. obj-y += video/
  22. obj-y += idle/
  23. # IPMI must come before ACPI in order to provide IPMI opregion support
  24. obj-y += char/ipmi/
  25. obj-$(CONFIG_ACPI) += acpi/
  26. obj-$(CONFIG_SFI) += sfi/
  27. # PnP must come after ACPI since it will eventually need to check if acpi
  28. # was used and do nothing if so
  29. obj-$(CONFIG_PNP) += pnp/
  30. obj-y += amba/
  31. obj-y += clk/
  32. # Many drivers will want to use DMA so this has to be made available
  33. # really early.
  34. obj-$(CONFIG_DMADEVICES) += dma/
  35. # SOC specific infrastructure drivers.
  36. obj-y += soc/
  37. obj-$(CONFIG_VIRTIO) += virtio/
  38. obj-$(CONFIG_XEN) += xen/
  39. # regulators early, since some subsystems rely on them to initialize
  40. obj-$(CONFIG_REGULATOR) += regulator/
  41. # reset controllers early, since gpu drivers might rely on them to initialize
  42. obj-$(CONFIG_RESET_CONTROLLER) += reset/
  43. # tty/ comes before char/ so that the VT console is the boot-time
  44. # default.
  45. obj-y += tty/
  46. obj-y += char/
  47. # iommu/ comes before gpu as gpu are using iommu controllers
  48. obj-$(CONFIG_IOMMU_SUPPORT) += iommu/
  49. # gpu/ comes after char for AGP vs DRM startup and after iommu
  50. obj-y += gpu/
  51. obj-$(CONFIG_CONNECTOR) += connector/
  52. # i810fb and intelfb depend on char/agp/
  53. obj-$(CONFIG_FB_I810) += video/fbdev/i810/
  54. obj-$(CONFIG_FB_INTEL) += video/fbdev/intelfb/
  55. obj-$(CONFIG_PARPORT) += parport/
  56. obj-$(CONFIG_NVM) += lightnvm/
  57. obj-y += base/ block/ misc/ mfd/ nfc/
  58. obj-$(CONFIG_LIBNVDIMM) += nvdimm/
  59. obj-$(CONFIG_DAX) += dax/
  60. obj-$(CONFIG_DMA_SHARED_BUFFER) += dma-buf/
  61. obj-$(CONFIG_NUBUS) += nubus/
  62. obj-y += macintosh/
  63. obj-$(CONFIG_IDE) += ide/
  64. obj-$(CONFIG_SCSI) += scsi/
  65. obj-y += nvme/
  66. obj-$(CONFIG_ATA) += ata/
  67. obj-$(CONFIG_TARGET_CORE) += target/
  68. obj-$(CONFIG_MTD) += mtd/
  69. obj-$(CONFIG_SPI) += spi/
  70. obj-$(CONFIG_SPMI) += spmi/
  71. obj-$(CONFIG_HSI) += hsi/
  72. obj-y += net/
  73. obj-$(CONFIG_ATM) += atm/
  74. obj-$(CONFIG_FUSION) += message/
  75. obj-y += firewire/
  76. obj-$(CONFIG_UIO) += uio/
  77. obj-$(CONFIG_VFIO) += vfio/
  78. obj-y += cdrom/
  79. obj-y += auxdisplay/
  80. obj-$(CONFIG_PCCARD) += pcmcia/
  81. obj-$(CONFIG_DIO) += dio/
  82. obj-$(CONFIG_SBUS) += sbus/
  83. obj-$(CONFIG_ZORRO) += zorro/
  84. obj-$(CONFIG_ATA_OVER_ETH) += block/aoe/
  85. obj-$(CONFIG_PARIDE) += block/paride/
  86. obj-$(CONFIG_TC) += tc/
  87. obj-$(CONFIG_UWB) += uwb/
  88. obj-$(CONFIG_USB_PHY) += usb/
  89. obj-$(CONFIG_USB) += usb/
  90. obj-$(CONFIG_USB_SUPPORT) += usb/
  91. obj-$(CONFIG_PCI) += usb/
  92. obj-$(CONFIG_USB_GADGET) += usb/
  93. obj-$(CONFIG_OF) += usb/
  94. obj-$(CONFIG_SERIO) += input/serio/
  95. obj-$(CONFIG_GAMEPORT) += input/gameport/
  96. obj-$(CONFIG_INPUT) += input/
  97. obj-$(CONFIG_RTC_LIB) += rtc/
  98. obj-y += i2c/ media/
  99. obj-$(CONFIG_PPS) += pps/
  100. obj-y += ptp/
  101. obj-$(CONFIG_W1) += w1/
  102. obj-y += power/
  103. obj-$(CONFIG_HWMON) += hwmon/
  104. obj-$(CONFIG_THERMAL) += thermal/
  105. obj-$(CONFIG_WATCHDOG) += watchdog/
  106. obj-$(CONFIG_MD) += md/
  107. obj-$(CONFIG_BT) += bluetooth/
  108. obj-$(CONFIG_ACCESSIBILITY) += accessibility/
  109. obj-$(CONFIG_ISDN) += isdn/
  110. obj-$(CONFIG_EDAC) += edac/
  111. obj-$(CONFIG_EISA) += eisa/
  112. obj-$(CONFIG_CPU_FREQ) += cpufreq/
  113. obj-$(CONFIG_CPU_IDLE) += cpuidle/
  114. obj-y += mmc/
  115. obj-$(CONFIG_MEMSTICK) += memstick/
  116. obj-$(CONFIG_NEW_LEDS) += leds/
  117. obj-$(CONFIG_INFINIBAND) += infiniband/
  118. obj-$(CONFIG_SGI_SN) += sn/
  119. obj-y += firmware/
  120. obj-$(CONFIG_CRYPTO) += crypto/
  121. obj-$(CONFIG_SUPERH) += sh/
  122. ifndef CONFIG_ARCH_USES_GETTIMEOFFSET
  123. obj-y += clocksource/
  124. endif
  125. obj-$(CONFIG_DCA) += dca/
  126. obj-$(CONFIG_HID) += hid/
  127. obj-$(CONFIG_PPC_PS3) += ps3/
  128. obj-$(CONFIG_OF) += of/
  129. obj-$(CONFIG_SSB) += ssb/
  130. obj-$(CONFIG_BCMA) += bcma/
  131. obj-$(CONFIG_VHOST_RING) += vhost/
  132. obj-$(CONFIG_VHOST) += vhost/
  133. obj-$(CONFIG_VLYNQ) += vlynq/
  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. # Virtualization drivers
  141. obj-$(CONFIG_VIRT_DRIVERS) += virt/
  142. obj-$(CONFIG_HYPERV) += hv/
  143. obj-$(CONFIG_PM_DEVFREQ) += devfreq/
  144. obj-$(CONFIG_EXTCON) += extcon/
  145. obj-$(CONFIG_MEMORY) += memory/
  146. obj-$(CONFIG_IIO) += iio/
  147. obj-$(CONFIG_VME_BUS) += vme/
  148. obj-$(CONFIG_IPACK_BUS) += ipack/
  149. obj-$(CONFIG_NTB) += ntb/
  150. obj-$(CONFIG_FMC) += fmc/
  151. obj-$(CONFIG_POWERCAP) += powercap/
  152. obj-$(CONFIG_MCB) += mcb/
  153. obj-$(CONFIG_PERF_EVENTS) += perf/
  154. obj-$(CONFIG_RAS) += ras/
  155. obj-$(CONFIG_THUNDERBOLT) += 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_TRUSTY) += trusty/
  166. obj-$(CONFIG_GNSS) += gnss/
  167. obj-$(CONFIG_SWITCH) += switch/
  168. obj-$(CONFIG_NXP_P73_DEVICES) += p73-spi/