xref: /linux/drivers/Makefile (revision bbfd5594756011167b8f8de9a00e0c946afda1e6)
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
9d34599bcSLad Prabhakarobj-y				+= cache/
1089214f00SSimon Arlottobj-y				+= irqchip/
1126a84b3eSKishon Vijay Abraham Iobj-y				+= bus/
1289214f00SSimon Arlott
13ff764963SKishon Vijay Abraham Iobj-$(CONFIG_GENERIC_PHY)	+= phy/
14ff764963SKishon Vijay Abraham I
152744e8afSLinus Walleij# GPIO must come after pinctrl as gpios may need to mux pins etc
1695b612ccSMasahiro Yamadaobj-$(CONFIG_PINCTRL)		+= pinctrl/
176b891a26SAndrew F. Davisobj-$(CONFIG_GPIOLIB)		+= gpio/
180c2498f1SSascha Hauerobj-y				+= pwm/
195e8cb403SKishon Vijay Abraham I
2078efa53eSMariusz Tkaczyk# LEDs must come before PCI, it is needed by NPEM driver
2178efa53eSMariusz Tkaczykobj-y				+= leds/
2278efa53eSMariusz Tkaczyk
239de0eec2SCyrille Pitchenobj-y				+= pci/
247a2b3f02SKishon Vijay Abraham I
251da177e4SLinus Torvaldsobj-$(CONFIG_PARISC)		+= parisc/
26394b701cSMatt Porterobj-$(CONFIG_RAPIDIO)		+= rapidio/
271da177e4SLinus Torvaldsobj-y				+= video/
2826717172SLen Brownobj-y				+= idle/
29061475b6SMatthew Garrett
30061475b6SMatthew Garrett# IPMI must come before ACPI in order to provide IPMI opregion support
3154f9c4d0SAlistair Poppleobj-y				+= char/ipmi/
32061475b6SMatthew Garrett
33888ba6c6SLen Brownobj-$(CONFIG_ACPI)		+= acpi/
344590d98fSAndy Shevchenko
351da177e4SLinus Torvalds# PnP must come after ACPI since it will eventually need to check if acpi
361da177e4SLinus Torvalds# was used and do nothing if so
371da177e4SLinus Torvaldsobj-$(CONFIG_PNP)		+= pnp/
3887d0bab2SHiroshi DOYUobj-y				+= amba/
396eb1c949SMasahiro Yamada
406eb1c949SMasahiro Yamadaobj-y				+= clk/
41a0eb221aSLinus Walleij# Many drivers will want to use DMA so this has to be made available
42a0eb221aSLinus Walleij# really early.
439a322993SPhilippe De Muyterobj-$(CONFIG_DMADEVICES)	+= dma/
441da177e4SLinus Torvalds
453a6e0821SSantosh Shilimkar# SOC specific infrastructure drivers.
463a6e0821SSantosh Shilimkarobj-y				+= soc/
47e2ad626fSUlf Hanssonobj-$(CONFIG_PM_GENERIC_DOMAINS)	+= pmdomain/
483a6e0821SSantosh Shilimkar
4927d9839fSArnd Bergmannobj-y				+= virtio/
50c9b9f5f8SMichael S. Tsirkinobj-$(CONFIG_VDPA)		+= vdpa/
51ad9a8612SJeremy Fitzhardingeobj-$(CONFIG_XEN)		+= xen/
52ad9a8612SJeremy Fitzhardinge
539f4dab49SDavid Brownell# regulators early, since some subsystems rely on them to initialize
549f4dab49SDavid Brownellobj-$(CONFIG_REGULATOR)		+= regulator/
559f4dab49SDavid Brownell
5661fc4131SPhilipp Zabel# reset controllers early, since gpu drivers might rely on them to initialize
5761fc4131SPhilipp Zabelobj-$(CONFIG_RESET_CONTROLLER)	+= reset/
5861fc4131SPhilipp Zabel
59ab4382d2SGreg Kroah-Hartman# tty/ comes before char/ so that the VT console is the boot-time
601da177e4SLinus Torvalds# default.
6196fd7ce5SGreg Kroah-Hartmanobj-y				+= tty/
621da177e4SLinus Torvaldsobj-y				+= char/
631da177e4SLinus Torvalds
641bacc894SOded Gabbay# iommu/ comes before gpu as gpu are using iommu controllers
65bd3c2e66SSakari Ailusobj-y				+= iommu/
661bacc894SOded Gabbay
671bacc894SOded Gabbay# gpu/ comes after char for AGP vs DRM startup and after iommu
68e6b51632SDave Airlieobj-y				+= gpu/
69e6b51632SDave Airlie
707672d0b5SEvgeniy Polyakovobj-$(CONFIG_CONNECTOR)		+= connector/
717672d0b5SEvgeniy Polyakov
72689237abSThomas Zimmermann# i810fb depends on char/agp/
73f7018c21STomi Valkeinenobj-$(CONFIG_FB_I810)           += video/fbdev/i810/
741da177e4SLinus Torvalds
751da177e4SLinus Torvaldsobj-$(CONFIG_PARPORT)		+= parport/
760329326eSMatti J. Aaltonenobj-y				+= base/ block/ misc/ mfd/ nfc/
77b94d5230SDan Williamsobj-$(CONFIG_LIBNVDIMM)		+= nvdimm/
788a3d95eaSArnd Bergmannobj-y				+= dax/
7935fac7e3SMaarten Lankhorstobj-$(CONFIG_DMA_SHARED_BUFFER) += dma-buf/
801da177e4SLinus Torvaldsobj-$(CONFIG_NUBUS)		+= nubus/
819ea4dcf4SDan Williamsobj-y				+= cxl/
8245941d04SSoeren Sonnenburgobj-y				+= macintosh/
83ad80f970SChristoph Hellwigobj-y				+= scsi/
8457dacad5SJay Sternbergobj-y				+= nvme/
85c6fd2807SJeff Garzikobj-$(CONFIG_ATA)		+= ata/
86c66ac9dbSNicholas Bellingerobj-$(CONFIG_TARGET_CORE)	+= target/
879289d4efSSudhakar Rajashekharaobj-$(CONFIG_MTD)		+= mtd/
889289d4efSSudhakar Rajashekharaobj-$(CONFIG_SPI)		+= spi/
895a86bf34SKenneth Heitkeobj-$(CONFIG_SPMI)		+= spmi/
90ea12c45fSAndrew F. Davisobj-$(CONFIG_HSI)		+= hsi/
913648e78eSSagar Dhariaobj-$(CONFIG_SLIMBUS)		+= slimbus/
920c406263SArjan van de Venobj-y				+= net/
930c406263SArjan van de Venobj-$(CONFIG_ATM)		+= atm/
941da177e4SLinus Torvaldsobj-$(CONFIG_FUSION)		+= message/
958702d33aSStefan Richterobj-y				+= firewire/
96beafc54cSHans J. Kochobj-$(CONFIG_UIO)		+= uio/
97cba3345cSAlex Williamsonobj-$(CONFIG_VFIO)		+= vfio/
981da177e4SLinus Torvaldsobj-y				+= cdrom/
9970e84049SMiguel Ojeda Sandonisobj-y				+= auxdisplay/
1001da177e4SLinus Torvaldsobj-$(CONFIG_PCCARD)		+= pcmcia/
1011da177e4SLinus Torvaldsobj-$(CONFIG_DIO)		+= dio/
1021da177e4SLinus Torvaldsobj-$(CONFIG_SBUS)		+= sbus/
1031da177e4SLinus Torvaldsobj-$(CONFIG_ZORRO)		+= zorro/
1041da177e4SLinus Torvaldsobj-$(CONFIG_ATA_OVER_ETH)	+= block/aoe/
1051da177e4SLinus Torvaldsobj-$(CONFIG_TC)		+= tc/
106edc7cb2eSFelipe Balbiobj-$(CONFIG_USB_PHY)		+= usb/
1071da177e4SLinus Torvaldsobj-$(CONFIG_USB)		+= usb/
108c9d24f78SRandy Dunlapobj-$(CONFIG_USB_SUPPORT)	+= usb/
1096015d2c4SLinus Torvaldsobj-$(CONFIG_PCI)		+= usb/
1104661ffc9SFelipe Balbiobj-$(CONFIG_USB_GADGET)	+= usb/
1113d615964SAlexey Brodkinobj-$(CONFIG_OF)		+= usb/
11251c38f9bSDmitry Torokhovobj-$(CONFIG_SERIO)		+= input/serio/
1131da177e4SLinus Torvaldsobj-$(CONFIG_GAMEPORT)		+= input/gameport/
1141da177e4SLinus Torvaldsobj-$(CONFIG_INPUT)		+= input/
115c58411e9SAlessandro Zummoobj-$(CONFIG_RTC_LIB)		+= rtc/
1163a379bbcSBoris Brezillonobj-y				+= i2c/ i3c/ media/
117eae9d2baSRodolfo Giomettiobj-$(CONFIG_PPS)		+= pps/
118d1cbfd77SNicolas Pitreobj-y				+= ptp/
1191da177e4SLinus Torvaldsobj-$(CONFIG_W1)		+= w1/
120f96576bdSKrzysztof Kozlowskiobj-y				+= power/
121ad2f931dSJean Delvareobj-$(CONFIG_HWMON)		+= hwmon/
122203d3d4aSZhang Ruiobj-$(CONFIG_THERMAL)		+= thermal/
123b7e04f8cSWim Van Sebroeckobj-$(CONFIG_WATCHDOG)		+= watchdog/
1241da177e4SLinus Torvaldsobj-$(CONFIG_MD)		+= md/
1251da177e4SLinus Torvaldsobj-$(CONFIG_BT)		+= bluetooth/
126f7511d5fSSamuel Thibaultobj-$(CONFIG_ACCESSIBILITY)	+= accessibility/
1271da177e4SLinus Torvaldsobj-$(CONFIG_ISDN)		+= isdn/
128da9bb1d2SAlan Coxobj-$(CONFIG_EDAC)		+= edac/
1291da177e4SLinus Torvaldsobj-$(CONFIG_EISA)		+= eisa/
1307813dd6fSViresh Kumarobj-$(CONFIG_PM_OPP)		+= opp/
1311da177e4SLinus Torvaldsobj-$(CONFIG_CPU_FREQ)		+= cpufreq/
1324f86d3a8SLen Brownobj-$(CONFIG_CPU_IDLE)		+= cpuidle/
13352c506f0SAdrian Hunterobj-y				+= mmc/
134dd11376bSBart Van Asscheobj-y				+= ufs/
135baf8532aSAlex Dubovobj-$(CONFIG_MEMSTICK)		+= memstick/
1361da177e4SLinus Torvaldsobj-$(CONFIG_INFINIBAND)	+= infiniband/
1371da177e4SLinus Torvaldsobj-y				+= firmware/
138*2e4986cfSJason Gunthorpeobj-$(CONFIG_FWCTL)		+= fwctl/
1391da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO)		+= crypto/
140e87eaad1SPaul Mundtobj-$(CONFIG_SUPERH)		+= sh/
141592913ecSJohn Stultzobj-y				+= clocksource/
1427589670fSShannon Nelsonobj-$(CONFIG_DCA)		+= dca/
14325621bccSBenjamin Tissoiresobj-$(CONFIG_HID_SUPPORT)	+= hid/
144eb30c720SGeert Uytterhoevenobj-$(CONFIG_PPC_PS3)		+= ps3/
14597e873e5SStephen Rothwellobj-$(CONFIG_OF)		+= of/
14661e115a5SMichael Bueschobj-$(CONFIG_SSB)		+= ssb/
1478369ae33SRafał Miłeckiobj-$(CONFIG_BCMA)		+= bcma/
148f87d0fbbSRusty Russellobj-$(CONFIG_VHOST_RING)	+= vhost/
14998701a2aSRandy Dunlapobj-$(CONFIG_VHOST_IOTLB)	+= vhost/
150b2fbd8b0SMichael S. Tsirkinobj-$(CONFIG_VHOST)		+= vhost/
1518465def4SGreg Kroah-Hartmanobj-$(CONFIG_GREYBUS)		+= greybus/
1528ffdff6aSGreg Kroah-Hartmanobj-$(CONFIG_COMEDI)		+= comedi/
15335045589SGreg Kroah-Hartmanobj-$(CONFIG_STAGING)		+= staging/
15441b16dceSLen Brownobj-y				+= platform/
155bd9a4c7dSOhad Ben-Cohen
15630058677SRob Herringobj-$(CONFIG_MAILBOX)		+= mailbox/
157bd9a4c7dSOhad Ben-Cohenobj-$(CONFIG_HWSPINLOCK)	+= hwspinlock/
158400e64dfSOhad Ben-Cohenobj-$(CONFIG_REMOTEPROC)	+= remoteproc/
159bcabbccaSOhad Ben-Cohenobj-$(CONFIG_RPMSG)		+= rpmsg/
1609251345dSVinod Koulobj-$(CONFIG_SOUNDWIRE)		+= soundwire/
1616db71994STimur Tabi
1626db71994STimur Tabi# Virtualization drivers
1636db71994STimur Tabiobj-$(CONFIG_VIRT_DRIVERS)	+= virt/
164a4d7e8aeSMichael Kelleyobj-$(subst m,y,$(CONFIG_HYPERV))	+= hv/
165a3c98b8bSMyungJoo Ham
166a3c98b8bSMyungJoo Hamobj-$(CONFIG_PM_DEVFREQ)	+= devfreq/
167de55d871SMyungJoo Hamobj-$(CONFIG_EXTCON)		+= extcon/
1687ec94453SAneesh Vobj-$(CONFIG_MEMORY)		+= memory/
169a980e046SJonathan Cameronobj-$(CONFIG_IIO)		+= iio/
17005e5027eSGreg Kroah-Hartmanobj-$(CONFIG_IPACK_BUS)		+= ipack/
171fce8a7bbSJon Masonobj-$(CONFIG_NTB)		+= ntb/
17212cc4b38SSrinivas Pandruvadaobj-$(CONFIG_POWERCAP)		+= powercap/
1733764e82eSJohannes Thumshirnobj-$(CONFIG_MCB)		+= mcb/
174fa8ad788SMark Rutlandobj-$(CONFIG_PERF_EVENTS)	+= perf/
17576ac8275SChen, Gongobj-$(CONFIG_RAS)		+= ras/
176690ac0d2SMika Westerbergobj-$(CONFIG_USB4)		+= thunderbolt/
17701081f5aSMathieu Poirierobj-$(CONFIG_CORESIGHT)		+= hwtracing/coresight/
17839f40346SAlexander Shishkinobj-y				+= hwtracing/intel_th/
1797bd1d409SAlexander Shishkinobj-$(CONFIG_STM)		+= hwtracing/stm/
180ff0de066SYicong Yangobj-$(CONFIG_HISI_PTT)		+= hwtracing/ptt/
1811045a067SChristoph Hellwigobj-y				+= android/
182eace75cfSSrinivas Kandagatlaobj-$(CONFIG_NVMEM)		+= nvmem/
1836a8c3be7SAlan Tullobj-$(CONFIG_FPGA)		+= fpga/
1840508ad1fSJeremy Kerrobj-$(CONFIG_FSI)		+= fsi/
185967c9ccaSJens Wiklanderobj-$(CONFIG_TEE)		+= tee/
186a3b02a9cSPeter Rosinobj-$(CONFIG_MULTIPLEXER)	+= mux/
187bbecb07fSUwe Kleine-Königobj-$(CONFIG_SIOX)		+= siox/
1882b6a4403SJohan Hovoldobj-$(CONFIG_GNSS)		+= gnss/
18911f1cecaSGeorgi Djakovobj-$(CONFIG_INTERCONNECT)	+= interconnect/
1900040a390SWilliam Breathitt Grayobj-$(CONFIG_COUNTER)		+= counter/
191b2765275SChristian Grommobj-$(CONFIG_MOST)		+= most/
1926523d3b2SIwona Winiarskaobj-$(CONFIG_PECI)		+= peci/
19331ab09b4SDipen Patelobj-$(CONFIG_HTE)		+= hte/
19435b13763SJacek Lawrynowiczobj-$(CONFIG_DRM_ACCEL)		+= accel/
1952959ab24SNipun Guptaobj-$(CONFIG_CDX_BUS)		+= cdx/
1969431063aSVadim Fedorenkoobj-$(CONFIG_DPLL)		+= dpll/
197305b9f4fSMasahiro Yamada
198305b9f4fSMasahiro Yamadaobj-$(CONFIG_S390)		+= s390/
199