blob: cc3cc454f7fbb8787325d06e8238314844f8af58 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Simon Glass2e7d35d2014-02-26 15:59:21 -07002#
3# Copyright (c) 2013 Google, Inc
Simon Glass2e7d35d2014-02-26 15:59:21 -07004
Simon Glass409f4a22021-03-07 17:34:46 -07005obj-$(CONFIG_UT_DM) += test-dm.o
Simon Glass2e7d35d2014-02-26 15:59:21 -07006
7# Tests for particular subsystems - when enabling driver model for a new
8# subsystem you must add sandbox tests here.
Simon Glass217293e2020-10-25 20:38:29 -06009ifeq ($(CONFIG_SPL_BUILD),y)
10obj-$(CONFIG_SPL_OF_PLATDATA) += of_platdata.o
11else
Simon Glass627988f2020-10-03 09:25:26 -060012obj-$(CONFIG_UT_DM) += bus.o
13obj-$(CONFIG_UT_DM) += test-driver.o
14obj-$(CONFIG_UT_DM) += test-fdt.o
15obj-$(CONFIG_UT_DM) += test-uclass.o
16
Joe Hershberger40441e02015-05-20 14:27:29 -050017obj-$(CONFIG_UT_DM) += core.o
Nicolas Saenz Julienne283628c2021-01-12 13:55:23 +010018obj-$(CONFIG_UT_DM) += read.o
Nicolas Saenz Julienne30b20e62021-01-12 13:55:27 +010019obj-$(CONFIG_UT_DM) += phys2bus.o
Simon Glassb6a49a72014-06-11 23:29:50 -060020ifneq ($(CONFIG_SANDBOX),)
Heinrich Schuchardtebaa3d02022-06-12 12:28:22 +000021ifeq ($(CONFIG_ACPIGEN),y)
22obj-y += acpi.o
23obj-y += acpigen.o
24obj-y += acpi_dp.o
25obj-(CONFIG_DM_GPIO) += gpio.o
26obj-y += irq.o
27endif
Sean Andersonfe3a2802021-04-20 11:03:12 -040028obj-$(CONFIG_ADC) += adc.o
Simon Glassf2b25c92018-12-10 10:37:47 -070029obj-$(CONFIG_SOUND) += audio.o
Sean Andersonfe3a2802021-04-20 11:03:12 -040030obj-$(CONFIG_AXI) += axi.o
Simon Glasse4fb8632016-03-13 08:22:36 -060031obj-$(CONFIG_BLK) += blk.o
Philippe Reynes1d310002020-07-24 18:19:52 +020032obj-$(CONFIG_BUTTON) += button.o
Philipp Tomsich6f2d59c2018-12-14 21:14:29 +010033obj-$(CONFIG_DM_BOOTCOUNT) += bootcount.o
Nandor Hanf9db2f12021-06-10 16:56:44 +030034obj-$(CONFIG_DM_REBOOT_MODE) += reboot-mode.o
Lukasz Majewski87e460c2019-06-24 15:50:50 +020035obj-$(CONFIG_CLK) += clk.o clk_ccf.o
Sean Andersonfe3a2802021-04-20 11:03:12 -040036obj-$(CONFIG_CPU) += cpu.o
Simon Glassd8e9a932021-01-16 14:52:22 -070037obj-$(CONFIG_CROS_EC) += cros_ec.o
Alper Nebi Yasake7122452021-05-19 19:33:31 +030038obj-$(CONFIG_PWM_CROS_EC) += cros_ec_pwm.o
Simon Glass092d5c22022-03-27 14:26:19 -060039obj-$(CONFIG_$(SPL_TPL_)DEVRES) += devres.o
Sean Andersonfe3a2802021-04-20 11:03:12 -040040obj-$(CONFIG_DMA) += dma.o
Yannick Fertré23f965a2019-10-07 15:29:05 +020041obj-$(CONFIG_VIDEO_MIPI_DSI) += dsi_host.o
Claudiu Manoilff98da02021-03-14 20:14:57 +080042obj-$(CONFIG_DM_DSA) += dsa.o
Alexandru Gagniuc46a738a2021-07-29 11:47:19 -050043obj-$(CONFIG_ECDSA_VERIFY) += ecdsa.o
Simon Glass42b7f422021-12-04 08:56:31 -070044obj-$(CONFIG_EFI_MEDIA_SANDBOX) += efi_media.o
Joe Hershbergerbfacad72015-03-22 17:09:15 -050045obj-$(CONFIG_DM_ETH) += eth.o
Sean Andersonfe3a2802021-04-20 11:03:12 -040046ifneq ($(CONFIG_EFI_PARTITION),)
47obj-$(CONFIG_FASTBOOT_FLASH_MMC) += fastboot.o
48endif
Rajan Vaja31b82172018-09-19 03:43:46 -070049obj-$(CONFIG_FIRMWARE) += firmware.o
Alexander Dahl1323d082022-09-30 14:04:30 +020050obj-$(CONFIG_DM_FPGA) += fpga.o
Benjamin Gaignard7f84fc62018-11-27 13:49:50 +010051obj-$(CONFIG_DM_HWSPINLOCK) += hwspinlock.o
Simon Glassecc2ed52014-12-10 08:55:55 -070052obj-$(CONFIG_DM_I2C) += i2c.o
Simon Glassf2b25c92018-12-10 10:37:47 -070053obj-$(CONFIG_SOUND) += i2s.o
Sean Andersonfe3a2802021-04-20 11:03:12 -040054obj-$(CONFIG_CLK_K210_SET_RATE) += k210_pll.o
Mark Kettenisfb574622021-10-23 16:58:02 +020055obj-$(CONFIG_IOMMU) += iommu.o
Simon Glass3c43fba2015-07-06 12:54:34 -060056obj-$(CONFIG_LED) += led.o
Stephen Warren8961b522016-05-16 17:41:37 -060057obj-$(CONFIG_DM_MAILBOX) += mailbox.o
Sean Andersonfe3a2802021-04-20 11:03:12 -040058obj-$(CONFIG_DM_MDIO) += mdio.o
59obj-$(CONFIG_DM_MDIO_MUX) += mdio_mux.o
Roger Quadros2c120372022-10-20 16:30:46 +030060obj-$(CONFIG_MEMORY) += memory.o
Sean Andersonfe3a2802021-04-20 11:03:12 -040061obj-$(CONFIG_MISC) += misc.o
Simon Glass8e6cc462015-07-06 12:54:32 -060062obj-$(CONFIG_DM_MMC) += mmc.o
Pratyush Yadav15995ac2020-10-16 16:16:36 +053063obj-$(CONFIG_CMD_MUX) += mux-cmd.o
Sean Andersonfe3a2802021-04-20 11:03:12 -040064obj-$(CONFIG_MULTIPLEXER) += mux-emul.o
65obj-$(CONFIG_MUX_MMIO) += mux-mmio.o
Laurentiu Tudor528d6b32020-04-03 13:43:04 +030066obj-y += fdtdec.o
Simon Glass627988f2020-10-03 09:25:26 -060067obj-$(CONFIG_UT_DM) += nop.o
Patrick Delaunayce891fca2020-01-13 11:34:56 +010068obj-y += ofnode.o
69obj-y += ofread.o
Simon Glassff5fa7d2021-01-21 13:57:14 -070070obj-y += of_extra.o
Mario Six4eea5312018-09-27 09:19:31 +020071obj-$(CONFIG_OSD) += osd.o
Simon Glassb86986c2022-10-18 07:46:31 -060072obj-$(CONFIG_VIDEO) += panel.o
Sean Anderson535e7002021-04-12 18:53:07 -040073obj-$(CONFIG_EFI_PARTITION) += part.o
Simon Glass3232bdf2021-08-01 18:54:44 -060074obj-$(CONFIG_PCI) += pci.o
Simon Glass3e17ffb2019-12-06 21:41:57 -070075obj-$(CONFIG_P2SB) += p2sb.o
Ramon Friedf2a55ac2019-04-27 11:15:24 +030076obj-$(CONFIG_PCI_ENDPOINT) += pci_ep.o
Simon Glassb45c8332019-02-16 20:24:50 -070077obj-$(CONFIG_PCH) += pch.o
Jean-Jacques Hiblot86322f52017-04-24 11:51:28 +020078obj-$(CONFIG_PHY) += phy.o
Sean Andersonfe3a2802021-04-20 11:03:12 -040079ifneq ($(CONFIG_PINMUX),)
80obj-$(CONFIG_PINCONF) += pinmux.o
81endif
Stephen Warren61f5ddc2016-07-13 13:45:31 -060082obj-$(CONFIG_POWER_DOMAIN) += power-domain.o
Simon Glass3b65ee32019-12-06 21:41:54 -070083obj-$(CONFIG_ACPI_PMC) += pmc.o
Sean Andersonfe3a2802021-04-20 11:03:12 -040084obj-$(CONFIG_DM_PMIC) += pmic.o
Simon Glass43b41562017-04-16 21:01:11 -060085obj-$(CONFIG_DM_PWM) += pwm.o
Sean Andersonfe3a2802021-04-20 11:03:12 -040086obj-$(CONFIG_QFW) += qfw.o
Simon Glass64ce0ca2015-07-06 12:54:31 -060087obj-$(CONFIG_RAM) += ram.o
Simon Glass86075ba2015-07-06 12:54:39 -060088obj-y += regmap.o
Nishanth Menonbfaa2d92015-09-17 15:42:42 -050089obj-$(CONFIG_REMOTEPROC) += remoteproc.o
Stephen Warren4581b712016-06-17 09:43:59 -060090obj-$(CONFIG_DM_RESET) += reset.o
Stephen Warren11636252016-05-12 12:03:35 -060091obj-$(CONFIG_SYSRESET) += sysreset.o
Przemyslaw Marczake8f339e2015-05-13 13:38:33 +020092obj-$(CONFIG_DM_REGULATOR) += regulator.o
Sughosh Ganu4ee08eb2019-12-28 23:58:33 +053093obj-$(CONFIG_DM_RNG) += rng.o
Sean Andersonfe3a2802021-04-20 11:03:12 -040094obj-$(CONFIG_DM_RTC) += rtc.o
95obj-$(CONFIG_SCMI_FIRMWARE) += scmi.o
Simon Glass22c80d52022-09-21 16:21:47 +020096obj-$(CONFIG_SCSI) += scsi.o
Sean Andersonfe3a2802021-04-20 11:03:12 -040097obj-$(CONFIG_DM_SERIAL) += serial.o
98obj-$(CONFIG_DM_SPI_FLASH) += sf.o
Bin Mengea8971c2021-03-14 20:15:03 +080099obj-$(CONFIG_SIMPLE_BUS) += simple-bus.o
Sean Anderson4a3390f2020-06-24 06:41:12 -0400100obj-$(CONFIG_SIMPLE_PM_BUS) += simple-pm-bus.o
Sean Andersonfe3a2802021-04-20 11:03:12 -0400101obj-$(CONFIG_SMEM) += smem.o
102obj-$(CONFIG_SOC_DEVICE) += soc.o
103obj-$(CONFIG_SOUND) += sound.o
104obj-$(CONFIG_DM_SPI) += spi.o
105obj-$(CONFIG_SPMI) += spmi.o
106obj-y += syscon.o
Sean Anderson038b13e2020-06-24 06:41:14 -0400107obj-$(CONFIG_RESET_SYSCON) += syscon-reset.o
Sean Andersonfe3a2802021-04-20 11:03:12 -0400108obj-$(CONFIG_SYSINFO) += sysinfo.o
Sean Anderson1cbfed82021-04-20 10:50:58 -0400109obj-$(CONFIG_SYSINFO_GPIO) += sysinfo-gpio.o
AKASHI Takahiro8ff50222022-04-15 16:15:37 +0900110obj-$(CONFIG_UT_DM) += tag.o
Sean Andersonfe3a2802021-04-20 11:03:12 -0400111obj-$(CONFIG_TEE) += tee.o
112obj-$(CONFIG_TIMER) += timer.o
Simon Glass3bb4db42022-08-30 21:05:36 -0600113obj-$(CONFIG_TPM_V2) += tpm.o
Sean Andersonfe3a2802021-04-20 11:03:12 -0400114obj-$(CONFIG_DM_USB) += usb.o
Simon Glassb86986c2022-10-18 07:46:31 -0600115obj-$(CONFIG_VIDEO) += video.o
Andrew Scull8df508f2022-05-16 10:41:36 +0000116ifeq ($(CONFIG_VIRTIO_SANDBOX),y)
117obj-y += virtio.o
Andrew Scullacd3b272022-05-16 10:41:37 +0000118obj-$(CONFIG_VIRTIO_RNG) += virtio_device.o
Andrew Sculld0361042022-05-16 10:41:40 +0000119obj-$(CONFIG_VIRTIO_RNG) += virtio_rng.o
Andrew Scull8df508f2022-05-16 10:41:36 +0000120endif
Heinrich Schuchardtace5bb32021-11-02 19:44:29 +0100121ifeq ($(CONFIG_WDT_GPIO)$(CONFIG_WDT_SANDBOX),yy)
122obj-y += wdt.o
123endif
Simon Glassb6a49a72014-06-11 23:29:50 -0600124endif
Simon Glass627988f2020-10-03 09:25:26 -0600125endif # !SPL