xref: /openbmc/linux/drivers/Makefile (revision 86e281fc)
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 and intelfb depend on char/agp/
75obj-$(CONFIG_FB_I810)           += video/fbdev/i810/
76obj-$(CONFIG_FB_INTEL)          += video/fbdev/intelfb/
77
78obj-$(CONFIG_PARPORT)		+= parport/
79obj-y				+= base/ block/ misc/ mfd/ nfc/
80obj-$(CONFIG_LIBNVDIMM)		+= nvdimm/
81obj-y				+= dax/
82obj-$(CONFIG_DMA_SHARED_BUFFER) += dma-buf/
83obj-$(CONFIG_NUBUS)		+= nubus/
84obj-y				+= cxl/
85obj-y				+= macintosh/
86obj-y				+= scsi/
87obj-y				+= nvme/
88obj-$(CONFIG_ATA)		+= ata/
89obj-$(CONFIG_TARGET_CORE)	+= target/
90obj-$(CONFIG_MTD)		+= mtd/
91obj-$(CONFIG_SPI)		+= spi/
92obj-$(CONFIG_SPMI)		+= spmi/
93obj-$(CONFIG_HSI)		+= hsi/
94obj-$(CONFIG_SLIMBUS)		+= slimbus/
95obj-y				+= net/
96obj-$(CONFIG_ATM)		+= atm/
97obj-$(CONFIG_FUSION)		+= message/
98obj-y				+= firewire/
99obj-$(CONFIG_UIO)		+= uio/
100obj-$(CONFIG_VFIO)		+= vfio/
101obj-y				+= cdrom/
102obj-y				+= auxdisplay/
103obj-$(CONFIG_PCCARD)		+= pcmcia/
104obj-$(CONFIG_DIO)		+= dio/
105obj-$(CONFIG_SBUS)		+= sbus/
106obj-$(CONFIG_ZORRO)		+= zorro/
107obj-$(CONFIG_ATA_OVER_ETH)	+= block/aoe/
108obj-$(CONFIG_TC)		+= tc/
109obj-$(CONFIG_USB_PHY)		+= usb/
110obj-$(CONFIG_USB)		+= usb/
111obj-$(CONFIG_USB_SUPPORT)	+= usb/
112obj-$(CONFIG_PCI)		+= usb/
113obj-$(CONFIG_USB_GADGET)	+= usb/
114obj-$(CONFIG_OF)		+= usb/
115obj-$(CONFIG_SERIO)		+= input/serio/
116obj-$(CONFIG_GAMEPORT)		+= input/gameport/
117obj-$(CONFIG_INPUT)		+= input/
118obj-$(CONFIG_RTC_LIB)		+= rtc/
119obj-y				+= i2c/ i3c/ media/
120obj-$(CONFIG_PPS)		+= pps/
121obj-y				+= ptp/
122obj-$(CONFIG_W1)		+= w1/
123obj-y				+= power/
124obj-$(CONFIG_HWMON)		+= hwmon/
125obj-$(CONFIG_THERMAL)		+= thermal/
126obj-$(CONFIG_WATCHDOG)		+= watchdog/
127obj-$(CONFIG_MD)		+= md/
128obj-$(CONFIG_BT)		+= bluetooth/
129obj-$(CONFIG_ACCESSIBILITY)	+= accessibility/
130obj-$(CONFIG_ISDN)		+= isdn/
131obj-$(CONFIG_EDAC)		+= edac/
132obj-$(CONFIG_EISA)		+= eisa/
133obj-$(CONFIG_PM_OPP)		+= opp/
134obj-$(CONFIG_CPU_FREQ)		+= cpufreq/
135obj-$(CONFIG_CPU_IDLE)		+= cpuidle/
136obj-y				+= mmc/
137obj-y				+= ufs/
138obj-$(CONFIG_MEMSTICK)		+= memstick/
139obj-$(CONFIG_NEW_LEDS)		+= leds/
140obj-$(CONFIG_INFINIBAND)	+= infiniband/
141obj-y				+= firmware/
142obj-$(CONFIG_CRYPTO)		+= crypto/
143obj-$(CONFIG_SUPERH)		+= sh/
144obj-y				+= clocksource/
145obj-$(CONFIG_DCA)		+= dca/
146obj-$(CONFIG_HID_SUPPORT)	+= hid/
147obj-$(CONFIG_PPC_PS3)		+= ps3/
148obj-$(CONFIG_OF)		+= of/
149obj-$(CONFIG_SSB)		+= ssb/
150obj-$(CONFIG_BCMA)		+= bcma/
151obj-$(CONFIG_VHOST_RING)	+= vhost/
152obj-$(CONFIG_VHOST_IOTLB)	+= vhost/
153obj-$(CONFIG_VHOST)		+= vhost/
154obj-$(CONFIG_VLYNQ)		+= vlynq/
155obj-$(CONFIG_GREYBUS)		+= greybus/
156obj-$(CONFIG_COMEDI)		+= comedi/
157obj-$(CONFIG_STAGING)		+= staging/
158obj-y				+= platform/
159
160obj-$(CONFIG_MAILBOX)		+= mailbox/
161obj-$(CONFIG_HWSPINLOCK)	+= hwspinlock/
162obj-$(CONFIG_REMOTEPROC)	+= remoteproc/
163obj-$(CONFIG_RPMSG)		+= rpmsg/
164obj-$(CONFIG_SOUNDWIRE)		+= soundwire/
165
166# Virtualization drivers
167obj-$(CONFIG_VIRT_DRIVERS)	+= virt/
168obj-$(subst m,y,$(CONFIG_HYPERV))	+= hv/
169
170obj-$(CONFIG_PM_DEVFREQ)	+= devfreq/
171obj-$(CONFIG_EXTCON)		+= extcon/
172obj-$(CONFIG_MEMORY)		+= memory/
173obj-$(CONFIG_IIO)		+= iio/
174obj-$(CONFIG_IPACK_BUS)		+= ipack/
175obj-$(CONFIG_NTB)		+= ntb/
176obj-$(CONFIG_POWERCAP)		+= powercap/
177obj-$(CONFIG_MCB)		+= mcb/
178obj-$(CONFIG_PERF_EVENTS)	+= perf/
179obj-$(CONFIG_RAS)		+= ras/
180obj-$(CONFIG_USB4)		+= thunderbolt/
181obj-$(CONFIG_CORESIGHT)		+= hwtracing/coresight/
182obj-y				+= hwtracing/intel_th/
183obj-$(CONFIG_STM)		+= hwtracing/stm/
184obj-$(CONFIG_HISI_PTT)		+= hwtracing/ptt/
185obj-y				+= android/
186obj-$(CONFIG_NVMEM)		+= nvmem/
187obj-$(CONFIG_FPGA)		+= fpga/
188obj-$(CONFIG_FSI)		+= fsi/
189obj-$(CONFIG_TEE)		+= tee/
190obj-$(CONFIG_MULTIPLEXER)	+= mux/
191obj-$(CONFIG_SIOX)		+= siox/
192obj-$(CONFIG_GNSS)		+= gnss/
193obj-$(CONFIG_INTERCONNECT)	+= interconnect/
194obj-$(CONFIG_COUNTER)		+= counter/
195obj-$(CONFIG_MOST)		+= most/
196obj-$(CONFIG_PECI)		+= peci/
197obj-$(CONFIG_HTE)		+= hte/
198obj-$(CONFIG_DRM_ACCEL)		+= accel/
199obj-$(CONFIG_CDX_BUS)		+= cdx/
200
201obj-$(CONFIG_S390)		+= s390/
202