blob: cf25cf9e396a11d12a23241f1abc64db1fe0e853 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -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
8# GPIO must come after pinctrl as gpios may need to mux pins etc
9obj-y += pinctrl/
10obj-y += gpio/
11#obj-y += cfg/
12obj-$(CONFIG_PCI) += pci/
13obj-$(CONFIG_PARISC) += parisc/
14obj-$(CONFIG_RAPIDIO) += rapidio/
15obj-y += video/
16obj-y += idle/
17obj-$(CONFIG_ACPI) += acpi/
18obj-$(CONFIG_SFI) += sfi/
19# PnP must come after ACPI since it will eventually need to check if acpi
20# was used and do nothing if so
21obj-$(CONFIG_PNP) += pnp/
22obj-$(CONFIG_ARM_AMBA) += amba/
23# Many drivers will want to use DMA so this has to be made available
24# really early.
25obj-$(CONFIG_DMA_ENGINE) += dma/
26
27obj-$(CONFIG_VIRTIO) += virtio/
28obj-$(CONFIG_XEN) += xen/
29
30# regulators early, since some subsystems rely on them to initialize
31obj-$(CONFIG_REGULATOR) += regulator/
32
33# tty/ comes before char/ so that the VT console is the boot-time
34# default.
35obj-y += tty/
36obj-y += char/
37obj-$(CONFIG_CPNV) += cpnv/
38obj-$(CONFIG_CPPS_INIT2) += cpps_init2/
39obj-y += psadapter/
40
41# gpu/ comes after char for AGP vs DRM startup
42obj-y += gpu/
43
44obj-$(CONFIG_CONNECTOR) += connector/
45
46# i810fb and intelfb depend on char/agp/
47obj-$(CONFIG_FB_I810) += video/i810/
48obj-$(CONFIG_FB_INTEL) += video/intelfb/
49
50obj-$(CONFIG_PARPORT) += parport/
51obj-y += base/ block/ misc/ mfd/ nfc/
52obj-$(CONFIG_NUBUS) += nubus/
53obj-y += macintosh/
54obj-$(CONFIG_IDE) += ide/
55obj-$(CONFIG_SCSI) += scsi/
56obj-$(CONFIG_ATA) += ata/
57obj-$(CONFIG_TARGET_CORE) += target/
58obj-$(CONFIG_MTD) += mtd/
59obj-$(CONFIG_SPI) += spi/
60obj-y += hsi/
61obj-y += net/
62obj-$(CONFIG_ATM) += atm/
63obj-$(CONFIG_FUSION) += message/
64obj-y += firewire/
65obj-$(CONFIG_UIO) += uio/
66obj-y += cdrom/
67obj-y += auxdisplay/
68obj-$(CONFIG_PCCARD) += pcmcia/
69obj-$(CONFIG_DIO) += dio/
70obj-$(CONFIG_SBUS) += sbus/
71obj-$(CONFIG_ZORRO) += zorro/
72obj-$(CONFIG_MAC) += macintosh/
73obj-$(CONFIG_ATA_OVER_ETH) += block/aoe/
74obj-$(CONFIG_PARIDE) += block/paride/
75obj-$(CONFIG_TC) += tc/
76obj-$(CONFIG_UWB) += uwb/
77obj-$(CONFIG_USB_OTG_UTILS) += usb/
78obj-$(CONFIG_USB) += usb/
79obj-$(CONFIG_PCI) += usb/
80obj-$(CONFIG_USB_GADGET) += usb/
81obj-$(CONFIG_SERIO) += input/serio/
82obj-$(CONFIG_GAMEPORT) += input/gameport/
83obj-$(CONFIG_INPUT) += input/
84obj-$(CONFIG_I2O) += message/
85obj-$(CONFIG_RTC_LIB) += rtc/
86obj-y += i2c/ media/
87obj-$(CONFIG_PPS) += pps/
88obj-$(CONFIG_PTP_1588_CLOCK) += ptp/
89obj-$(CONFIG_W1) += w1/
90obj-$(CONFIG_POWER_SUPPLY) += power/
91obj-$(CONFIG_HWMON) += hwmon/
92obj-$(CONFIG_THERMAL) += thermal/
93obj-$(CONFIG_WATCHDOG) += watchdog/
94obj-$(CONFIG_MD) += md/
95obj-$(CONFIG_BT) += bluetooth/
96obj-$(CONFIG_ACCESSIBILITY) += accessibility/
97obj-$(CONFIG_ISDN) += isdn/
98obj-$(CONFIG_EDAC) += edac/
99obj-$(CONFIG_MCA) += mca/
100obj-$(CONFIG_EISA) += eisa/
101obj-y += lguest/
102obj-$(CONFIG_CPU_FREQ) += cpufreq/
103obj-$(CONFIG_CPU_IDLE) += cpuidle/
104obj-y += mmc/
105obj-$(CONFIG_MEMSTICK) += memstick/
106obj-y += leds/
107#obj-$(CONFIG_SWITCH) += switch/
108obj-$(CONFIG_INFINIBAND) += infiniband/
109obj-$(CONFIG_SGI_SN) += sn/
110obj-y += firmware/
111obj-$(CONFIG_CRYPTO) += crypto/
112obj-$(CONFIG_SUPERH) += sh/
113obj-$(CONFIG_ARCH_SHMOBILE) += sh/
114ifndef CONFIG_ARCH_USES_GETTIMEOFFSET
115obj-y += clocksource/
116endif
117obj-$(CONFIG_DCA) += dca/
118obj-$(CONFIG_HID) += hid/
119obj-$(CONFIG_PPC_PS3) += ps3/
120obj-$(CONFIG_OF) += of/
121obj-$(CONFIG_SSB) += ssb/
122obj-$(CONFIG_BCMA) += bcma/
123obj-$(CONFIG_VHOST_NET) += vhost/
124obj-$(CONFIG_VLYNQ) += vlynq/
125obj-$(CONFIG_STAGING) += staging/
126obj-y += platform/
127obj-y += ieee802154/
128#common clk code
129obj-y += clk/
130
131obj-$(CONFIG_HWSPINLOCK) += hwspinlock/
132obj-$(CONFIG_NFC) += nfc/
133obj-$(CONFIG_IOMMU_SUPPORT) += iommu/
134obj-$(CONFIG_REMOTEPROC) += remoteproc/
135obj-$(CONFIG_RPMSG) += rpmsg/
136
137# Virtualization drivers
138obj-$(CONFIG_VIRT_DRIVERS) += virt/
139obj-$(CONFIG_HYPERV) += hv/
140
141obj-$(CONFIG_PM_DEVFREQ) += devfreq/
142
143obj-$(CONFIG_PLAT_ZTE) += irqchip/
144obj-$(CONFIG_PLAT_ZTE) += soc/
145obj-$(CONFIG_SI3217X) += slic/
146obj-$(CONFIG_SI3218X) += slic/
147
148obj-$(CONFIG_SLIC_TW) += slic_tw/