xref: /linux/drivers/Makefile (revision a3b02a9c6591ce154cd44e2383406390a45b530c)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Makefile for the Linux kernel device drivers.
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds# 15 Sep 2000, Christoph Hellwig <hch@infradead.org>
51da177e4SLinus Torvalds# Rewritten to use lists instead of if-statements.
61da177e4SLinus Torvalds#
71da177e4SLinus Torvalds
889214f00SSimon Arlottobj-y				+= irqchip/
926a84b3eSKishon Vijay Abraham Iobj-y				+= bus/
1089214f00SSimon Arlott
11ff764963SKishon Vijay Abraham Iobj-$(CONFIG_GENERIC_PHY)	+= phy/
12ff764963SKishon Vijay Abraham I
132744e8afSLinus Walleij# GPIO must come after pinctrl as gpios may need to mux pins etc
1495b612ccSMasahiro Yamadaobj-$(CONFIG_PINCTRL)		+= pinctrl/
156b891a26SAndrew F. Davisobj-$(CONFIG_GPIOLIB)		+= gpio/
160c2498f1SSascha Hauerobj-y				+= pwm/
175e8cb403SKishon Vijay Abraham I
186015d2c4SLinus Torvaldsobj-$(CONFIG_PCI)		+= pci/
195e8cb403SKishon Vijay Abraham Iobj-$(CONFIG_PCI_ENDPOINT)	+= pci/endpoint/
207a2b3f02SKishon Vijay Abraham I# PCI dwc controller drivers
217a2b3f02SKishon Vijay Abraham Iobj-y				+= pci/dwc/
227a2b3f02SKishon Vijay Abraham I
231da177e4SLinus Torvaldsobj-$(CONFIG_PARISC)		+= parisc/
24394b701cSMatt Porterobj-$(CONFIG_RAPIDIO)		+= rapidio/
251da177e4SLinus Torvaldsobj-y				+= video/
2626717172SLen Brownobj-y				+= idle/
27061475b6SMatthew Garrett
28061475b6SMatthew Garrett# IPMI must come before ACPI in order to provide IPMI opregion support
2954f9c4d0SAlistair Poppleobj-y				+= char/ipmi/
30061475b6SMatthew Garrett
31888ba6c6SLen Brownobj-$(CONFIG_ACPI)		+= acpi/
326ae6996aSFeng Tangobj-$(CONFIG_SFI)		+= sfi/
331da177e4SLinus Torvalds# PnP must come after ACPI since it will eventually need to check if acpi
341da177e4SLinus Torvalds# was used and do nothing if so
351da177e4SLinus Torvaldsobj-$(CONFIG_PNP)		+= pnp/
3687d0bab2SHiroshi DOYUobj-y				+= amba/
376eb1c949SMasahiro Yamada
386eb1c949SMasahiro Yamadaobj-y				+= clk/
39a0eb221aSLinus Walleij# Many drivers will want to use DMA so this has to be made available
40a0eb221aSLinus Walleij# really early.
419a322993SPhilippe De Muyterobj-$(CONFIG_DMADEVICES)	+= dma/
421da177e4SLinus Torvalds
433a6e0821SSantosh Shilimkar# SOC specific infrastructure drivers.
443a6e0821SSantosh Shilimkarobj-y				+= soc/
453a6e0821SSantosh Shilimkar
46e2dbe06cSStijn Tintelobj-$(CONFIG_VIRTIO)		+= virtio/
47ad9a8612SJeremy Fitzhardingeobj-$(CONFIG_XEN)		+= xen/
48ad9a8612SJeremy Fitzhardinge
499f4dab49SDavid Brownell# regulators early, since some subsystems rely on them to initialize
509f4dab49SDavid Brownellobj-$(CONFIG_REGULATOR)		+= regulator/
519f4dab49SDavid Brownell
5261fc4131SPhilipp Zabel# reset controllers early, since gpu drivers might rely on them to initialize
5361fc4131SPhilipp Zabelobj-$(CONFIG_RESET_CONTROLLER)	+= reset/
5461fc4131SPhilipp Zabel
55ab4382d2SGreg Kroah-Hartman# tty/ comes before char/ so that the VT console is the boot-time
561da177e4SLinus Torvalds# default.
5796fd7ce5SGreg Kroah-Hartmanobj-y				+= tty/
581da177e4SLinus Torvaldsobj-y				+= char/
591da177e4SLinus Torvalds
601bacc894SOded Gabbay# iommu/ comes before gpu as gpu are using iommu controllers
611bacc894SOded Gabbayobj-$(CONFIG_IOMMU_SUPPORT)	+= iommu/
621bacc894SOded Gabbay
631bacc894SOded Gabbay# gpu/ comes after char for AGP vs DRM startup and after iommu
64e6b51632SDave Airlieobj-y				+= gpu/
65e6b51632SDave Airlie
667672d0b5SEvgeniy Polyakovobj-$(CONFIG_CONNECTOR)		+= connector/
677672d0b5SEvgeniy Polyakov
681da177e4SLinus Torvalds# i810fb and intelfb depend on char/agp/
69f7018c21STomi Valkeinenobj-$(CONFIG_FB_I810)           += video/fbdev/i810/
70f7018c21STomi Valkeinenobj-$(CONFIG_FB_INTEL)          += video/fbdev/intelfb/
711da177e4SLinus Torvalds
721da177e4SLinus Torvaldsobj-$(CONFIG_PARPORT)		+= parport/
73b2b7e001SMatias Bjørlingobj-$(CONFIG_NVM)		+= lightnvm/
740329326eSMatti J. Aaltonenobj-y				+= base/ block/ misc/ mfd/ nfc/
75b94d5230SDan Williamsobj-$(CONFIG_LIBNVDIMM)		+= nvdimm/
767b6be844SDan Williamsobj-$(CONFIG_DAX)		+= dax/
7735fac7e3SMaarten Lankhorstobj-$(CONFIG_DMA_SHARED_BUFFER) += dma-buf/
781da177e4SLinus Torvaldsobj-$(CONFIG_NUBUS)		+= nubus/
7945941d04SSoeren Sonnenburgobj-y				+= macintosh/
801da177e4SLinus Torvaldsobj-$(CONFIG_IDE)		+= ide/
811da177e4SLinus Torvaldsobj-$(CONFIG_SCSI)		+= scsi/
8257dacad5SJay Sternbergobj-y				+= nvme/
83c6fd2807SJeff Garzikobj-$(CONFIG_ATA)		+= ata/
84c66ac9dbSNicholas Bellingerobj-$(CONFIG_TARGET_CORE)	+= target/
859289d4efSSudhakar Rajashekharaobj-$(CONFIG_MTD)		+= mtd/
869289d4efSSudhakar Rajashekharaobj-$(CONFIG_SPI)		+= spi/
875a86bf34SKenneth Heitkeobj-$(CONFIG_SPMI)		+= spmi/
88ea12c45fSAndrew F. Davisobj-$(CONFIG_HSI)		+= hsi/
890c406263SArjan van de Venobj-y				+= net/
900c406263SArjan van de Venobj-$(CONFIG_ATM)		+= atm/
911da177e4SLinus Torvaldsobj-$(CONFIG_FUSION)		+= message/
928702d33aSStefan Richterobj-y				+= firewire/
93beafc54cSHans J. Kochobj-$(CONFIG_UIO)		+= uio/
94cba3345cSAlex Williamsonobj-$(CONFIG_VFIO)		+= vfio/
951da177e4SLinus Torvaldsobj-y				+= cdrom/
9670e84049SMiguel Ojeda Sandonisobj-y				+= auxdisplay/
971da177e4SLinus Torvaldsobj-$(CONFIG_PCCARD)		+= pcmcia/
981da177e4SLinus Torvaldsobj-$(CONFIG_DIO)		+= dio/
991da177e4SLinus Torvaldsobj-$(CONFIG_SBUS)		+= sbus/
1001da177e4SLinus Torvaldsobj-$(CONFIG_ZORRO)		+= zorro/
1011da177e4SLinus Torvaldsobj-$(CONFIG_ATA_OVER_ETH)	+= block/aoe/
1021da177e4SLinus Torvaldsobj-$(CONFIG_PARIDE) 		+= block/paride/
1031da177e4SLinus Torvaldsobj-$(CONFIG_TC)		+= tc/
104ae5d82cbSDavid Vrabelobj-$(CONFIG_UWB)		+= uwb/
105edc7cb2eSFelipe Balbiobj-$(CONFIG_USB_PHY)		+= usb/
1061da177e4SLinus Torvaldsobj-$(CONFIG_USB)		+= usb/
1076015d2c4SLinus Torvaldsobj-$(CONFIG_PCI)		+= usb/
1084661ffc9SFelipe Balbiobj-$(CONFIG_USB_GADGET)	+= usb/
1093d615964SAlexey Brodkinobj-$(CONFIG_OF)		+= usb/
11051c38f9bSDmitry Torokhovobj-$(CONFIG_SERIO)		+= input/serio/
1111da177e4SLinus Torvaldsobj-$(CONFIG_GAMEPORT)		+= input/gameport/
1121da177e4SLinus Torvaldsobj-$(CONFIG_INPUT)		+= input/
113c58411e9SAlessandro Zummoobj-$(CONFIG_RTC_LIB)		+= rtc/
114a357482aSGuennadi Liakhovetskiobj-y				+= i2c/ media/
115eae9d2baSRodolfo Giomettiobj-$(CONFIG_PPS)		+= pps/
116d1cbfd77SNicolas Pitreobj-y				+= ptp/
1171da177e4SLinus Torvaldsobj-$(CONFIG_W1)		+= w1/
118f96576bdSKrzysztof Kozlowskiobj-y				+= power/
119ad2f931dSJean Delvareobj-$(CONFIG_HWMON)		+= hwmon/
120203d3d4aSZhang Ruiobj-$(CONFIG_THERMAL)		+= thermal/
121b7e04f8cSWim Van Sebroeckobj-$(CONFIG_WATCHDOG)		+= watchdog/
1221da177e4SLinus Torvaldsobj-$(CONFIG_MD)		+= md/
1231da177e4SLinus Torvaldsobj-$(CONFIG_BT)		+= bluetooth/
124f7511d5fSSamuel Thibaultobj-$(CONFIG_ACCESSIBILITY)	+= accessibility/
1251da177e4SLinus Torvaldsobj-$(CONFIG_ISDN)		+= isdn/
126da9bb1d2SAlan Coxobj-$(CONFIG_EDAC)		+= edac/
1271da177e4SLinus Torvaldsobj-$(CONFIG_EISA)		+= eisa/
1287ea08093SGlauber de Oliveira Costaobj-y				+= lguest/
1291da177e4SLinus Torvaldsobj-$(CONFIG_CPU_FREQ)		+= cpufreq/
1304f86d3a8SLen Brownobj-$(CONFIG_CPU_IDLE)		+= cpuidle/
13152c506f0SAdrian Hunterobj-y				+= mmc/
132baf8532aSAlex Dubovobj-$(CONFIG_MEMSTICK)		+= memstick/
133b1ae40a5SAndrew F. Davisobj-$(CONFIG_NEW_LEDS)		+= leds/
1341da177e4SLinus Torvaldsobj-$(CONFIG_INFINIBAND)	+= infiniband/
135466575f4SJes Sorensenobj-$(CONFIG_SGI_SN)		+= sn/
1361da177e4SLinus Torvaldsobj-y				+= firmware/
1371da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO)		+= crypto/
138e87eaad1SPaul Mundtobj-$(CONFIG_SUPERH)		+= sh/
139592913ecSJohn Stultzifndef CONFIG_ARCH_USES_GETTIMEOFFSET
140592913ecSJohn Stultzobj-y				+= clocksource/
141592913ecSJohn Stultzendif
1427589670fSShannon Nelsonobj-$(CONFIG_DCA)		+= dca/
14363f3861dSJiri Kosinaobj-$(CONFIG_HID)		+= 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/
149b2fbd8b0SMichael S. Tsirkinobj-$(CONFIG_VHOST)		+= vhost/
15055e331cfSFlorian Fainelliobj-$(CONFIG_VLYNQ)		+= vlynq/
15135045589SGreg Kroah-Hartmanobj-$(CONFIG_STAGING)		+= staging/
15241b16dceSLen Brownobj-y				+= platform/
153bd9a4c7dSOhad Ben-Cohen
15430058677SRob Herringobj-$(CONFIG_MAILBOX)		+= mailbox/
155bd9a4c7dSOhad Ben-Cohenobj-$(CONFIG_HWSPINLOCK)	+= hwspinlock/
156400e64dfSOhad Ben-Cohenobj-$(CONFIG_REMOTEPROC)	+= remoteproc/
157bcabbccaSOhad Ben-Cohenobj-$(CONFIG_RPMSG)		+= rpmsg/
1586db71994STimur Tabi
1596db71994STimur Tabi# Virtualization drivers
1606db71994STimur Tabiobj-$(CONFIG_VIRT_DRIVERS)	+= virt/
16146a97191SGreg Kroah-Hartmanobj-$(CONFIG_HYPERV)		+= hv/
162a3c98b8bSMyungJoo Ham
163a3c98b8bSMyungJoo Hamobj-$(CONFIG_PM_DEVFREQ)	+= devfreq/
164de55d871SMyungJoo Hamobj-$(CONFIG_EXTCON)		+= extcon/
1657ec94453SAneesh Vobj-$(CONFIG_MEMORY)		+= memory/
166a980e046SJonathan Cameronobj-$(CONFIG_IIO)		+= iio/
167db3b9e99SGreg Kroah-Hartmanobj-$(CONFIG_VME_BUS)		+= vme/
16805e5027eSGreg Kroah-Hartmanobj-$(CONFIG_IPACK_BUS)		+= ipack/
169fce8a7bbSJon Masonobj-$(CONFIG_NTB)		+= ntb/
1709c9f32edSAlessandro Rubiniobj-$(CONFIG_FMC)		+= fmc/
17112cc4b38SSrinivas Pandruvadaobj-$(CONFIG_POWERCAP)		+= powercap/
1723764e82eSJohannes Thumshirnobj-$(CONFIG_MCB)		+= mcb/
173fa8ad788SMark Rutlandobj-$(CONFIG_PERF_EVENTS)	+= perf/
17476ac8275SChen, Gongobj-$(CONFIG_RAS)		+= ras/
17516603153SAndreas Noeverobj-$(CONFIG_THUNDERBOLT)	+= thunderbolt/
17601081f5aSMathieu Poirierobj-$(CONFIG_CORESIGHT)		+= hwtracing/coresight/
17739f40346SAlexander Shishkinobj-y				+= hwtracing/intel_th/
1787bd1d409SAlexander Shishkinobj-$(CONFIG_STM)		+= hwtracing/stm/
179777783e0SGreg Kroah-Hartmanobj-$(CONFIG_ANDROID)		+= android/
180eace75cfSSrinivas Kandagatlaobj-$(CONFIG_NVMEM)		+= nvmem/
1816a8c3be7SAlan Tullobj-$(CONFIG_FPGA)		+= fpga/
1820508ad1fSJeremy Kerrobj-$(CONFIG_FSI)		+= fsi/
183967c9ccaSJens Wiklanderobj-$(CONFIG_TEE)		+= tee/
184*a3b02a9cSPeter Rosinobj-$(CONFIG_MULTIPLEXER)	+= mux/
185