treewide: Migrate CONFIG_SYS_ALT_MEMTEST to Kconfig
[platform/kernel/u-boot.git] / drivers / Makefile
1 #
2 # SPDX-License-Identifier:      GPL-2.0+
3 #
4
5 obj-$(CONFIG_$(SPL_TPL_)CLK) += clk/
6 obj-$(CONFIG_$(SPL_TPL_)DM) += core/
7 obj-$(CONFIG_$(SPL_TPL_)DRIVERS_MISC_SUPPORT) += misc/ sysreset/ firmware/
8 obj-$(CONFIG_$(SPL_TPL_)I2C_SUPPORT) += i2c/
9 obj-$(CONFIG_$(SPL_TPL_)LED) += led/
10 obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += mmc/
11 obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += mtd/nand/
12 obj-$(CONFIG_$(SPL_TPL_)PHY) += phy/
13 obj-$(CONFIG_$(SPL_TPL_)PINCTRL) += pinctrl/
14 obj-$(CONFIG_$(SPL_TPL_)RAM) += ram/
15 obj-$(CONFIG_$(SPL_TPL_)SERIAL_SUPPORT) += serial/
16 obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_SUPPORT) += mtd/spi/
17 obj-$(CONFIG_$(SPL_TPL_)SPI_SUPPORT) += spi/
18 obj-$(CONFIG_$(SPL_TPL_)TIMER) += timer/
19
20 ifndef CONFIG_TPL_BUILD
21 ifdef CONFIG_SPL_BUILD
22
23 obj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/
24 obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/
25 obj-$(CONFIG_SPL_GPIO_SUPPORT) += gpio/
26 obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
27 obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
28 obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
29 obj-$(CONFIG_ALTERA_SDRAM) += ddr/altera/
30 obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/
31 obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/
32 obj-$(CONFIG_SPL_RESET_SUPPORT) += reset/
33 obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd/
34 obj-$(CONFIG_SPL_ONENAND_SUPPORT) += mtd/onenand/
35 obj-$(CONFIG_SPL_UBI) += mtd/ubispl/
36 obj-$(CONFIG_SPL_DMA_SUPPORT) += dma/
37 obj-$(CONFIG_SPL_ETH_SUPPORT) += net/
38 obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/
39 obj-$(CONFIG_SPL_USB_ETHER) += net/phy/
40 obj-$(CONFIG_SPL_PCI_SUPPORT) += pci/
41 obj-$(CONFIG_SPL_PCH_SUPPORT) += pch/
42 obj-$(CONFIG_SPL_RTC_SUPPORT) += rtc/
43 obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/
44 obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/
45 obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/udc/
46 obj-$(CONFIG_SPL_DFU_SUPPORT) += dfu/
47 obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/
48 obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/
49 obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/
50 obj-$(CONFIG_SPL_SATA_SUPPORT) += ata/ scsi/
51 obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += block/
52 obj-$(CONFIG_SPL_MMC_SUPPORT) += block/
53 obj-$(CONFIG_SPL_FPGA_SUPPORT) += fpga/
54 obj-$(CONFIG_SPL_THERMAL) += thermal/
55
56 endif
57 endif
58
59 ifdef CONFIG_TPL_BUILD
60
61 obj-$(CONFIG_TPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
62
63 endif
64
65 ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
66
67 obj-y += adc/
68 obj-y += ata/
69 obj-$(CONFIG_DM_DEMO) += demo/
70 obj-$(CONFIG_BIOSEMU) += bios_emulator/
71 obj-y += block/
72 obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
73 obj-$(CONFIG_CPU) += cpu/
74 obj-y += crypto/
75 obj-y += firmware/
76 obj-$(CONFIG_FPGA) += fpga/
77 obj-y += misc/
78 obj-$(CONFIG_MMC) += mmc/
79 obj-$(CONFIG_NVME) += nvme/
80 obj-y += pcmcia/
81 obj-y += dfu/
82 obj-$(CONFIG_X86) += pch/
83 obj-y += phy/marvell/
84 obj-y += rtc/
85 obj-y += scsi/
86 obj-y += sound/
87 obj-y += spmi/
88 obj-y += sysreset/
89 obj-y += tpm/
90 obj-y += video/
91 obj-y += watchdog/
92 obj-$(CONFIG_QE) += qe/
93 obj-$(CONFIG_U_QE) += qe/
94 obj-y += mailbox/
95 obj-y += memory/
96 obj-y += pwm/
97 obj-y += reset/
98 obj-y += input/
99 # SOC specific infrastructure drivers.
100 obj-y += soc/
101 obj-$(CONFIG_REMOTEPROC) += remoteproc/
102 obj-y += thermal/
103
104 obj-$(CONFIG_MACH_PIC32) += ddr/microchip/
105 endif