Makefile 3.7 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0+
2

3
obj-$(CONFIG_$(SPL_TPL_)BUTTON) += button/
4
obj-$(CONFIG_$(SPL_TPL_)CACHE) += cache/
5 6
obj-$(CONFIG_$(SPL_TPL_)CLK) += clk/
obj-$(CONFIG_$(SPL_TPL_)DM) += core/
7
obj-$(CONFIG_$(SPL_TPL_)DFU) += dfu/
8
obj-$(CONFIG_$(SPL_TPL_)GPIO_SUPPORT) += gpio/
9 10 11
obj-$(CONFIG_$(SPL_TPL_)DRIVERS_MISC_SUPPORT) += misc/
obj-$(CONFIG_$(SPL_TPL_)SYSRESET) += sysreset/
obj-$(CONFIG_$(SPL_TPL_)FIRMWARE) +=firmware/
12
obj-$(CONFIG_$(SPL_TPL_)I2C_SUPPORT) += i2c/
13
obj-$(CONFIG_$(SPL_TPL_)INPUT) += input/
14 15
obj-$(CONFIG_$(SPL_TPL_)LED) += led/
obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += mmc/
M
Miquel Raynal 已提交
16
obj-y += mtd/
17
obj-$(CONFIG_$(SPL_TPL_)PCH_SUPPORT) += pch/
18
obj-$(CONFIG_$(SPL_TPL_)PCI) += pci/
19 20 21
obj-$(CONFIG_$(SPL_TPL_)PHY) += phy/
obj-$(CONFIG_$(SPL_TPL_)PINCTRL) += pinctrl/
obj-$(CONFIG_$(SPL_TPL_)RAM) += ram/
22
obj-$(CONFIG_$(SPL_TPL_)RTC_SUPPORT) += rtc/
23 24
obj-$(CONFIG_$(SPL_TPL_)SERIAL_SUPPORT) += serial/
obj-$(CONFIG_$(SPL_TPL_)SPI_SUPPORT) += spi/
25
obj-$(CONFIG_$(SPL_TPL_)TIMER) += timer/
26
obj-$(CONFIG_$(SPL_TPL_)VIRTIO) += virtio/
27
obj-$(CONFIG_$(SPL_)DM_MAILBOX) += mailbox/
28
obj-$(CONFIG_$(SPL_)REMOTEPROC) += remoteproc/
29
obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm/
30
obj-$(CONFIG_$(SPL_TPL_)ACPI_PMC) += power/acpi_pmc/
31
obj-$(CONFIG_$(SPL_)BOARD) += board/
32

33
ifndef CONFIG_TPL_BUILD
34 35
ifdef CONFIG_SPL_BUILD

36
obj-$(CONFIG_SPL_BOOTCOUNT_LIMIT) += bootcount/
R
Rick Chen 已提交
37
obj-$(CONFIG_SPL_CACHE_SUPPORT) += cache/
38
obj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/
39
obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/
40
obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
41 42
obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
43
obj-$(CONFIG_$(SPL_)ALTERA_SDRAM) += ddr/altera/
44
obj-$(CONFIG_ARCH_IMX8M) += ddr/imx/imx8m/
45 46
obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/
obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/
47
obj-$(CONFIG_SPL_POWER_DOMAIN) += power/domain/
48
obj-$(CONFIG_SPL_DM_RESET) += reset/
49
obj-$(CONFIG_SPL_DMA) += dma/
50 51
obj-$(CONFIG_SPL_ETH_SUPPORT) += net/
obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/
52
obj-$(CONFIG_SPL_USB_ETHER) += net/phy/
53
obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/
54 55 56
obj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/
obj-$(CONFIG_SPL_USB_GADGET) += usb/common/
obj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/udc/
57 58 59
obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/
obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/
obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/
60
obj-$(CONFIG_SPL_SATA_SUPPORT) += ata/ scsi/
T
Tom Rini 已提交
61
obj-$(CONFIG_HAVE_BLOCK_DEVICE) += block/
62
obj-$(CONFIG_SPL_FPGA_SUPPORT) += fpga/
63
obj-$(CONFIG_SPL_THERMAL) += thermal/
64 65

endif
66 67 68 69 70 71 72
endif

ifdef CONFIG_TPL_BUILD

obj-$(CONFIG_TPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/

endif
73

74
ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
75

76
obj-y += adc/
77
obj-y += ata/
78
obj-y += bus/
79
obj-$(CONFIG_DM_DEMO) += demo/
80
obj-$(CONFIG_BIOSEMU) += bios_emulator/
81 82
obj-y += block/
obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
83
obj-y += cache/
S
Simon Glass 已提交
84
obj-$(CONFIG_CPU) += cpu/
85
obj-y += crypto/
86
obj-$(CONFIG_FASTBOOT) += fastboot/
87
obj-$(CONFIG_FPGA) += fpga/
88
obj-y += misc/
89
obj-$(CONFIG_MMC) += mmc/
90
obj-$(CONFIG_NVME) += nvme/
91
obj-$(CONFIG_PCI_ENDPOINT) += pci_endpoint/
92 93
obj-y += dfu/
obj-$(CONFIG_PCH) += pch/
94
obj-y += phy/allwinner/
95
obj-y += phy/marvell/
96
obj-y += phy/rockchip/
97
obj-y += rtc/
98
obj-y += scsi/
99
obj-y += sound/
100
obj-y += spmi/
101 102
obj-y += video/
obj-y += watchdog/
103
obj-$(CONFIG_QE) += qe/
Z
Zhao Qiang 已提交
104
obj-$(CONFIG_U_QE) += qe/
105
obj-y += mailbox/
106
obj-y += memory/
M
Miquel Raynal 已提交
107
obj-y += mtd/
108
obj-y += pwm/
109
obj-y += reset/
110
obj-y += input/
111
# SOC specific infrastructure drivers.
R
Ramon Fried 已提交
112
obj-y += smem/
Y
Ye.Li 已提交
113
obj-y += thermal/
114
obj-$(CONFIG_TEE) += tee/
M
Mario Six 已提交
115
obj-y += axi/
116
obj-y += ufs/
M
Maxime Ripard 已提交
117
obj-$(CONFIG_W1) += w1/
118
obj-$(CONFIG_W1_EEPROM) += w1-eeprom/
119

120
obj-$(CONFIG_MACH_PIC32) += ddr/microchip/
121
obj-$(CONFIG_DM_HWSPINLOCK) += hwspinlock/
122
obj-$(CONFIG_DM_RNG) += rng/
123
endif
124 125

obj-y += soc/