xref: /openbmc/linux/drivers/Makefile (revision 59e09100)
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/
48obj-$(CONFIG_PM_GENERIC_DOMAINS)	+= genpd/
49
50obj-y				+= virtio/
51obj-$(CONFIG_VDPA)		+= vdpa/
52obj-$(CONFIG_XEN)		+= xen/
53
54# regulators early, since some subsystems rely on them to initialize
55obj-$(CONFIG_REGULATOR)		+= regulator/
56
57# reset controllers early, since gpu drivers might rely on them to initialize
58obj-$(CONFIG_RESET_CONTROLLER)	+= reset/
59
60# tty/ comes before char/ so that the VT console is the boot-time
61# default.
62obj-y				+= tty/
63obj-y				+= char/
64
65# iommu/ comes before gpu as gpu are using iommu controllers
66obj-y				+= iommu/
67
68# gpu/ comes after char for AGP vs DRM startup and after iommu
69obj-y				+= gpu/
70
71obj-$(CONFIG_CONNECTOR)		+= connector/
72
73# i810fb and intelfb depend on char/agp/
74obj-$(CONFIG_FB_I810)           += video/fbdev/i810/
75obj-$(CONFIG_FB_INTEL)          += video/fbdev/intelfb/
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-$(CONFIG_NEW_LEDS)		+= 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_VLYNQ)		+= vlynq/
154obj-$(CONFIG_GREYBUS)		+= greybus/
155obj-$(CONFIG_COMEDI)		+= comedi/
156obj-$(CONFIG_STAGING)		+= staging/
157obj-y				+= platform/
158
159obj-$(CONFIG_MAILBOX)		+= mailbox/
160obj-$(CONFIG_HWSPINLOCK)	+= hwspinlock/
161obj-$(CONFIG_REMOTEPROC)	+= remoteproc/
162obj-$(CONFIG_RPMSG)		+= rpmsg/
163obj-$(CONFIG_SOUNDWIRE)		+= soundwire/
164
165# Virtualization drivers
166obj-$(CONFIG_VIRT_DRIVERS)	+= virt/
167obj-$(subst m,y,$(CONFIG_HYPERV))	+= hv/
168
169obj-$(CONFIG_PM_DEVFREQ)	+= devfreq/
170obj-$(CONFIG_EXTCON)		+= extcon/
171obj-$(CONFIG_MEMORY)		+= memory/
172obj-$(CONFIG_IIO)		+= iio/
173obj-$(CONFIG_IPACK_BUS)		+= ipack/
174obj-$(CONFIG_NTB)		+= ntb/
175obj-$(CONFIG_POWERCAP)		+= powercap/
176obj-$(CONFIG_MCB)		+= mcb/
177obj-$(CONFIG_PERF_EVENTS)	+= perf/
178obj-$(CONFIG_RAS)		+= ras/
179obj-$(CONFIG_USB4)		+= thunderbolt/
180obj-$(CONFIG_CORESIGHT)		+= hwtracing/coresight/
181obj-y				+= hwtracing/intel_th/
182obj-$(CONFIG_STM)		+= hwtracing/stm/
183obj-$(CONFIG_HISI_PTT)		+= hwtracing/ptt/
184obj-y				+= android/
185obj-$(CONFIG_NVMEM)		+= nvmem/
186obj-$(CONFIG_FPGA)		+= fpga/
187obj-$(CONFIG_FSI)		+= fsi/
188obj-$(CONFIG_TEE)		+= tee/
189obj-$(CONFIG_MULTIPLEXER)	+= mux/
190obj-$(CONFIG_SIOX)		+= siox/
191obj-$(CONFIG_GNSS)		+= gnss/
192obj-$(CONFIG_INTERCONNECT)	+= interconnect/
193obj-$(CONFIG_COUNTER)		+= counter/
194obj-$(CONFIG_MOST)		+= most/
195obj-$(CONFIG_PECI)		+= peci/
196obj-$(CONFIG_HTE)		+= hte/
197obj-$(CONFIG_DRM_ACCEL)		+= accel/
198obj-$(CONFIG_CDX_BUS)		+= cdx/
199