blob: 6846d181aa02631a16dfe8bbb12070ae9d79225a [file] [log] [blame]
Tom Rini0cab3ec2015-11-10 01:06:16 +00001#
2# SPDX-License-Identifier: GPL-2.0+
3#
4
Philipp Tomsichb7ac1c42017-07-04 11:29:55 +02005obj-$(CONFIG_$(SPL_TPL_)CLK) += clk/
6obj-$(CONFIG_$(SPL_TPL_)DM) += core/
7obj-$(CONFIG_$(SPL_TPL_)DRIVERS_MISC_SUPPORT) += misc/ sysreset/ firmware/
8obj-$(CONFIG_$(SPL_TPL_)I2C_SUPPORT) += i2c/
9obj-$(CONFIG_$(SPL_TPL_)LED) += led/
10obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += mmc/
11obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += mtd/nand/
12obj-$(CONFIG_$(SPL_TPL_)PHY) += phy/
13obj-$(CONFIG_$(SPL_TPL_)PINCTRL) += pinctrl/
14obj-$(CONFIG_$(SPL_TPL_)RAM) += ram/
15obj-$(CONFIG_$(SPL_TPL_)SERIAL_SUPPORT) += serial/
16obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_SUPPORT) += mtd/spi/
17obj-$(CONFIG_$(SPL_TPL_)SPI_SUPPORT) += spi/
Philipp Tomsich4fac4ea2017-07-28 17:38:42 +020018obj-$(CONFIG_$(SPL_TPL_)TIMER) += timer/
Masahiro Yamada95fc4ff2015-08-12 07:31:45 +090019
Philipp Tomsichb7ac1c42017-07-04 11:29:55 +020020ifndef CONFIG_TPL_BUILD
Masahiro Yamada39ba4b12015-08-12 07:31:44 +090021ifdef CONFIG_SPL_BUILD
22
Simon Glasseca677f2017-01-16 07:03:29 -070023obj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/
Teddy Reed5021e3c2016-06-09 19:18:44 -070024obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/
Masahiro Yamada39ba4b12015-08-12 07:31:44 +090025obj-$(CONFIG_SPL_GPIO_SUPPORT) += gpio/
Masahiro Yamada39ba4b12015-08-12 07:31:44 +090026obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
Stefan Roeseeb083e52015-12-21 13:56:33 +010027obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
28obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
Masahiro Yamada39ba4b12015-08-12 07:31:44 +090029obj-$(CONFIG_ALTERA_SDRAM) += ddr/altera/
Masahiro Yamada39ba4b12015-08-12 07:31:44 +090030obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/
31obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/
Patrick Delaunay329827a2018-03-12 10:46:05 +010032obj-$(CONFIG_SPL_RESET_SUPPORT) += reset/
Masahiro Yamada39ba4b12015-08-12 07:31:44 +090033obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd/
Masahiro Yamada39ba4b12015-08-12 07:31:44 +090034obj-$(CONFIG_SPL_ONENAND_SUPPORT) += mtd/onenand/
Thomas Gleixner820d24d2016-07-12 20:28:12 +020035obj-$(CONFIG_SPL_UBI) += mtd/ubispl/
Masahiro Yamada39ba4b12015-08-12 07:31:44 +090036obj-$(CONFIG_SPL_DMA_SUPPORT) += dma/
37obj-$(CONFIG_SPL_ETH_SUPPORT) += net/
38obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/
Faiz Abbasc01553b2018-02-16 21:17:44 +053039obj-$(CONFIG_SPL_USB_ETHER) += net/phy/
Simon Glass6569f3a2017-01-16 07:03:30 -070040obj-$(CONFIG_SPL_PCI_SUPPORT) += pci/
Simon Glass36258a52017-01-16 07:03:33 -070041obj-$(CONFIG_SPL_PCH_SUPPORT) += pch/
Simon Glassb69691b2017-01-16 07:03:31 -070042obj-$(CONFIG_SPL_RTC_SUPPORT) += rtc/
Masahiro Yamada39ba4b12015-08-12 07:31:44 +090043obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/
Stefan Agner0489c3b2016-11-21 10:58:53 -080044obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/
45obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/udc/
Stefan Agnere542edd2016-11-21 10:58:52 -080046obj-$(CONFIG_SPL_DFU_SUPPORT) += dfu/
Masahiro Yamada39ba4b12015-08-12 07:31:44 +090047obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/
48obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/
49obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/
Simon Glass3def0062017-06-14 21:28:27 -060050obj-$(CONFIG_SPL_SATA_SUPPORT) += ata/ scsi/
Simon Glasscf437782016-05-01 11:36:13 -060051obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += block/
Simon Glass316185a2016-05-01 13:52:28 -060052obj-$(CONFIG_SPL_MMC_SUPPORT) += block/
Tien Fong Cheed43044e2017-07-26 13:05:41 +080053obj-$(CONFIG_SPL_FPGA_SUPPORT) += fpga/
Faiz Abbasae1627c2017-11-14 16:12:31 +053054obj-$(CONFIG_SPL_THERMAL) += thermal/
Philipp Tomsichb7ac1c42017-07-04 11:29:55 +020055
56endif
Simon Glass98b685d2016-09-12 23:18:25 -060057endif
58
59ifdef CONFIG_TPL_BUILD
60
Simon Glass98b685d2016-09-12 23:18:25 -060061obj-$(CONFIG_TPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
Simon Glass98b685d2016-09-12 23:18:25 -060062
63endif
Masahiro Yamada39ba4b12015-08-12 07:31:44 +090064
Simon Glass98b685d2016-09-12 23:18:25 -060065ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
Masahiro Yamada39ba4b12015-08-12 07:31:44 +090066
Przemyslaw Marczake0cb85b2015-10-27 13:08:00 +010067obj-y += adc/
Simon Glass2c844c42017-06-14 21:28:26 -060068obj-y += ata/
Masahiro Yamada69682982014-09-18 15:43:41 +090069obj-$(CONFIG_DM_DEMO) += demo/
Masahiro Yamada62526982013-11-11 14:35:51 +090070obj-$(CONFIG_BIOSEMU) += bios_emulator/
Masahiro Yamada887082a2013-10-17 20:38:52 +090071obj-y += block/
72obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
Simon Glass131a6452015-04-28 20:25:09 -060073obj-$(CONFIG_CPU) += cpu/
Masahiro Yamada887082a2013-10-17 20:38:52 +090074obj-y += crypto/
Masahiro Yamada836c55d2017-04-14 11:10:24 +090075obj-y += firmware/
Masahiro Yamada62526982013-11-11 14:35:51 +090076obj-$(CONFIG_FPGA) += fpga/
Masahiro Yamada887082a2013-10-17 20:38:52 +090077obj-y += misc/
Masahiro Yamadaa29e8d32017-05-09 20:31:40 +090078obj-$(CONFIG_MMC) += mmc/
Zhikang Zhang145b88f2017-08-03 02:30:57 -070079obj-$(CONFIG_NVME) += nvme/
Masahiro Yamada887082a2013-10-17 20:38:52 +090080obj-y += pcmcia/
81obj-y += dfu/
Simon Glass68a24232016-01-18 20:19:17 -070082obj-$(CONFIG_X86) += pch/
Stefan Roese8f64e262016-05-23 11:12:05 +020083obj-y += phy/marvell/
Masahiro Yamada887082a2013-10-17 20:38:52 +090084obj-y += rtc/
Simon Glass3def0062017-06-14 21:28:27 -060085obj-y += scsi/
Masahiro Yamada887082a2013-10-17 20:38:52 +090086obj-y += sound/
Mateusz Kulikowski946797f2016-03-31 23:12:27 +020087obj-y += spmi/
Max Filippov88574052016-08-07 08:53:00 +030088obj-y += sysreset/
Masahiro Yamada887082a2013-10-17 20:38:52 +090089obj-y += tpm/
Masahiro Yamada887082a2013-10-17 20:38:52 +090090obj-y += video/
91obj-y += watchdog/
Masahiro Yamada4fb1f692013-11-11 14:35:57 +090092obj-$(CONFIG_QE) += qe/
Zhao Qiang5ad93952014-09-25 13:52:25 +080093obj-$(CONFIG_U_QE) += qe/
Stephen Warrend0107832016-05-13 15:50:29 -060094obj-y += mailbox/
Khoronzhuk, Ivan8062b052014-06-07 05:10:49 +030095obj-y += memory/
Heiko Schocher2b387762014-07-18 06:07:19 +020096obj-y += pwm/
Stephen Warren185ad872016-06-17 09:43:58 -060097obj-y += reset/
Masahiro Yamada69682982014-09-18 15:43:41 +090098obj-y += input/
Khoronzhuk, Ivandbfecb22014-10-22 17:18:21 +030099# SOC specific infrastructure drivers.
100obj-y += soc/
Nishanth Menon08b9dc22015-09-17 15:42:39 -0500101obj-$(CONFIG_REMOTEPROC) += remoteproc/
Ye.Lid049afa2014-11-20 21:14:13 +0800102obj-y += thermal/
Masahiro Yamada39ba4b12015-08-12 07:31:44 +0900103
Purna Chandra Mandale80d11f2016-01-28 15:30:15 +0530104obj-$(CONFIG_MACH_PIC32) += ddr/microchip/
Masahiro Yamada39ba4b12015-08-12 07:31:44 +0900105endif