block: ublk: make sure that block size is set correctly
[linux-block.git] / drivers / Makefile
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
1da177e4
LT
2#
3# Makefile for the Linux kernel device drivers.
4#
5# 15 Sep 2000, Christoph Hellwig <hch@infradead.org>
6# Rewritten to use lists instead of if-statements.
7#
8
67d7c302
MY
9# Some driver Makefiles miss $(srctree)/ for include directive.
10ifdef building_out_of_srctree
11MAKEFLAGS += --include-dir=$(srctree)
12endif
13
89214f00 14obj-y += irqchip/
26a84b3e 15obj-y += bus/
89214f00 16
ff764963
KVA
17obj-$(CONFIG_GENERIC_PHY) += phy/
18
2744e8af 19# GPIO must come after pinctrl as gpios may need to mux pins etc
95b612cc 20obj-$(CONFIG_PINCTRL) += pinctrl/
6b891a26 21obj-$(CONFIG_GPIOLIB) += gpio/
0c2498f1 22obj-y += pwm/
5e8cb403 23
9de0eec2 24obj-y += pci/
7a2b3f02 25
1da177e4 26obj-$(CONFIG_PARISC) += parisc/
394b701c 27obj-$(CONFIG_RAPIDIO) += rapidio/
1da177e4 28obj-y += video/
26717172 29obj-y += idle/
061475b6
MG
30
31# IPMI must come before ACPI in order to provide IPMI opregion support
54f9c4d0 32obj-y += char/ipmi/
061475b6 33
888ba6c6 34obj-$(CONFIG_ACPI) += acpi/
4590d98f 35
1da177e4
LT
36# PnP must come after ACPI since it will eventually need to check if acpi
37# was used and do nothing if so
38obj-$(CONFIG_PNP) += pnp/
87d0bab2 39obj-y += amba/
6eb1c949
MY
40
41obj-y += clk/
a0eb221a
LW
42# Many drivers will want to use DMA so this has to be made available
43# really early.
9a322993 44obj-$(CONFIG_DMADEVICES) += dma/
1da177e4 45
3a6e0821
SS
46# SOC specific infrastructure drivers.
47obj-y += soc/
48
27d9839f 49obj-y += virtio/
c9b9f5f8 50obj-$(CONFIG_VDPA) += vdpa/
ad9a8612
JF
51obj-$(CONFIG_XEN) += xen/
52
9f4dab49
DB
53# regulators early, since some subsystems rely on them to initialize
54obj-$(CONFIG_REGULATOR) += regulator/
55
61fc4131
PZ
56# reset controllers early, since gpu drivers might rely on them to initialize
57obj-$(CONFIG_RESET_CONTROLLER) += reset/
58
ab4382d2 59# tty/ comes before char/ so that the VT console is the boot-time
1da177e4 60# default.
96fd7ce5 61obj-y += tty/
1da177e4
LT
62obj-y += char/
63
1bacc894 64# iommu/ comes before gpu as gpu are using iommu controllers
bd3c2e66 65obj-y += iommu/
1bacc894
OG
66
67# gpu/ comes after char for AGP vs DRM startup and after iommu
e6b51632
DA
68obj-y += gpu/
69
7672d0b5
EP
70obj-$(CONFIG_CONNECTOR) += connector/
71
1da177e4 72# i810fb and intelfb depend on char/agp/
f7018c21
TV
73obj-$(CONFIG_FB_I810) += video/fbdev/i810/
74obj-$(CONFIG_FB_INTEL) += video/fbdev/intelfb/
1da177e4 75
1da177e4 76obj-$(CONFIG_PARPORT) += parport/
0329326e 77obj-y += base/ block/ misc/ mfd/ nfc/
b94d5230 78obj-$(CONFIG_LIBNVDIMM) += nvdimm/
8a3d95ea 79obj-y += dax/
35fac7e3 80obj-$(CONFIG_DMA_SHARED_BUFFER) += dma-buf/
1da177e4 81obj-$(CONFIG_NUBUS) += nubus/
9ea4dcf4 82obj-y += cxl/
45941d04 83obj-y += macintosh/
ad80f970 84obj-y += scsi/
57dacad5 85obj-y += nvme/
c6fd2807 86obj-$(CONFIG_ATA) += ata/
c66ac9db 87obj-$(CONFIG_TARGET_CORE) += target/
9289d4ef
SR
88obj-$(CONFIG_MTD) += mtd/
89obj-$(CONFIG_SPI) += spi/
5a86bf34 90obj-$(CONFIG_SPMI) += spmi/
ea12c45f 91obj-$(CONFIG_HSI) += hsi/
3648e78e 92obj-$(CONFIG_SLIMBUS) += slimbus/
0c406263
AV
93obj-y += net/
94obj-$(CONFIG_ATM) += atm/
1da177e4 95obj-$(CONFIG_FUSION) += message/
8702d33a 96obj-y += firewire/
beafc54c 97obj-$(CONFIG_UIO) += uio/
cba3345c 98obj-$(CONFIG_VFIO) += vfio/
1da177e4 99obj-y += cdrom/
70e84049 100obj-y += auxdisplay/
1da177e4
LT
101obj-$(CONFIG_PCCARD) += pcmcia/
102obj-$(CONFIG_DIO) += dio/
103obj-$(CONFIG_SBUS) += sbus/
104obj-$(CONFIG_ZORRO) += zorro/
1da177e4 105obj-$(CONFIG_ATA_OVER_ETH) += block/aoe/
1da177e4 106obj-$(CONFIG_TC) += tc/
edc7cb2e 107obj-$(CONFIG_USB_PHY) += usb/
1da177e4 108obj-$(CONFIG_USB) += usb/
c9d24f78 109obj-$(CONFIG_USB_SUPPORT) += usb/
6015d2c4 110obj-$(CONFIG_PCI) += usb/
4661ffc9 111obj-$(CONFIG_USB_GADGET) += usb/
3d615964 112obj-$(CONFIG_OF) += usb/
51c38f9b 113obj-$(CONFIG_SERIO) += input/serio/
1da177e4
LT
114obj-$(CONFIG_GAMEPORT) += input/gameport/
115obj-$(CONFIG_INPUT) += input/
c58411e9 116obj-$(CONFIG_RTC_LIB) += rtc/
3a379bbc 117obj-y += i2c/ i3c/ media/
eae9d2ba 118obj-$(CONFIG_PPS) += pps/
d1cbfd77 119obj-y += ptp/
1da177e4 120obj-$(CONFIG_W1) += w1/
f96576bd 121obj-y += power/
ad2f931d 122obj-$(CONFIG_HWMON) += hwmon/
203d3d4a 123obj-$(CONFIG_THERMAL) += thermal/
b7e04f8c 124obj-$(CONFIG_WATCHDOG) += watchdog/
1da177e4
LT
125obj-$(CONFIG_MD) += md/
126obj-$(CONFIG_BT) += bluetooth/
f7511d5f 127obj-$(CONFIG_ACCESSIBILITY) += accessibility/
1da177e4 128obj-$(CONFIG_ISDN) += isdn/
da9bb1d2 129obj-$(CONFIG_EDAC) += edac/
1da177e4 130obj-$(CONFIG_EISA) += eisa/
7813dd6f 131obj-$(CONFIG_PM_OPP) += opp/
1da177e4 132obj-$(CONFIG_CPU_FREQ) += cpufreq/
4f86d3a8 133obj-$(CONFIG_CPU_IDLE) += cpuidle/
52c506f0 134obj-y += mmc/
dd11376b 135obj-y += ufs/
baf8532a 136obj-$(CONFIG_MEMSTICK) += memstick/
b1ae40a5 137obj-$(CONFIG_NEW_LEDS) += leds/
1da177e4 138obj-$(CONFIG_INFINIBAND) += infiniband/
1da177e4
LT
139obj-y += firmware/
140obj-$(CONFIG_CRYPTO) += crypto/
e87eaad1 141obj-$(CONFIG_SUPERH) += sh/
592913ec 142obj-y += clocksource/
7589670f 143obj-$(CONFIG_DCA) += dca/
25621bcc 144obj-$(CONFIG_HID_SUPPORT) += hid/
eb30c720 145obj-$(CONFIG_PPC_PS3) += ps3/
97e873e5 146obj-$(CONFIG_OF) += of/
61e115a5 147obj-$(CONFIG_SSB) += ssb/
8369ae33 148obj-$(CONFIG_BCMA) += bcma/
f87d0fbb 149obj-$(CONFIG_VHOST_RING) += vhost/
98701a2a 150obj-$(CONFIG_VHOST_IOTLB) += vhost/
b2fbd8b0 151obj-$(CONFIG_VHOST) += vhost/
55e331cf 152obj-$(CONFIG_VLYNQ) += vlynq/
8465def4 153obj-$(CONFIG_GREYBUS) += greybus/
8ffdff6a 154obj-$(CONFIG_COMEDI) += comedi/
35045589 155obj-$(CONFIG_STAGING) += staging/
41b16dce 156obj-y += platform/
bd9a4c7d 157
30058677 158obj-$(CONFIG_MAILBOX) += mailbox/
bd9a4c7d 159obj-$(CONFIG_HWSPINLOCK) += hwspinlock/
400e64df 160obj-$(CONFIG_REMOTEPROC) += remoteproc/
bcabbcca 161obj-$(CONFIG_RPMSG) += rpmsg/
9251345d 162obj-$(CONFIG_SOUNDWIRE) += soundwire/
6db71994
TT
163
164# Virtualization drivers
165obj-$(CONFIG_VIRT_DRIVERS) += virt/
a4d7e8ae 166obj-$(subst m,y,$(CONFIG_HYPERV)) += hv/
a3c98b8b
MH
167
168obj-$(CONFIG_PM_DEVFREQ) += devfreq/
de55d871 169obj-$(CONFIG_EXTCON) += extcon/
7ec94453 170obj-$(CONFIG_MEMORY) += memory/
a980e046 171obj-$(CONFIG_IIO) += iio/
05e5027e 172obj-$(CONFIG_IPACK_BUS) += ipack/
fce8a7bb 173obj-$(CONFIG_NTB) += ntb/
12cc4b38 174obj-$(CONFIG_POWERCAP) += powercap/
3764e82e 175obj-$(CONFIG_MCB) += mcb/
fa8ad788 176obj-$(CONFIG_PERF_EVENTS) += perf/
76ac8275 177obj-$(CONFIG_RAS) += ras/
690ac0d2 178obj-$(CONFIG_USB4) += thunderbolt/
01081f5a 179obj-$(CONFIG_CORESIGHT) += hwtracing/coresight/
39f40346 180obj-y += hwtracing/intel_th/
7bd1d409 181obj-$(CONFIG_STM) += hwtracing/stm/
ff0de066 182obj-$(CONFIG_HISI_PTT) += hwtracing/ptt/
1045a067 183obj-y += android/
eace75cf 184obj-$(CONFIG_NVMEM) += nvmem/
6a8c3be7 185obj-$(CONFIG_FPGA) += fpga/
0508ad1f 186obj-$(CONFIG_FSI) += fsi/
967c9cca 187obj-$(CONFIG_TEE) += tee/
a3b02a9c 188obj-$(CONFIG_MULTIPLEXER) += mux/
bbecb07f 189obj-$(CONFIG_SIOX) += siox/
2b6a4403 190obj-$(CONFIG_GNSS) += gnss/
11f1ceca 191obj-$(CONFIG_INTERCONNECT) += interconnect/
0040a390 192obj-$(CONFIG_COUNTER) += counter/
b2765275 193obj-$(CONFIG_MOST) += most/
6523d3b2 194obj-$(CONFIG_PECI) += peci/
31ab09b4 195obj-$(CONFIG_HTE) += hte/
e65e175b 196obj-$(CONFIG_DRM_ACCEL) += accel/