blob: 557cba5af5c90d993545dc531c996ebf9c34a7f4 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Makefile for the Linux kernel device drivers.
3#
4# 15 Sep 2000, Christoph Hellwig <hch@infradead.org>
5# Rewritten to use lists instead of if-statements.
6#
7
Simon Arlott89214f02012-09-12 19:57:26 -06008obj-y += irqchip/
Kishon Vijay Abraham I26a84b32012-08-22 14:10:02 +05309obj-y += bus/
Simon Arlott89214f02012-09-12 19:57:26 -060010
Kishon Vijay Abraham Iff764962013-09-27 11:53:25 +053011obj-$(CONFIG_GENERIC_PHY) += phy/
12
Carl van Schaik6d7b2ff2018-07-06 22:00:55 +100013obj-$(CONFIG_VSERVICES_SUPPORT) += vservices/
14
Linus Walleij2744e8a2011-05-02 20:50:54 +020015# GPIO must come after pinctrl as gpios may need to mux pins etc
Masahiro Yamada95b612c2015-07-09 10:55:01 +090016obj-$(CONFIG_PINCTRL) += pinctrl/
Andrew F. Davis6b891a22016-06-13 15:02:00 -050017obj-$(CONFIG_GPIOLIB) += gpio/
Sascha Hauer0c2498f2011-01-28 09:40:40 +010018obj-y += pwm/
Linus Torvalds6015d2c2005-12-03 20:50:51 -080019obj-$(CONFIG_PCI) += pci/
Linus Torvalds1da177e2005-04-16 15:20:36 -070020obj-$(CONFIG_PARISC) += parisc/
Matt Porter394b7012005-11-07 01:00:15 -080021obj-$(CONFIG_RAPIDIO) += rapidio/
Linus Torvalds1da177e2005-04-16 15:20:36 -070022obj-y += video/
Len Brown26717172010-03-08 14:07:30 -050023obj-y += idle/
Matthew Garrett061475b2012-10-16 15:53:38 -050024
25# IPMI must come before ACPI in order to provide IPMI opregion support
Alistair Popple54f9c4d2016-09-20 09:01:38 +020026obj-y += char/ipmi/
Matthew Garrett061475b2012-10-16 15:53:38 -050027
Len Brown888ba6c2005-08-24 12:07:20 -040028obj-$(CONFIG_ACPI) += acpi/
Feng Tang6ae69962009-08-14 15:13:46 -040029obj-$(CONFIG_SFI) += sfi/
Linus Torvalds1da177e2005-04-16 15:20:36 -070030# PnP must come after ACPI since it will eventually need to check if acpi
31# was used and do nothing if so
32obj-$(CONFIG_PNP) += pnp/
Hiroshi DOYU87d0bab2012-05-07 12:24:48 +020033obj-y += amba/
Masahiro Yamada6eb1c942016-09-19 01:16:44 +090034
35obj-y += clk/
Linus Walleija0eb2212011-05-18 14:18:57 +020036# Many drivers will want to use DMA so this has to be made available
37# really early.
Philippe De Muyter9a322992012-10-12 17:52:45 +020038obj-$(CONFIG_DMADEVICES) += dma/
Linus Torvalds1da177e2005-04-16 15:20:36 -070039
Santosh Shilimkar3a6e0822014-04-23 19:46:17 -040040# SOC specific infrastructure drivers.
41obj-y += soc/
42
Stijn Tintele2dbe062010-05-07 14:28:34 +093043obj-$(CONFIG_VIRTIO) += virtio/
Jeremy Fitzhardingead9a8612007-07-17 18:37:06 -070044obj-$(CONFIG_XEN) += xen/
45
David Brownell9f4dab492008-12-01 21:50:13 -080046# regulators early, since some subsystems rely on them to initialize
47obj-$(CONFIG_REGULATOR) += regulator/
48
Philipp Zabel61fc4132012-11-19 17:23:13 +010049# reset controllers early, since gpu drivers might rely on them to initialize
50obj-$(CONFIG_RESET_CONTROLLER) += reset/
51
Greg Kroah-Hartmanab4382d2011-01-13 12:10:18 -080052# tty/ comes before char/ so that the VT console is the boot-time
Linus Torvalds1da177e2005-04-16 15:20:36 -070053# default.
Greg Kroah-Hartman96fd7ce2010-11-04 11:10:29 -070054obj-y += tty/
Linus Torvalds1da177e2005-04-16 15:20:36 -070055obj-y += char/
56
Oded Gabbay1bacc892014-12-22 11:47:37 +020057# iommu/ comes before gpu as gpu are using iommu controllers
58obj-$(CONFIG_IOMMU_SUPPORT) += iommu/
59
60# gpu/ comes after char for AGP vs DRM startup and after iommu
Dave Airliee6b51632008-07-21 08:42:36 +100061obj-y += gpu/
62
Evgeniy Polyakov7672d0b2005-09-11 19:15:07 -070063obj-$(CONFIG_CONNECTOR) += connector/
64
Linus Torvalds1da177e2005-04-16 15:20:36 -070065# i810fb and intelfb depend on char/agp/
Tomi Valkeinenf7018c22014-02-13 15:31:38 +020066obj-$(CONFIG_FB_I810) += video/fbdev/i810/
67obj-$(CONFIG_FB_INTEL) += video/fbdev/intelfb/
Linus Torvalds1da177e2005-04-16 15:20:36 -070068
Linus Torvalds1da177e2005-04-16 15:20:36 -070069obj-$(CONFIG_PARPORT) += parport/
Matias Bjørlingb2b7e002015-11-12 20:25:10 +010070obj-$(CONFIG_NVM) += lightnvm/
Matti J. Aaltonen03293262011-01-12 17:00:47 -080071obj-y += base/ block/ misc/ mfd/ nfc/
Dan Williamsb94d5232015-05-19 22:54:31 -040072obj-$(CONFIG_LIBNVDIMM) += nvdimm/
Dan Williamsab68f262016-05-18 09:15:08 -070073obj-$(CONFIG_DEV_DAX) += dax/
Maarten Lankhorst35fac7e2014-07-01 12:57:08 +020074obj-$(CONFIG_DMA_SHARED_BUFFER) += dma-buf/
Linus Torvalds1da177e2005-04-16 15:20:36 -070075obj-$(CONFIG_NUBUS) += nubus/
Soeren Sonnenburg45941d02007-02-08 14:20:38 -080076obj-y += macintosh/
Linus Torvalds1da177e2005-04-16 15:20:36 -070077obj-$(CONFIG_IDE) += ide/
Maya Erez754d4c92014-12-07 09:01:52 +020078obj-$(CONFIG_CRYPTO) += crypto/
Linus Torvalds1da177e2005-04-16 15:20:36 -070079obj-$(CONFIG_SCSI) += scsi/
Jay Sternberg57dacad2015-10-09 18:17:06 +020080obj-y += nvme/
Jeff Garzikc6fd2802006-08-10 07:31:37 -040081obj-$(CONFIG_ATA) += ata/
Nicholas Bellingerc66ac9d2010-12-17 11:11:26 -080082obj-$(CONFIG_TARGET_CORE) += target/
Sudhakar Rajashekhara9289d4e2009-08-18 12:34:04 -040083obj-$(CONFIG_MTD) += mtd/
84obj-$(CONFIG_SPI) += spi/
Kenneth Heitke5a86bf32014-02-12 13:44:22 -060085obj-$(CONFIG_SPMI) += spmi/
Sagar Dhariabe37c9c2016-11-28 23:06:58 -070086obj-$(CONFIG_SLIMBUS) += slimbus/
Andrew F. Davisea12c452016-06-13 15:02:05 -050087obj-$(CONFIG_HSI) += hsi/
Arjan van de Ven0c406262009-01-26 18:58:11 -080088obj-y += net/
89obj-$(CONFIG_ATM) += atm/
Linus Torvalds1da177e2005-04-16 15:20:36 -070090obj-$(CONFIG_FUSION) += message/
Stefan Richter8702d332010-09-15 13:02:44 +020091obj-y += firewire/
Hans J. Kochbeafc542006-12-07 10:58:29 +010092obj-$(CONFIG_UIO) += uio/
Alex Williamsoncba33452012-07-31 08:16:22 -060093obj-$(CONFIG_VFIO) += vfio/
Linus Torvalds1da177e2005-04-16 15:20:36 -070094obj-y += cdrom/
Miguel Ojeda Sandonis70e84042007-02-10 01:44:32 -080095obj-y += auxdisplay/
Linus Torvalds1da177e2005-04-16 15:20:36 -070096obj-$(CONFIG_PCCARD) += pcmcia/
97obj-$(CONFIG_DIO) += dio/
98obj-$(CONFIG_SBUS) += sbus/
99obj-$(CONFIG_ZORRO) += zorro/
Linus Torvalds1da177e2005-04-16 15:20:36 -0700100obj-$(CONFIG_ATA_OVER_ETH) += block/aoe/
101obj-$(CONFIG_PARIDE) += block/paride/
102obj-$(CONFIG_TC) += tc/
David Vrabelae5d82c2008-10-24 16:46:22 +0100103obj-$(CONFIG_UWB) += uwb/
Felipe Balbiedc7cb22013-03-07 11:13:43 +0200104obj-$(CONFIG_USB_PHY) += usb/
Linus Torvalds1da177e2005-04-16 15:20:36 -0700105obj-$(CONFIG_USB) += usb/
Randy Dunlapb25d7662017-11-17 11:00:45 -0800106obj-$(CONFIG_USB_SUPPORT) += usb/
Linus Torvalds6015d2c2005-12-03 20:50:51 -0800107obj-$(CONFIG_PCI) += usb/
Felipe Balbi4661ffc2011-04-07 10:59:34 +0300108obj-$(CONFIG_USB_GADGET) += usb/
Alexey Brodkin5a001a62017-04-13 15:33:34 +0300109obj-$(CONFIG_OF) += usb/
Dmitry Torokhov51c38f92006-02-19 00:22:51 -0500110obj-$(CONFIG_SERIO) += input/serio/
Linus Torvalds1da177e2005-04-16 15:20:36 -0700111obj-$(CONFIG_GAMEPORT) += input/gameport/
112obj-$(CONFIG_INPUT) += input/
Alessandro Zummoc58411e2006-03-27 01:16:34 -0800113obj-$(CONFIG_RTC_LIB) += rtc/
Guennadi Liakhovetskia3574822009-04-21 04:22:38 -0300114obj-y += i2c/ media/
Rodolfo Giomettieae9d2b2009-06-17 16:28:37 -0700115obj-$(CONFIG_PPS) += pps/
Richard Cochrand94ba802011-04-22 12:03:08 +0200116obj-$(CONFIG_PTP_1588_CLOCK) += ptp/
Linus Torvalds1da177e2005-04-16 15:20:36 -0700117obj-$(CONFIG_W1) += w1/
Krzysztof Kozlowskif96576b2015-12-07 12:45:12 +0900118obj-y += power/
Jean Delvaread2f9312005-07-02 18:15:49 +0200119obj-$(CONFIG_HWMON) += hwmon/
Zhang Rui203d3d42008-01-17 15:51:08 +0800120obj-$(CONFIG_THERMAL) += thermal/
Wim Van Sebroeckb7e04f82007-08-17 08:38:02 +0000121obj-$(CONFIG_WATCHDOG) += watchdog/
Linus Torvalds1da177e2005-04-16 15:20:36 -0700122obj-$(CONFIG_MD) += md/
123obj-$(CONFIG_BT) += bluetooth/
Samuel Thibaultf7511d52008-04-30 00:54:51 -0700124obj-$(CONFIG_ACCESSIBILITY) += accessibility/
Linus Torvalds1da177e2005-04-16 15:20:36 -0700125obj-$(CONFIG_ISDN) += isdn/
Alan Coxda9bb1d2006-01-18 17:44:13 -0800126obj-$(CONFIG_EDAC) += edac/
Linus Torvalds1da177e2005-04-16 15:20:36 -0700127obj-$(CONFIG_EISA) += eisa/
Glauber de Oliveira Costa7ea08092008-01-18 00:16:43 -0200128obj-y += lguest/
Linus Torvalds1da177e2005-04-16 15:20:36 -0700129obj-$(CONFIG_CPU_FREQ) += cpufreq/
Len Brown4f86d3a2007-10-03 18:58:00 -0400130obj-$(CONFIG_CPU_IDLE) += cpuidle/
Adrian Hunter52c506f2011-12-27 15:48:43 +0200131obj-y += mmc/
Alex Dubovbaf85322008-02-09 10:20:54 -0800132obj-$(CONFIG_MEMSTICK) += memstick/
Andrew F. Davisb1ae40a2016-06-21 14:35:07 +0200133obj-$(CONFIG_NEW_LEDS) += leds/
Linus Torvalds1da177e2005-04-16 15:20:36 -0700134obj-$(CONFIG_INFINIBAND) += infiniband/
Jes Sorensen466575f2006-01-19 04:54:00 -0500135obj-$(CONFIG_SGI_SN) += sn/
Linus Torvalds1da177e2005-04-16 15:20:36 -0700136obj-y += firmware/
Paul Mundte87eaad2005-11-07 00:58:19 -0800137obj-$(CONFIG_SUPERH) += sh/
John Stultz592913e2010-07-13 17:56:20 -0700138ifndef CONFIG_ARCH_USES_GETTIMEOFFSET
139obj-y += clocksource/
140endif
Shannon Nelson75896702007-10-16 01:27:41 -0700141obj-$(CONFIG_DCA) += dca/
Jiri Kosina63f38612006-12-08 18:41:30 +0100142obj-$(CONFIG_HID) += hid/
Geert Uytterhoeveneb30c722006-11-27 19:18:56 +0100143obj-$(CONFIG_PPC_PS3) += ps3/
Stephen Rothwell97e873e2007-05-01 16:26:07 +1000144obj-$(CONFIG_OF) += of/
Michael Buesch61e115a2007-09-18 15:12:50 -0400145obj-$(CONFIG_SSB) += ssb/
Rafał Miłecki8369ae32011-05-09 18:56:46 +0200146obj-$(CONFIG_BCMA) += bcma/
Rusty Russellf87d0fb2013-03-20 13:50:14 +1030147obj-$(CONFIG_VHOST_RING) += vhost/
Michael S. Tsirkinb2fbd8b2016-08-02 01:53:13 +0300148obj-$(CONFIG_VHOST) += vhost/
Florian Fainelli55e331c2009-06-16 15:33:53 -0700149obj-$(CONFIG_VLYNQ) += vlynq/
Greg Kroah-Hartman35045582008-09-24 14:46:44 -0700150obj-$(CONFIG_STAGING) += staging/
Len Brown41b16dc2008-12-01 00:09:47 -0500151obj-y += platform/
Ohad Ben-Cohenbd9a4c72011-02-17 09:52:03 -0800152
Rob Herring30058672013-01-28 16:13:14 +0000153obj-$(CONFIG_MAILBOX) += mailbox/
Ohad Ben-Cohenbd9a4c72011-02-17 09:52:03 -0800154obj-$(CONFIG_HWSPINLOCK) += hwspinlock/
Ohad Ben-Cohen400e64d2011-10-20 16:52:46 +0200155obj-$(CONFIG_REMOTEPROC) += remoteproc/
Ohad Ben-Cohenbcabbcc2011-10-20 21:10:55 +0200156obj-$(CONFIG_RPMSG) += rpmsg/
Timur Tabi6db71992011-06-09 15:52:06 -0500157
158# Virtualization drivers
159obj-$(CONFIG_VIRT_DRIVERS) += virt/
Greg Kroah-Hartman46a97192011-10-04 12:29:52 -0700160obj-$(CONFIG_HYPERV) += hv/
MyungJoo Hama3c98b82011-10-02 00:19:15 +0200161
162obj-$(CONFIG_PM_DEVFREQ) += devfreq/
MyungJoo Hamde55d872012-04-20 14:16:22 +0900163obj-$(CONFIG_EXTCON) += extcon/
Aneesh V7ec94452012-04-27 17:54:05 +0530164obj-$(CONFIG_MEMORY) += memory/
Jonathan Camerona980e042012-04-25 15:54:59 +0100165obj-$(CONFIG_IIO) += iio/
Greg Kroah-Hartmandb3b9e92012-04-26 12:34:58 -0700166obj-$(CONFIG_VME_BUS) += vme/
Greg Kroah-Hartman05e50272012-11-16 08:14:18 -0800167obj-$(CONFIG_IPACK_BUS) += ipack/
Jon Masonfce8a7b2012-11-16 19:27:12 -0700168obj-$(CONFIG_NTB) += ntb/
Alessandro Rubini9c9f32e2013-06-12 09:13:25 +0200169obj-$(CONFIG_FMC) += fmc/
Srinivas Pandruvada12cc4b382013-10-11 16:54:57 -0700170obj-$(CONFIG_POWERCAP) += powercap/
Johannes Thumshirn3764e822014-02-26 17:29:05 +0100171obj-$(CONFIG_MCB) += mcb/
Mark Rutlandfa8ad782015-07-06 12:23:53 +0100172obj-$(CONFIG_PERF_EVENTS) += perf/
Chen, Gong76ac8272014-06-11 13:54:04 -0700173obj-$(CONFIG_RAS) += ras/
Andreas Noever16603152014-06-03 22:03:58 +0200174obj-$(CONFIG_THUNDERBOLT) += thunderbolt/
Mathieu Poirier01081f52015-03-30 14:13:41 -0600175obj-$(CONFIG_CORESIGHT) += hwtracing/coresight/
Alexander Shishkin39f40342015-09-22 15:47:14 +0300176obj-y += hwtracing/intel_th/
Alexander Shishkin7bd1d402015-09-22 15:47:10 +0300177obj-$(CONFIG_STM) += hwtracing/stm/
Greg Kroah-Hartman777783e2014-10-16 14:40:38 +0200178obj-$(CONFIG_ANDROID) += android/
Srinivas Kandagatlaeace75c2015-07-27 12:13:19 +0100179obj-$(CONFIG_NVMEM) += nvmem/
Abhimanyu Kapurc75b2e12016-02-22 18:15:13 -0800180obj-$(CONFIG_ESOC) += esoc/
Alan Tull6a8c3be2015-10-07 16:36:28 +0100181obj-$(CONFIG_FPGA) += fpga/
Ananda Kishore7875c502017-05-04 00:11:28 +0530182obj-$(CONFIG_SENSORS_SSC) += sensors/
Jens Wiklanderfb938962015-03-11 14:39:39 +0100183obj-$(CONFIG_TEE) += tee/