xref: /linux/drivers/Makefile (revision 6d9b262afe0ec1d6e0ef99321ca9d6b921310471)
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				+= cache/
15obj-y				+= irqchip/
16obj-y				+= bus/
17
18obj-$(CONFIG_GENERIC_PHY)	+= phy/
19
20# GPIO must come after pinctrl as gpios may need to mux pins etc
21obj-$(CONFIG_PINCTRL)		+= pinctrl/
22obj-$(CONFIG_GPIOLIB)		+= gpio/
23obj-y				+= pwm/
24
25obj-y				+= pci/
26
27obj-$(CONFIG_PARISC)		+= parisc/
28obj-$(CONFIG_RAPIDIO)		+= rapidio/
29obj-y				+= video/
30obj-y				+= idle/
31
32# IPMI must come before ACPI in order to provide IPMI opregion support
33obj-y				+= char/ipmi/
34
35obj-$(CONFIG_ACPI)		+= acpi/
36
37# PnP must come after ACPI since it will eventually need to check if acpi
38# was used and do nothing if so
39obj-$(CONFIG_PNP)		+= pnp/
40obj-y				+= amba/
41
42obj-y				+= clk/
43# Many drivers will want to use DMA so this has to be made available
44# really early.
45obj-$(CONFIG_DMADEVICES)	+= dma/
46
47# SOC specific infrastructure drivers.
48obj-y				+= soc/
49obj-$(CONFIG_PM_GENERIC_DOMAINS)	+= pmdomain/
50
51obj-y				+= virtio/
52obj-$(CONFIG_VDPA)		+= vdpa/
53obj-$(CONFIG_XEN)		+= xen/
54
55# regulators early, since some subsystems rely on them to initialize
56obj-$(CONFIG_REGULATOR)		+= regulator/
57
58# reset controllers early, since gpu drivers might rely on them to initialize
59obj-$(CONFIG_RESET_CONTROLLER)	+= reset/
60
61# tty/ comes before char/ so that the VT console is the boot-time
62# default.
63obj-y				+= tty/
64obj-y				+= char/
65
66# iommu/ comes before gpu as gpu are using iommu controllers
67obj-y				+= iommu/
68
69# gpu/ comes after char for AGP vs DRM startup and after iommu
70obj-y				+= gpu/
71
72obj-$(CONFIG_CONNECTOR)		+= connector/
73
74# i810fb depends on char/agp/
75obj-$(CONFIG_FB_I810)           += video/fbdev/i810/
76
77obj-$(CONFIG_PARPORT)		+= parport/
78obj-y				+= base/ block/ misc/ mfd/ nfc/
79obj-$(CONFIG_LIBNVDIMM)		+= nvdimm/
80obj-y				+= dax/
81obj-$(CONFIG_DMA_SHARED_BUFFER) += dma-buf/
82obj-$(CONFIG_NUBUS)		+= nubus/
83obj-y				+= cxl/
84obj-y				+= macintosh/
85obj-y				+= scsi/
86obj-y				+= nvme/
87obj-$(CONFIG_ATA)		+= ata/
88obj-$(CONFIG_TARGET_CORE)	+= target/
89obj-$(CONFIG_MTD)		+= mtd/
90obj-$(CONFIG_SPI)		+= spi/
91obj-$(CONFIG_SPMI)		+= spmi/
92obj-$(CONFIG_HSI)		+= hsi/
93obj-$(CONFIG_SLIMBUS)		+= slimbus/
94obj-y				+= net/
95obj-$(CONFIG_ATM)		+= atm/
96obj-$(CONFIG_FUSION)		+= message/
97obj-y				+= firewire/
98obj-$(CONFIG_UIO)		+= uio/
99obj-$(CONFIG_VFIO)		+= vfio/
100obj-y				+= cdrom/
101obj-y				+= auxdisplay/
102obj-$(CONFIG_PCCARD)		+= pcmcia/
103obj-$(CONFIG_DIO)		+= dio/
104obj-$(CONFIG_SBUS)		+= sbus/
105obj-$(CONFIG_ZORRO)		+= zorro/
106obj-$(CONFIG_ATA_OVER_ETH)	+= block/aoe/
107obj-$(CONFIG_TC)		+= tc/
108obj-$(CONFIG_USB_PHY)		+= usb/
109obj-$(CONFIG_USB)		+= usb/
110obj-$(CONFIG_USB_SUPPORT)	+= usb/
111obj-$(CONFIG_PCI)		+= usb/
112obj-$(CONFIG_USB_GADGET)	+= usb/
113obj-$(CONFIG_OF)		+= usb/
114obj-$(CONFIG_SERIO)		+= input/serio/
115obj-$(CONFIG_GAMEPORT)		+= input/gameport/
116obj-$(CONFIG_INPUT)		+= input/
117obj-$(CONFIG_RTC_LIB)		+= rtc/
118obj-y				+= i2c/ i3c/ media/
119obj-$(CONFIG_PPS)		+= pps/
120obj-y				+= ptp/
121obj-$(CONFIG_W1)		+= w1/
122obj-y				+= power/
123obj-$(CONFIG_HWMON)		+= hwmon/
124obj-$(CONFIG_THERMAL)		+= thermal/
125obj-$(CONFIG_WATCHDOG)		+= watchdog/
126obj-$(CONFIG_MD)		+= md/
127obj-$(CONFIG_BT)		+= bluetooth/
128obj-$(CONFIG_ACCESSIBILITY)	+= accessibility/
129obj-$(CONFIG_ISDN)		+= isdn/
130obj-$(CONFIG_EDAC)		+= edac/
131obj-$(CONFIG_EISA)		+= eisa/
132obj-$(CONFIG_PM_OPP)		+= opp/
133obj-$(CONFIG_CPU_FREQ)		+= cpufreq/
134obj-$(CONFIG_CPU_IDLE)		+= cpuidle/
135obj-y				+= mmc/
136obj-y				+= ufs/
137obj-$(CONFIG_MEMSTICK)		+= memstick/
138obj-y				+= leds/
139obj-$(CONFIG_INFINIBAND)	+= infiniband/
140obj-y				+= firmware/
141obj-$(CONFIG_CRYPTO)		+= crypto/
142obj-$(CONFIG_SUPERH)		+= sh/
143obj-y				+= clocksource/
144obj-$(CONFIG_DCA)		+= dca/
145obj-$(CONFIG_HID_SUPPORT)	+= hid/
146obj-$(CONFIG_PPC_PS3)		+= ps3/
147obj-$(CONFIG_OF)		+= of/
148obj-$(CONFIG_SSB)		+= ssb/
149obj-$(CONFIG_BCMA)		+= bcma/
150obj-$(CONFIG_VHOST_RING)	+= vhost/
151obj-$(CONFIG_VHOST_IOTLB)	+= vhost/
152obj-$(CONFIG_VHOST)		+= vhost/
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/
198obj-$(CONFIG_DPLL)		+= dpll/
199
200obj-$(CONFIG_S390)		+= s390/
201