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

3 4
obj-$(CONFIG_$(SPL_TPL_)CLK) += clk/
obj-$(CONFIG_$(SPL_TPL_)DM) += core/
5
obj-$(CONFIG_$(SPL_TPL_)GPIO_SUPPORT) += gpio/
6 7
obj-$(CONFIG_$(SPL_TPL_)DRIVERS_MISC_SUPPORT) += misc/ sysreset/ firmware/
obj-$(CONFIG_$(SPL_TPL_)I2C_SUPPORT) += i2c/
8
obj-$(CONFIG_$(SPL_TPL_)INPUT) += input/
9 10
obj-$(CONFIG_$(SPL_TPL_)LED) += led/
obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += mmc/
11
obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += mtd/nand/raw/
12 13
obj-$(CONFIG_$(SPL_TPL_)PCH_SUPPORT) += pch/
obj-$(CONFIG_$(SPL_TPL_)PCI_SUPPORT) += pci/
14 15 16
obj-$(CONFIG_$(SPL_TPL_)PHY) += phy/
obj-$(CONFIG_$(SPL_TPL_)PINCTRL) += pinctrl/
obj-$(CONFIG_$(SPL_TPL_)RAM) += ram/
17
obj-$(CONFIG_$(SPL_TPL_)RTC_SUPPORT) += rtc/
18 19 20
obj-$(CONFIG_$(SPL_TPL_)SERIAL_SUPPORT) += serial/
obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_SUPPORT) += mtd/spi/
obj-$(CONFIG_$(SPL_TPL_)SPI_SUPPORT) += spi/
21
obj-$(CONFIG_$(SPL_TPL_)TIMER) += timer/
22
obj-$(CONFIG_$(SPL_TPL_)VIRTIO) += virtio/
23
obj-$(CONFIG_$(SPL_)DM_MAILBOX) += mailbox/
24
obj-$(CONFIG_$(SPL_)REMOTEPROC) += remoteproc/
25
obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm/
26

27
ifndef CONFIG_TPL_BUILD
28 29
ifdef CONFIG_SPL_BUILD

30
obj-$(CONFIG_SPL_BOOTCOUNT_LIMIT) += bootcount/
31
obj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/
32
obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/
33
obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
34 35
obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
36 37 38
obj-$(CONFIG_ALTERA_SDRAM) += ddr/altera/
obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/
obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/
39
obj-$(CONFIG_SPL_POWER_DOMAIN) += power/domain/
40
obj-$(CONFIG_SPL_DM_RESET) += reset/
41 42
obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd/
obj-$(CONFIG_SPL_ONENAND_SUPPORT) += mtd/onenand/
43
obj-$(CONFIG_SPL_UBI) += mtd/ubispl/
44 45 46
obj-$(CONFIG_SPL_DMA_SUPPORT) += dma/
obj-$(CONFIG_SPL_ETH_SUPPORT) += net/
obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/
47
obj-$(CONFIG_SPL_USB_ETHER) += net/phy/
48
obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/
S
Stefan Agner 已提交
49 50
obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/
obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/udc/
51
obj-$(CONFIG_SPL_DFU_SUPPORT) += dfu/
52 53 54
obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/
obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/
obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/
55
obj-$(CONFIG_SPL_SATA_SUPPORT) += ata/ scsi/
56
obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += block/
57
obj-$(CONFIG_SPL_MMC_SUPPORT) += block/
58
obj-$(CONFIG_SPL_FPGA_SUPPORT) += fpga/
59
obj-$(CONFIG_SPL_THERMAL) += thermal/
60 61

endif
62 63 64 65 66 67 68
endif

ifdef CONFIG_TPL_BUILD

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

endif
69

70
ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
71

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

115
obj-$(CONFIG_MACH_PIC32) += ddr/microchip/
116
endif