1# SPDX-License-Identifier: GPL-2.0+
2
3obj-$(CONFIG_$(SPL_TPL_)BUTTON) += button/
4obj-$(CONFIG_$(SPL_TPL_)CACHE) += cache/
5obj-$(CONFIG_$(SPL_TPL_)CLK) += clk/
6obj-$(CONFIG_$(SPL_TPL_)DM) += core/
7obj-$(CONFIG_$(SPL_TPL_)DFU) += dfu/
8obj-$(CONFIG_$(SPL_TPL_)GPIO_SUPPORT) += gpio/
9obj-$(CONFIG_$(SPL_TPL_)DRIVERS_MISC_SUPPORT) += misc/
10obj-$(CONFIG_$(SPL_TPL_)SYSRESET) += sysreset/
11obj-$(CONFIG_$(SPL_TPL_)FIRMWARE) +=firmware/
12obj-$(CONFIG_$(SPL_TPL_)I2C_SUPPORT) += i2c/
13obj-$(CONFIG_$(SPL_TPL_)INPUT) += input/
14obj-$(CONFIG_$(SPL_TPL_)LED) += led/
15obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += mmc/
16obj-y += mtd/
17obj-$(CONFIG_$(SPL_)MULTIPLEXER) += mux/
18obj-$(CONFIG_$(SPL_TPL_)PCH_SUPPORT) += pch/
19obj-$(CONFIG_$(SPL_TPL_)PCI) += pci/
20obj-$(CONFIG_$(SPL_TPL_)PHY) += phy/
21obj-$(CONFIG_$(SPL_TPL_)PINCTRL) += pinctrl/
22obj-$(CONFIG_$(SPL_TPL_)RAM) += ram/
23obj-$(CONFIG_$(SPL_TPL_)RTC_SUPPORT) += rtc/
24obj-$(CONFIG_$(SPL_TPL_)SERIAL_SUPPORT) += serial/
25obj-$(CONFIG_$(SPL_TPL_)SPI_SUPPORT) += spi/
26obj-$(CONFIG_$(SPL_TPL_)TIMER) += timer/
27obj-$(CONFIG_$(SPL_TPL_)VIRTIO) += virtio/
28obj-$(CONFIG_$(SPL_)DM_MAILBOX) += mailbox/
29obj-$(CONFIG_$(SPL_)REMOTEPROC) += remoteproc/
30obj-$(CONFIG_$(SPL_)SYSINFO) += sysinfo/
31obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm/
32obj-$(CONFIG_$(SPL_TPL_)ACPI_PMC) += power/acpi_pmc/
33obj-$(CONFIG_XEN) += xen/
34obj-$(CONFIG_$(SPL_)FPGA) += fpga/
35
36ifndef CONFIG_TPL_BUILD
37ifdef CONFIG_SPL_BUILD
38
39obj-$(CONFIG_SPL_BOOTCOUNT_LIMIT) += bootcount/
40obj-$(CONFIG_SPL_CACHE_SUPPORT) += cache/
41obj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/
42obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/
43obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
44obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
45obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
46obj-$(CONFIG_$(SPL_)ALTERA_SDRAM) += ddr/altera/
47obj-$(CONFIG_ARCH_IMX8M) += ddr/imx/imx8m/
48obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/
49obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/
50obj-$(CONFIG_SPL_POWER_DOMAIN) += power/domain/
51obj-$(CONFIG_SPL_DM_RESET) += reset/
52obj-$(CONFIG_SPL_DMA) += dma/
53obj-$(CONFIG_SPL_ETH_SUPPORT) += net/
54obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/
55obj-$(CONFIG_SPL_USB_ETHER) += net/phy/
56obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/
57obj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/
58obj-$(CONFIG_SPL_USB_GADGET) += usb/common/
59obj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/udc/
60obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/
61obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/
62obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/
63obj-$(CONFIG_SPL_SATA_SUPPORT) += ata/ scsi/
64obj-$(CONFIG_HAVE_BLOCK_DEVICE) += block/
65obj-$(CONFIG_SPL_THERMAL) += thermal/
66
67endif
68endif
69
70ifdef CONFIG_TPL_BUILD
71
72obj-$(CONFIG_TPL_BOOTCOUNT_LIMIT) += bootcount/
73obj-$(CONFIG_TPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
74
75endif
76
77ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
78
79obj-y += adc/
80obj-y += ata/
81obj-y += bus/
82obj-$(CONFIG_DM_DEMO) += demo/
83obj-$(CONFIG_BIOSEMU) += bios_emulator/
84obj-y += block/
85obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
86obj-y += cache/
87obj-$(CONFIG_CPU) += cpu/
88obj-y += crypto/
89obj-$(CONFIG_FASTBOOT) += fastboot/
90obj-y += misc/
91obj-$(CONFIG_MMC) += mmc/
92obj-$(CONFIG_NVME) += nvme/
93obj-$(CONFIG_PCI_ENDPOINT) += pci_endpoint/
94obj-y += dfu/
95obj-$(CONFIG_PCH) += pch/
96obj-y += phy/allwinner/
97obj-y += phy/marvell/
98obj-y += phy/rockchip/
99obj-y += rtc/
100obj-y += scsi/
101obj-y += sound/
102obj-y += spmi/
103obj-y += video/
104obj-y += watchdog/
105obj-$(CONFIG_QE) += qe/
106obj-$(CONFIG_U_QE) += qe/
107obj-y += mailbox/
108obj-y += memory/
109obj-y += mtd/
110obj-y += pwm/
111obj-y += reset/
112obj-y += input/
113# SOC specific infrastructure drivers.
114obj-y += smem/
115obj-y += thermal/
116obj-$(CONFIG_TEE) += tee/
117obj-y += axi/
118obj-y += ufs/
119obj-$(CONFIG_W1) += w1/
120obj-$(CONFIG_W1_EEPROM) += w1-eeprom/
121
122obj-$(CONFIG_MACH_PIC32) += ddr/microchip/
123obj-$(CONFIG_DM_HWSPINLOCK) += hwspinlock/
124obj-$(CONFIG_DM_RNG) += rng/
125endif
126
127obj-y += soc/
128