Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Tom Rini | 0cab3ec | 2015-11-10 01:06:16 +0000 | [diff] [blame] | 2 | |
Philipp Tomsich | b7ac1c4 | 2017-07-04 11:29:55 +0200 | [diff] [blame] | 3 | obj-$(CONFIG_$(SPL_TPL_)CLK) += clk/ |
| 4 | obj-$(CONFIG_$(SPL_TPL_)DM) += core/ |
Andrew F. Davis | 159eb4b | 2019-01-17 13:43:03 -0600 | [diff] [blame] | 5 | obj-$(CONFIG_$(SPL_TPL_)DFU) += dfu/ |
Simon Glass | 592d5b9 | 2018-11-15 18:43:55 -0700 | [diff] [blame] | 6 | obj-$(CONFIG_$(SPL_TPL_)GPIO_SUPPORT) += gpio/ |
Philipp Tomsich | b7ac1c4 | 2017-07-04 11:29:55 +0200 | [diff] [blame] | 7 | obj-$(CONFIG_$(SPL_TPL_)DRIVERS_MISC_SUPPORT) += misc/ sysreset/ firmware/ |
| 8 | obj-$(CONFIG_$(SPL_TPL_)I2C_SUPPORT) += i2c/ |
Simon Glass | 592d5b9 | 2018-11-15 18:43:55 -0700 | [diff] [blame] | 9 | obj-$(CONFIG_$(SPL_TPL_)INPUT) += input/ |
Philipp Tomsich | b7ac1c4 | 2017-07-04 11:29:55 +0200 | [diff] [blame] | 10 | obj-$(CONFIG_$(SPL_TPL_)LED) += led/ |
| 11 | obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += mmc/ |
Miquel Raynal | 1f1ae15 | 2018-08-16 17:30:07 +0200 | [diff] [blame] | 12 | obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += mtd/nand/raw/ |
Simon Glass | 592d5b9 | 2018-11-15 18:43:55 -0700 | [diff] [blame] | 13 | obj-$(CONFIG_$(SPL_TPL_)PCH_SUPPORT) += pch/ |
Sekhar Nori | 9108d92 | 2018-12-06 15:40:08 +0530 | [diff] [blame] | 14 | obj-$(CONFIG_$(SPL_TPL_)PCI) += pci/ |
Philipp Tomsich | b7ac1c4 | 2017-07-04 11:29:55 +0200 | [diff] [blame] | 15 | obj-$(CONFIG_$(SPL_TPL_)PHY) += phy/ |
| 16 | obj-$(CONFIG_$(SPL_TPL_)PINCTRL) += pinctrl/ |
| 17 | obj-$(CONFIG_$(SPL_TPL_)RAM) += ram/ |
Simon Glass | 592d5b9 | 2018-11-15 18:43:55 -0700 | [diff] [blame] | 18 | obj-$(CONFIG_$(SPL_TPL_)RTC_SUPPORT) += rtc/ |
Philipp Tomsich | b7ac1c4 | 2017-07-04 11:29:55 +0200 | [diff] [blame] | 19 | obj-$(CONFIG_$(SPL_TPL_)SERIAL_SUPPORT) += serial/ |
| 20 | obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_SUPPORT) += mtd/spi/ |
| 21 | obj-$(CONFIG_$(SPL_TPL_)SPI_SUPPORT) += spi/ |
Philipp Tomsich | 4fac4ea | 2017-07-28 17:38:42 +0200 | [diff] [blame] | 22 | obj-$(CONFIG_$(SPL_TPL_)TIMER) += timer/ |
Bin Meng | db7ca2e | 2018-10-15 02:21:00 -0700 | [diff] [blame] | 23 | obj-$(CONFIG_$(SPL_TPL_)VIRTIO) += virtio/ |
Lokesh Vutla | 2aeb934 | 2018-08-27 15:57:49 +0530 | [diff] [blame] | 24 | obj-$(CONFIG_$(SPL_)DM_MAILBOX) += mailbox/ |
Lokesh Vutla | 1a6f8e0 | 2018-08-27 15:57:53 +0530 | [diff] [blame] | 25 | obj-$(CONFIG_$(SPL_)REMOTEPROC) += remoteproc/ |
Simon Glass | 592d5b9 | 2018-11-15 18:43:55 -0700 | [diff] [blame] | 26 | obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm/ |
Masahiro Yamada | 95fc4ff | 2015-08-12 07:31:45 +0900 | [diff] [blame] | 27 | |
Philipp Tomsich | b7ac1c4 | 2017-07-04 11:29:55 +0200 | [diff] [blame] | 28 | ifndef CONFIG_TPL_BUILD |
Masahiro Yamada | 39ba4b1 | 2015-08-12 07:31:44 +0900 | [diff] [blame] | 29 | ifdef CONFIG_SPL_BUILD |
| 30 | |
Lukasz Majewski | 97c995d | 2018-05-02 16:10:50 +0200 | [diff] [blame] | 31 | obj-$(CONFIG_SPL_BOOTCOUNT_LIMIT) += bootcount/ |
Simon Glass | eca677f | 2017-01-16 07:03:29 -0700 | [diff] [blame] | 32 | obj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/ |
Teddy Reed | 5021e3c | 2016-06-09 19:18:44 -0700 | [diff] [blame] | 33 | obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/ |
Masahiro Yamada | 39ba4b1 | 2015-08-12 07:31:44 +0900 | [diff] [blame] | 34 | obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/ |
Stefan Roese | eb083e5 | 2015-12-21 13:56:33 +0100 | [diff] [blame] | 35 | obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/ |
| 36 | obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/ |
Masahiro Yamada | 39ba4b1 | 2015-08-12 07:31:44 +0900 | [diff] [blame] | 37 | obj-$(CONFIG_ALTERA_SDRAM) += ddr/altera/ |
Peng Fan | 692f943 | 2018-11-20 10:19:57 +0000 | [diff] [blame] | 38 | obj-$(CONFIG_ARCH_IMX8M) += ddr/imx/imx8m/ |
Masahiro Yamada | 39ba4b1 | 2015-08-12 07:31:44 +0900 | [diff] [blame] | 39 | obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/ |
| 40 | obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/ |
Peng Fan | 3775fed | 2018-07-27 10:20:37 +0800 | [diff] [blame] | 41 | obj-$(CONFIG_SPL_POWER_DOMAIN) += power/domain/ |
Ley Foon Tan | 9caf712 | 2018-06-14 18:45:19 +0800 | [diff] [blame] | 42 | obj-$(CONFIG_SPL_DM_RESET) += reset/ |
Masahiro Yamada | 39ba4b1 | 2015-08-12 07:31:44 +0900 | [diff] [blame] | 43 | obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd/ |
Masahiro Yamada | 39ba4b1 | 2015-08-12 07:31:44 +0900 | [diff] [blame] | 44 | obj-$(CONFIG_SPL_ONENAND_SUPPORT) += mtd/onenand/ |
Thomas Gleixner | 820d24d | 2016-07-12 20:28:12 +0200 | [diff] [blame] | 45 | obj-$(CONFIG_SPL_UBI) += mtd/ubispl/ |
Masahiro Yamada | 39ba4b1 | 2015-08-12 07:31:44 +0900 | [diff] [blame] | 46 | obj-$(CONFIG_SPL_DMA_SUPPORT) += dma/ |
| 47 | obj-$(CONFIG_SPL_ETH_SUPPORT) += net/ |
| 48 | obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/ |
Faiz Abbas | c01553b | 2018-02-16 21:17:44 +0530 | [diff] [blame] | 49 | obj-$(CONFIG_SPL_USB_ETHER) += net/phy/ |
Masahiro Yamada | 39ba4b1 | 2015-08-12 07:31:44 +0900 | [diff] [blame] | 50 | obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/ |
Jean-Jacques Hiblot | 6a22852 | 2019-01-10 15:44:13 +0100 | [diff] [blame] | 51 | obj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/ |
| 52 | obj-$(CONFIG_SPL_USB_GADGET) += usb/common/ |
| 53 | obj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/udc/ |
Masahiro Yamada | 39ba4b1 | 2015-08-12 07:31:44 +0900 | [diff] [blame] | 54 | obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/ |
| 55 | obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/ |
| 56 | obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/ |
Simon Glass | 3def006 | 2017-06-14 21:28:27 -0600 | [diff] [blame] | 57 | obj-$(CONFIG_SPL_SATA_SUPPORT) += ata/ scsi/ |
Tom Rini | 1794ae6 | 2018-12-05 08:23:38 -0500 | [diff] [blame] | 58 | obj-$(CONFIG_HAVE_BLOCK_DEVICE) += block/ |
Tien Fong Chee | d43044e | 2017-07-26 13:05:41 +0800 | [diff] [blame] | 59 | obj-$(CONFIG_SPL_FPGA_SUPPORT) += fpga/ |
Faiz Abbas | ae1627c | 2017-11-14 16:12:31 +0530 | [diff] [blame] | 60 | obj-$(CONFIG_SPL_THERMAL) += thermal/ |
Philipp Tomsich | b7ac1c4 | 2017-07-04 11:29:55 +0200 | [diff] [blame] | 61 | |
| 62 | endif |
Simon Glass | 98b685d | 2016-09-12 23:18:25 -0600 | [diff] [blame] | 63 | endif |
| 64 | |
| 65 | ifdef CONFIG_TPL_BUILD |
| 66 | |
Simon Glass | 98b685d | 2016-09-12 23:18:25 -0600 | [diff] [blame] | 67 | obj-$(CONFIG_TPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/ |
Simon Glass | 98b685d | 2016-09-12 23:18:25 -0600 | [diff] [blame] | 68 | |
| 69 | endif |
Masahiro Yamada | 39ba4b1 | 2015-08-12 07:31:44 +0900 | [diff] [blame] | 70 | |
Simon Glass | 98b685d | 2016-09-12 23:18:25 -0600 | [diff] [blame] | 71 | ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),) |
Masahiro Yamada | 39ba4b1 | 2015-08-12 07:31:44 +0900 | [diff] [blame] | 72 | |
Przemyslaw Marczak | e0cb85b | 2015-10-27 13:08:00 +0100 | [diff] [blame] | 73 | obj-y += adc/ |
Simon Glass | 2c844c4 | 2017-06-14 21:28:26 -0600 | [diff] [blame] | 74 | obj-y += ata/ |
Masahiro Yamada | 6968298 | 2014-09-18 15:43:41 +0900 | [diff] [blame] | 75 | obj-$(CONFIG_DM_DEMO) += demo/ |
Masahiro Yamada | 6252698 | 2013-11-11 14:35:51 +0900 | [diff] [blame] | 76 | obj-$(CONFIG_BIOSEMU) += bios_emulator/ |
Masahiro Yamada | 887082a | 2013-10-17 20:38:52 +0900 | [diff] [blame] | 77 | obj-y += block/ |
Mario Six | 2161e55 | 2018-07-31 11:44:11 +0200 | [diff] [blame] | 78 | obj-y += board/ |
Masahiro Yamada | 887082a | 2013-10-17 20:38:52 +0900 | [diff] [blame] | 79 | obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/ |
Simon Glass | 131a645 | 2015-04-28 20:25:09 -0600 | [diff] [blame] | 80 | obj-$(CONFIG_CPU) += cpu/ |
Masahiro Yamada | 887082a | 2013-10-17 20:38:52 +0900 | [diff] [blame] | 81 | obj-y += crypto/ |
Alex Kiernan | ed6a4144 | 2018-05-29 15:30:41 +0000 | [diff] [blame] | 82 | obj-$(CONFIG_FASTBOOT) += fastboot/ |
Masahiro Yamada | 836c55d | 2017-04-14 11:10:24 +0900 | [diff] [blame] | 83 | obj-y += firmware/ |
Masahiro Yamada | 6252698 | 2013-11-11 14:35:51 +0900 | [diff] [blame] | 84 | obj-$(CONFIG_FPGA) += fpga/ |
Masahiro Yamada | 887082a | 2013-10-17 20:38:52 +0900 | [diff] [blame] | 85 | obj-y += misc/ |
Masahiro Yamada | a29e8d3 | 2017-05-09 20:31:40 +0900 | [diff] [blame] | 86 | obj-$(CONFIG_MMC) += mmc/ |
Zhikang Zhang | 145b88f | 2017-08-03 02:30:57 -0700 | [diff] [blame] | 87 | obj-$(CONFIG_NVME) += nvme/ |
Masahiro Yamada | 887082a | 2013-10-17 20:38:52 +0900 | [diff] [blame] | 88 | obj-y += pcmcia/ |
Simon Glass | 98d88f8 | 2019-02-16 20:24:49 -0700 | [diff] [blame] | 89 | obj-y += dfu/ |
| 90 | obj-$(CONFIG_PCH) += pch/ |
Jagan Teki | d3c3828 | 2018-05-07 13:03:26 +0530 | [diff] [blame] | 91 | obj-y += phy/allwinner/ |
Stefan Roese | 8f64e26 | 2016-05-23 11:12:05 +0200 | [diff] [blame] | 92 | obj-y += phy/marvell/ |
Masahiro Yamada | 887082a | 2013-10-17 20:38:52 +0900 | [diff] [blame] | 93 | obj-y += rtc/ |
Simon Glass | 3def006 | 2017-06-14 21:28:27 -0600 | [diff] [blame] | 94 | obj-y += scsi/ |
Masahiro Yamada | 887082a | 2013-10-17 20:38:52 +0900 | [diff] [blame] | 95 | obj-y += sound/ |
Mateusz Kulikowski | 946797f | 2016-03-31 23:12:27 +0200 | [diff] [blame] | 96 | obj-y += spmi/ |
Max Filippov | 8857405 | 2016-08-07 08:53:00 +0300 | [diff] [blame] | 97 | obj-y += sysreset/ |
Masahiro Yamada | 887082a | 2013-10-17 20:38:52 +0900 | [diff] [blame] | 98 | obj-y += video/ |
| 99 | obj-y += watchdog/ |
Masahiro Yamada | 4fb1f69 | 2013-11-11 14:35:57 +0900 | [diff] [blame] | 100 | obj-$(CONFIG_QE) += qe/ |
Zhao Qiang | 5ad9395 | 2014-09-25 13:52:25 +0800 | [diff] [blame] | 101 | obj-$(CONFIG_U_QE) += qe/ |
Stephen Warren | d010783 | 2016-05-13 15:50:29 -0600 | [diff] [blame] | 102 | obj-y += mailbox/ |
Khoronzhuk, Ivan | 8062b05 | 2014-06-07 05:10:49 +0300 | [diff] [blame] | 103 | obj-y += memory/ |
Heiko Schocher | 2b38776 | 2014-07-18 06:07:19 +0200 | [diff] [blame] | 104 | obj-y += pwm/ |
Stephen Warren | 185ad87 | 2016-06-17 09:43:58 -0600 | [diff] [blame] | 105 | obj-y += reset/ |
Masahiro Yamada | 6968298 | 2014-09-18 15:43:41 +0900 | [diff] [blame] | 106 | obj-y += input/ |
Khoronzhuk, Ivan | dbfecb2 | 2014-10-22 17:18:21 +0300 | [diff] [blame] | 107 | # SOC specific infrastructure drivers. |
Ramon Fried | cf1e49f | 2018-07-02 02:57:55 +0300 | [diff] [blame] | 108 | obj-y += smem/ |
Khoronzhuk, Ivan | dbfecb2 | 2014-10-22 17:18:21 +0300 | [diff] [blame] | 109 | obj-y += soc/ |
Ye.Li | d049afa | 2014-11-20 21:14:13 +0800 | [diff] [blame] | 110 | obj-y += thermal/ |
Jens Wiklander | 1429044 | 2018-09-25 16:40:09 +0200 | [diff] [blame] | 111 | obj-$(CONFIG_TEE) += tee/ |
Mario Six | 573b1b9 | 2018-08-09 14:51:16 +0200 | [diff] [blame] | 112 | obj-y += axi/ |
Maxime Ripard | bdbdca3 | 2018-09-18 10:35:24 +0300 | [diff] [blame] | 113 | obj-$(CONFIG_W1) += w1/ |
Maxime Ripard | f674fc0 | 2018-09-18 10:35:27 +0300 | [diff] [blame] | 114 | obj-$(CONFIG_W1_EEPROM) += w1-eeprom/ |
Masahiro Yamada | 39ba4b1 | 2015-08-12 07:31:44 +0900 | [diff] [blame] | 115 | |
Purna Chandra Mandal | e80d11f | 2016-01-28 15:30:15 +0530 | [diff] [blame] | 116 | obj-$(CONFIG_MACH_PIC32) += ddr/microchip/ |
Benjamin Gaignard | a550b54 | 2018-11-27 13:49:50 +0100 | [diff] [blame] | 117 | obj-$(CONFIG_DM_HWSPINLOCK) += hwspinlock/ |
Masahiro Yamada | 39ba4b1 | 2015-08-12 07:31:44 +0900 | [diff] [blame] | 118 | endif |