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