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