xref: /openbmc/linux/drivers/Makefile (revision e2ad626f)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# Makefile for the Linux kernel device drivers.
41da177e4SLinus Torvalds#
51da177e4SLinus Torvalds# 15 Sep 2000, Christoph Hellwig <hch@infradead.org>
61da177e4SLinus Torvalds# Rewritten to use lists instead of if-statements.
71da177e4SLinus Torvalds#
81da177e4SLinus Torvalds
967d7c302SMasahiro Yamada# Some driver Makefiles miss $(srctree)/ for include directive.
1067d7c302SMasahiro Yamadaifdef building_out_of_srctree
1167d7c302SMasahiro YamadaMAKEFLAGS += --include-dir=$(srctree)
1267d7c302SMasahiro Yamadaendif
1367d7c302SMasahiro Yamada
14d34599bcSLad Prabhakarobj-y				+= cache/
1589214f00SSimon Arlottobj-y				+= irqchip/
1626a84b3eSKishon Vijay Abraham Iobj-y				+= bus/
1789214f00SSimon Arlott
18ff764963SKishon Vijay Abraham Iobj-$(CONFIG_GENERIC_PHY)	+= phy/
19ff764963SKishon Vijay Abraham I
202744e8afSLinus Walleij# GPIO must come after pinctrl as gpios may need to mux pins etc
2195b612ccSMasahiro Yamadaobj-$(CONFIG_PINCTRL)		+= pinctrl/
226b891a26SAndrew F. Davisobj-$(CONFIG_GPIOLIB)		+= gpio/
230c2498f1SSascha Hauerobj-y				+= pwm/
245e8cb403SKishon Vijay Abraham I
259de0eec2SCyrille Pitchenobj-y				+= pci/
267a2b3f02SKishon Vijay Abraham I
271da177e4SLinus Torvaldsobj-$(CONFIG_PARISC)		+= parisc/
28394b701cSMatt Porterobj-$(CONFIG_RAPIDIO)		+= rapidio/
291da177e4SLinus Torvaldsobj-y				+= video/
3026717172SLen Brownobj-y				+= idle/
31061475b6SMatthew Garrett
32061475b6SMatthew Garrett# IPMI must come before ACPI in order to provide IPMI opregion support
3354f9c4d0SAlistair Poppleobj-y				+= char/ipmi/
34061475b6SMatthew Garrett
35888ba6c6SLen Brownobj-$(CONFIG_ACPI)		+= acpi/
364590d98fSAndy Shevchenko
371da177e4SLinus Torvalds# PnP must come after ACPI since it will eventually need to check if acpi
381da177e4SLinus Torvalds# was used and do nothing if so
391da177e4SLinus Torvaldsobj-$(CONFIG_PNP)		+= pnp/
4087d0bab2SHiroshi DOYUobj-y				+= amba/
416eb1c949SMasahiro Yamada
426eb1c949SMasahiro Yamadaobj-y				+= clk/
43a0eb221aSLinus Walleij# Many drivers will want to use DMA so this has to be made available
44a0eb221aSLinus Walleij# really early.
459a322993SPhilippe De Muyterobj-$(CONFIG_DMADEVICES)	+= dma/
461da177e4SLinus Torvalds
473a6e0821SSantosh Shilimkar# SOC specific infrastructure drivers.
483a6e0821SSantosh Shilimkarobj-y				+= soc/
49*e2ad626fSUlf Hanssonobj-$(CONFIG_PM_GENERIC_DOMAINS)	+= pmdomain/
503a6e0821SSantosh Shilimkar
5127d9839fSArnd Bergmannobj-y				+= virtio/
52c9b9f5f8SMichael S. Tsirkinobj-$(CONFIG_VDPA)		+= vdpa/
53ad9a8612SJeremy Fitzhardingeobj-$(CONFIG_XEN)		+= xen/
54ad9a8612SJeremy Fitzhardinge
559f4dab49SDavid Brownell# regulators early, since some subsystems rely on them to initialize
569f4dab49SDavid Brownellobj-$(CONFIG_REGULATOR)		+= regulator/
579f4dab49SDavid Brownell
5861fc4131SPhilipp Zabel# reset controllers early, since gpu drivers might rely on them to initialize
5961fc4131SPhilipp Zabelobj-$(CONFIG_RESET_CONTROLLER)	+= reset/
6061fc4131SPhilipp Zabel
61ab4382d2SGreg Kroah-Hartman# tty/ comes before char/ so that the VT console is the boot-time
621da177e4SLinus Torvalds# default.
6396fd7ce5SGreg Kroah-Hartmanobj-y				+= tty/
641da177e4SLinus Torvaldsobj-y				+= char/
651da177e4SLinus Torvalds
661bacc894SOded Gabbay# iommu/ comes before gpu as gpu are using iommu controllers
67bd3c2e66SSakari Ailusobj-y				+= iommu/
681bacc894SOded Gabbay
691bacc894SOded Gabbay# gpu/ comes after char for AGP vs DRM startup and after iommu
70e6b51632SDave Airlieobj-y				+= gpu/
71e6b51632SDave Airlie
727672d0b5SEvgeniy Polyakovobj-$(CONFIG_CONNECTOR)		+= connector/
737672d0b5SEvgeniy Polyakov
741da177e4SLinus Torvalds# i810fb and intelfb depend on char/agp/
75f7018c21STomi Valkeinenobj-$(CONFIG_FB_I810)           += video/fbdev/i810/
76f7018c21STomi Valkeinenobj-$(CONFIG_FB_INTEL)          += video/fbdev/intelfb/
771da177e4SLinus Torvalds
781da177e4SLinus Torvaldsobj-$(CONFIG_PARPORT)		+= parport/
790329326eSMatti J. Aaltonenobj-y				+= base/ block/ misc/ mfd/ nfc/
80b94d5230SDan Williamsobj-$(CONFIG_LIBNVDIMM)		+= nvdimm/
818a3d95eaSArnd Bergmannobj-y				+= dax/
8235fac7e3SMaarten Lankhorstobj-$(CONFIG_DMA_SHARED_BUFFER) += dma-buf/
831da177e4SLinus Torvaldsobj-$(CONFIG_NUBUS)		+= nubus/
849ea4dcf4SDan Williamsobj-y				+= cxl/
8545941d04SSoeren Sonnenburgobj-y				+= macintosh/
86ad80f970SChristoph Hellwigobj-y				+= scsi/
8757dacad5SJay Sternbergobj-y				+= nvme/
88c6fd2807SJeff Garzikobj-$(CONFIG_ATA)		+= ata/
89c66ac9dbSNicholas Bellingerobj-$(CONFIG_TARGET_CORE)	+= target/
909289d4efSSudhakar Rajashekharaobj-$(CONFIG_MTD)		+= mtd/
919289d4efSSudhakar Rajashekharaobj-$(CONFIG_SPI)		+= spi/
925a86bf34SKenneth Heitkeobj-$(CONFIG_SPMI)		+= spmi/
93ea12c45fSAndrew F. Davisobj-$(CONFIG_HSI)		+= hsi/
943648e78eSSagar Dhariaobj-$(CONFIG_SLIMBUS)		+= slimbus/
950c406263SArjan van de Venobj-y				+= net/
960c406263SArjan van de Venobj-$(CONFIG_ATM)		+= atm/
971da177e4SLinus Torvaldsobj-$(CONFIG_FUSION)		+= message/
988702d33aSStefan Richterobj-y				+= firewire/
99beafc54cSHans J. Kochobj-$(CONFIG_UIO)		+= uio/
100cba3345cSAlex Williamsonobj-$(CONFIG_VFIO)		+= vfio/
1011da177e4SLinus Torvaldsobj-y				+= cdrom/
10270e84049SMiguel Ojeda Sandonisobj-y				+= auxdisplay/
1031da177e4SLinus Torvaldsobj-$(CONFIG_PCCARD)		+= pcmcia/
1041da177e4SLinus Torvaldsobj-$(CONFIG_DIO)		+= dio/
1051da177e4SLinus Torvaldsobj-$(CONFIG_SBUS)		+= sbus/
1061da177e4SLinus Torvaldsobj-$(CONFIG_ZORRO)		+= zorro/
1071da177e4SLinus Torvaldsobj-$(CONFIG_ATA_OVER_ETH)	+= block/aoe/
1081da177e4SLinus Torvaldsobj-$(CONFIG_TC)		+= tc/
109edc7cb2eSFelipe Balbiobj-$(CONFIG_USB_PHY)		+= usb/
1101da177e4SLinus Torvaldsobj-$(CONFIG_USB)		+= usb/
111c9d24f78SRandy Dunlapobj-$(CONFIG_USB_SUPPORT)	+= usb/
1126015d2c4SLinus Torvaldsobj-$(CONFIG_PCI)		+= usb/
1134661ffc9SFelipe Balbiobj-$(CONFIG_USB_GADGET)	+= usb/
1143d615964SAlexey Brodkinobj-$(CONFIG_OF)		+= usb/
11551c38f9bSDmitry Torokhovobj-$(CONFIG_SERIO)		+= input/serio/
1161da177e4SLinus Torvaldsobj-$(CONFIG_GAMEPORT)		+= input/gameport/
1171da177e4SLinus Torvaldsobj-$(CONFIG_INPUT)		+= input/
118c58411e9SAlessandro Zummoobj-$(CONFIG_RTC_LIB)		+= rtc/
1193a379bbcSBoris Brezillonobj-y				+= i2c/ i3c/ media/
120eae9d2baSRodolfo Giomettiobj-$(CONFIG_PPS)		+= pps/
121d1cbfd77SNicolas Pitreobj-y				+= ptp/
1221da177e4SLinus Torvaldsobj-$(CONFIG_W1)		+= w1/
123f96576bdSKrzysztof Kozlowskiobj-y				+= power/
124ad2f931dSJean Delvareobj-$(CONFIG_HWMON)		+= hwmon/
125203d3d4aSZhang Ruiobj-$(CONFIG_THERMAL)		+= thermal/
126b7e04f8cSWim Van Sebroeckobj-$(CONFIG_WATCHDOG)		+= watchdog/
1271da177e4SLinus Torvaldsobj-$(CONFIG_MD)		+= md/
1281da177e4SLinus Torvaldsobj-$(CONFIG_BT)		+= bluetooth/
129f7511d5fSSamuel Thibaultobj-$(CONFIG_ACCESSIBILITY)	+= accessibility/
1301da177e4SLinus Torvaldsobj-$(CONFIG_ISDN)		+= isdn/
131da9bb1d2SAlan Coxobj-$(CONFIG_EDAC)		+= edac/
1321da177e4SLinus Torvaldsobj-$(CONFIG_EISA)		+= eisa/
1337813dd6fSViresh Kumarobj-$(CONFIG_PM_OPP)		+= opp/
1341da177e4SLinus Torvaldsobj-$(CONFIG_CPU_FREQ)		+= cpufreq/
1354f86d3a8SLen Brownobj-$(CONFIG_CPU_IDLE)		+= cpuidle/
13652c506f0SAdrian Hunterobj-y				+= mmc/
137dd11376bSBart Van Asscheobj-y				+= ufs/
138baf8532aSAlex Dubovobj-$(CONFIG_MEMSTICK)		+= memstick/
139b1ae40a5SAndrew F. Davisobj-$(CONFIG_NEW_LEDS)		+= leds/
1401da177e4SLinus Torvaldsobj-$(CONFIG_INFINIBAND)	+= infiniband/
1411da177e4SLinus Torvaldsobj-y				+= firmware/
1421da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO)		+= crypto/
143e87eaad1SPaul Mundtobj-$(CONFIG_SUPERH)		+= sh/
144592913ecSJohn Stultzobj-y				+= clocksource/
1457589670fSShannon Nelsonobj-$(CONFIG_DCA)		+= dca/
14625621bccSBenjamin Tissoiresobj-$(CONFIG_HID_SUPPORT)	+= hid/
147eb30c720SGeert Uytterhoevenobj-$(CONFIG_PPC_PS3)		+= ps3/
14897e873e5SStephen Rothwellobj-$(CONFIG_OF)		+= of/
14961e115a5SMichael Bueschobj-$(CONFIG_SSB)		+= ssb/
1508369ae33SRafał Miłeckiobj-$(CONFIG_BCMA)		+= bcma/
151f87d0fbbSRusty Russellobj-$(CONFIG_VHOST_RING)	+= vhost/
15298701a2aSRandy Dunlapobj-$(CONFIG_VHOST_IOTLB)	+= vhost/
153b2fbd8b0SMichael S. Tsirkinobj-$(CONFIG_VHOST)		+= vhost/
15455e331cfSFlorian Fainelliobj-$(CONFIG_VLYNQ)		+= vlynq/
1558465def4SGreg Kroah-Hartmanobj-$(CONFIG_GREYBUS)		+= greybus/
1568ffdff6aSGreg Kroah-Hartmanobj-$(CONFIG_COMEDI)		+= comedi/
15735045589SGreg Kroah-Hartmanobj-$(CONFIG_STAGING)		+= staging/
15841b16dceSLen Brownobj-y				+= platform/
159bd9a4c7dSOhad Ben-Cohen
16030058677SRob Herringobj-$(CONFIG_MAILBOX)		+= mailbox/
161bd9a4c7dSOhad Ben-Cohenobj-$(CONFIG_HWSPINLOCK)	+= hwspinlock/
162400e64dfSOhad Ben-Cohenobj-$(CONFIG_REMOTEPROC)	+= remoteproc/
163bcabbccaSOhad Ben-Cohenobj-$(CONFIG_RPMSG)		+= rpmsg/
1649251345dSVinod Koulobj-$(CONFIG_SOUNDWIRE)		+= soundwire/
1656db71994STimur Tabi
1666db71994STimur Tabi# Virtualization drivers
1676db71994STimur Tabiobj-$(CONFIG_VIRT_DRIVERS)	+= virt/
168a4d7e8aeSMichael Kelleyobj-$(subst m,y,$(CONFIG_HYPERV))	+= hv/
169a3c98b8bSMyungJoo Ham
170a3c98b8bSMyungJoo Hamobj-$(CONFIG_PM_DEVFREQ)	+= devfreq/
171de55d871SMyungJoo Hamobj-$(CONFIG_EXTCON)		+= extcon/
1727ec94453SAneesh Vobj-$(CONFIG_MEMORY)		+= memory/
173a980e046SJonathan Cameronobj-$(CONFIG_IIO)		+= iio/
17405e5027eSGreg Kroah-Hartmanobj-$(CONFIG_IPACK_BUS)		+= ipack/
175fce8a7bbSJon Masonobj-$(CONFIG_NTB)		+= ntb/
17612cc4b38SSrinivas Pandruvadaobj-$(CONFIG_POWERCAP)		+= powercap/
1773764e82eSJohannes Thumshirnobj-$(CONFIG_MCB)		+= mcb/
178fa8ad788SMark Rutlandobj-$(CONFIG_PERF_EVENTS)	+= perf/
17976ac8275SChen, Gongobj-$(CONFIG_RAS)		+= ras/
180690ac0d2SMika Westerbergobj-$(CONFIG_USB4)		+= thunderbolt/
18101081f5aSMathieu Poirierobj-$(CONFIG_CORESIGHT)		+= hwtracing/coresight/
18239f40346SAlexander Shishkinobj-y				+= hwtracing/intel_th/
1837bd1d409SAlexander Shishkinobj-$(CONFIG_STM)		+= hwtracing/stm/
184ff0de066SYicong Yangobj-$(CONFIG_HISI_PTT)		+= hwtracing/ptt/
1851045a067SChristoph Hellwigobj-y				+= android/
186eace75cfSSrinivas Kandagatlaobj-$(CONFIG_NVMEM)		+= nvmem/
1876a8c3be7SAlan Tullobj-$(CONFIG_FPGA)		+= fpga/
1880508ad1fSJeremy Kerrobj-$(CONFIG_FSI)		+= fsi/
189967c9ccaSJens Wiklanderobj-$(CONFIG_TEE)		+= tee/
190a3b02a9cSPeter Rosinobj-$(CONFIG_MULTIPLEXER)	+= mux/
191bbecb07fSUwe Kleine-Königobj-$(CONFIG_SIOX)		+= siox/
1922b6a4403SJohan Hovoldobj-$(CONFIG_GNSS)		+= gnss/
19311f1cecaSGeorgi Djakovobj-$(CONFIG_INTERCONNECT)	+= interconnect/
1940040a390SWilliam Breathitt Grayobj-$(CONFIG_COUNTER)		+= counter/
195b2765275SChristian Grommobj-$(CONFIG_MOST)		+= most/
1966523d3b2SIwona Winiarskaobj-$(CONFIG_PECI)		+= peci/
19731ab09b4SDipen Patelobj-$(CONFIG_HTE)		+= hte/
19835b13763SJacek Lawrynowiczobj-$(CONFIG_DRM_ACCEL)		+= accel/
1992959ab24SNipun Guptaobj-$(CONFIG_CDX_BUS)		+= cdx/
200305b9f4fSMasahiro Yamada
201305b9f4fSMasahiro Yamadaobj-$(CONFIG_S390)		+= s390/
202