blob: bcb52ef1067bc8055e3a642da4faa0c04cb398c2 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Simon Glassb2c1cac2014-02-26 15:59:21 -07002#
3# Copyright (c) 2013 Google, Inc
Abdellatif El Khlifi3d4fb572023-08-04 14:33:42 +01004# Copyright 2022-2023 Arm Limited and/or its affiliates <open-source-office@arm.com>
Simon Glassb2c1cac2014-02-26 15:59:21 -07005
Simon Glassa1add9d2021-03-07 17:34:46 -07006obj-$(CONFIG_UT_DM) += test-dm.o
Simon Glass8ec29332020-10-03 09:25:26 -06007
8# Tests for particular subsystems - when enabling driver model for a new
9# subsystem you must add sandbox tests here.
Simon Glass0e84d962024-09-29 19:49:50 -060010ifeq ($(CONFIG_XPL_BUILD),y)
Simon Glass25dc2e92020-10-25 20:38:29 -060011obj-$(CONFIG_SPL_OF_PLATDATA) += of_platdata.o
12else
Joe Hershberger9dc1d712015-05-20 14:27:29 -050013obj-$(CONFIG_UT_DM) += bus.o
14obj-$(CONFIG_UT_DM) += test-driver.o
15obj-$(CONFIG_UT_DM) += test-fdt.o
Joe Hershberger9dc1d712015-05-20 14:27:29 -050016obj-$(CONFIG_UT_DM) += test-uclass.o
Simon Glassb2c1cac2014-02-26 15:59:21 -070017
Joe Hershberger9dc1d712015-05-20 14:27:29 -050018obj-$(CONFIG_UT_DM) += core.o
Nicolas Saenz Julienne22b7f7e2021-01-12 13:55:23 +010019obj-$(CONFIG_UT_DM) += read.o
Nicolas Saenz Julienne3524a5e2021-01-12 13:55:27 +010020obj-$(CONFIG_UT_DM) += phys2bus.o
Abdellatif El Khlifie1ab9902023-04-17 10:11:58 +010021ifeq ($(CONFIG_NVMXIP_QSPI)$(CONFIG_SANDBOX64),yy)
22obj-y += nvmxip.o
23endif
24
Simon Glass17e9c782014-06-11 23:29:50 -060025ifneq ($(CONFIG_SANDBOX),)
Heinrich Schuchardt6ef9dc62022-06-12 12:28:22 +000026ifeq ($(CONFIG_ACPIGEN),y)
27obj-y += acpi.o
28obj-y += acpigen.o
29obj-y += acpi_dp.o
30obj-(CONFIG_DM_GPIO) += gpio.o
31obj-y += irq.o
32endif
Sean Andersondffb3472021-04-20 11:03:12 -040033obj-$(CONFIG_ADC) += adc.o
Simon Glassab6dbe62018-12-10 10:37:47 -070034obj-$(CONFIG_SOUND) += audio.o
Sean Andersondffb3472021-04-20 11:03:12 -040035obj-$(CONFIG_AXI) += axi.o
Simon Glass89c1dcd2016-03-13 08:22:36 -060036obj-$(CONFIG_BLK) += blk.o
Tobias Waldekranz5a420052023-02-16 16:33:53 +010037obj-$(CONFIG_BLKMAP) += blkmap.o
Philippe Reynes0785e202020-07-24 18:19:52 +020038obj-$(CONFIG_BUTTON) += button.o
Philipp Tomsich1fc53302018-12-14 21:14:29 +010039obj-$(CONFIG_DM_BOOTCOUNT) += bootcount.o
Nandor Han6521e5d2021-06-10 16:56:44 +030040obj-$(CONFIG_DM_REBOOT_MODE) += reboot-mode.o
Lukasz Majewski8c0709b2019-06-24 15:50:50 +020041obj-$(CONFIG_CLK) += clk.o clk_ccf.o
Sean Andersondffb3472021-04-20 11:03:12 -040042obj-$(CONFIG_CPU) += cpu.o
Simon Glass9b306e52021-01-16 14:52:22 -070043obj-$(CONFIG_CROS_EC) += cros_ec.o
Alper Nebi Yasak8a8cd4f2021-05-19 19:33:31 +030044obj-$(CONFIG_PWM_CROS_EC) += cros_ec_pwm.o
Simon Glass4cafa212024-09-29 19:49:54 -060045obj-$(CONFIG_$(PHASE_)DEVRES) += devres.o
Sean Andersondffb3472021-04-20 11:03:12 -040046obj-$(CONFIG_DMA) += dma.o
Yannick Fertré9712c822019-10-07 15:29:05 +020047obj-$(CONFIG_VIDEO_MIPI_DSI) += dsi_host.o
Claudiu Manoild9eaa922021-03-14 20:14:57 +080048obj-$(CONFIG_DM_DSA) += dsa.o
Alexandru Gagniuc9f1868e2021-07-29 11:47:19 -050049obj-$(CONFIG_ECDSA_VERIFY) += ecdsa.o
Simon Glass507ab962021-12-04 08:56:31 -070050obj-$(CONFIG_EFI_MEDIA_SANDBOX) += efi_media.o
Jerome Forissiere0f95512024-10-16 12:03:59 +020051ifdef CONFIG_NET
Joe Hershberger4c197242015-03-22 17:09:15 -050052obj-$(CONFIG_DM_ETH) += eth.o
Jerome Forissiere0f95512024-10-16 12:03:59 +020053endif
Svyatoslav Ryhel669f5c82023-04-25 10:57:21 +030054obj-$(CONFIG_EXTCON) += extcon.o
Sean Andersondffb3472021-04-20 11:03:12 -040055ifneq ($(CONFIG_EFI_PARTITION),)
56obj-$(CONFIG_FASTBOOT_FLASH_MMC) += fastboot.o
57endif
Rajan Vajab3b2ddb2018-09-19 03:43:46 -070058obj-$(CONFIG_FIRMWARE) += firmware.o
Alexander Dahl6ac319d2022-09-30 14:04:30 +020059obj-$(CONFIG_DM_FPGA) += fpga.o
Sughosh Ganu77079e72022-10-21 18:16:05 +053060obj-$(CONFIG_FWU_MDATA_GPT_BLK) += fwu_mdata.o
Simon Glass2c7b0e42022-10-29 19:47:19 -060061obj-$(CONFIG_SANDBOX) += host.o
Benjamin Gaignarda550b542018-11-27 13:49:50 +010062obj-$(CONFIG_DM_HWSPINLOCK) += hwspinlock.o
Simon Glass7df766e2014-12-10 08:55:55 -070063obj-$(CONFIG_DM_I2C) += i2c.o
Simon Glassab6dbe62018-12-10 10:37:47 -070064obj-$(CONFIG_SOUND) += i2s.o
Sean Andersondffb3472021-04-20 11:03:12 -040065obj-$(CONFIG_CLK_K210_SET_RATE) += k210_pll.o
Mark Kettenis67748ee2021-10-23 16:58:02 +020066obj-$(CONFIG_IOMMU) += iommu.o
Simon Glassd783eb32015-07-06 12:54:34 -060067obj-$(CONFIG_LED) += led.o
Stephen Warren62f2c902016-05-16 17:41:37 -060068obj-$(CONFIG_DM_MAILBOX) += mailbox.o
Sean Andersondffb3472021-04-20 11:03:12 -040069obj-$(CONFIG_DM_MDIO) += mdio.o
70obj-$(CONFIG_DM_MDIO_MUX) += mdio_mux.o
Roger Quadrosb0679a72022-10-20 16:30:46 +030071obj-$(CONFIG_MEMORY) += memory.o
Sean Andersondffb3472021-04-20 11:03:12 -040072obj-$(CONFIG_MISC) += misc.o
Simon Glassd3e58e42015-07-06 12:54:32 -060073obj-$(CONFIG_DM_MMC) += mmc.o
Pratyush Yadav11e47862020-10-16 16:16:36 +053074obj-$(CONFIG_CMD_MUX) += mux-cmd.o
Sean Andersondffb3472021-04-20 11:03:12 -040075obj-$(CONFIG_MULTIPLEXER) += mux-emul.o
76obj-$(CONFIG_MUX_MMIO) += mux-mmio.o
Laurentiu Tudor62070e02020-04-03 13:43:04 +030077obj-y += fdtdec.o
Sean Anderson326422b2023-11-04 16:37:52 -040078obj-$(CONFIG_MTD_RAW_NAND) += nand.o
Simon Glass8ec29332020-10-03 09:25:26 -060079obj-$(CONFIG_UT_DM) += nop.o
Patrick Delaunaycaee1552020-01-13 11:34:56 +010080obj-y += ofnode.o
81obj-y += ofread.o
Simon Glassbf0a6922021-01-21 13:57:14 -070082obj-y += of_extra.o
Mario Six02ad6fb2018-09-27 09:19:31 +020083obj-$(CONFIG_OSD) += osd.o
Simon Glass52cb5042022-10-18 07:46:31 -060084obj-$(CONFIG_VIDEO) += panel.o
Sean Anderson619a1822021-04-12 18:53:07 -040085obj-$(CONFIG_EFI_PARTITION) += part.o
Simon Glass3933d292021-08-01 18:54:44 -060086obj-$(CONFIG_PCI) += pci.o
Simon Glass937bb472019-12-06 21:41:57 -070087obj-$(CONFIG_P2SB) += p2sb.o
Ramon Friedafdb3422019-04-27 11:15:24 +030088obj-$(CONFIG_PCI_ENDPOINT) += pci_ep.o
Simon Glass53a68b32019-02-16 20:24:50 -070089obj-$(CONFIG_PCH) += pch.o
Jean-Jacques Hiblot7e9db022017-04-24 11:51:28 +020090obj-$(CONFIG_PHY) += phy.o
Sean Andersondffb3472021-04-20 11:03:12 -040091ifneq ($(CONFIG_PINMUX),)
92obj-$(CONFIG_PINCONF) += pinmux.o
93endif
Stephen Warren92c67fa2016-07-13 13:45:31 -060094obj-$(CONFIG_POWER_DOMAIN) += power-domain.o
Simon Glass8c501022019-12-06 21:41:54 -070095obj-$(CONFIG_ACPI_PMC) += pmc.o
Sean Andersondffb3472021-04-20 11:03:12 -040096obj-$(CONFIG_DM_PMIC) += pmic.o
Simon Glasse62f4be2017-04-16 21:01:11 -060097obj-$(CONFIG_DM_PWM) += pwm.o
Abdellatif El Khlifi3d4fb572023-08-04 14:33:42 +010098obj-$(CONFIG_ARM_FFA_TRANSPORT) += ffa.o
Sean Andersondffb3472021-04-20 11:03:12 -040099obj-$(CONFIG_QFW) += qfw.o
Simon Glass3d355e62015-07-06 12:54:31 -0600100obj-$(CONFIG_RAM) += ram.o
Simon Glass265142a2015-07-06 12:54:39 -0600101obj-y += regmap.o
Nishanth Menonaab9a932015-09-17 15:42:42 -0500102obj-$(CONFIG_REMOTEPROC) += remoteproc.o
Stephen Warren6488e642016-06-17 09:43:59 -0600103obj-$(CONFIG_DM_RESET) += reset.o
Stephen Warren859f2562016-05-12 12:03:35 -0600104obj-$(CONFIG_SYSRESET) += sysreset.o
Sean Andersondffb3472021-04-20 11:03:12 -0400105obj-$(CONFIG_DM_REGULATOR) += regulator.o
Johan Jonkerc9a97f62023-10-18 16:01:59 +0200106obj-$(CONFIG_CMD_RKMTD) += rkmtd.o
Simon Glass4cafa212024-09-29 19:49:54 -0600107obj-$(CONFIG_$(PHASE_)DM_RNG) += rng.o
Simon Glassc83c4b92015-04-20 12:37:31 -0600108obj-$(CONFIG_DM_RTC) += rtc.o
Sean Andersondffb3472021-04-20 11:03:12 -0400109obj-$(CONFIG_SCMI_FIRMWARE) += scmi.o
Simon Glass509f32e2022-09-21 16:21:47 +0200110obj-$(CONFIG_SCSI) += scsi.o
Sean Andersondffb3472021-04-20 11:03:12 -0400111obj-$(CONFIG_DM_SERIAL) += serial.o
Simon Glass3142b5f2016-02-24 09:14:57 -0700112obj-$(CONFIG_DM_SPI_FLASH) += sf.o
Sean Andersondffb3472021-04-20 11:03:12 -0400113obj-$(CONFIG_SIMPLE_BUS) += simple-bus.o
114obj-$(CONFIG_SIMPLE_PM_BUS) += simple-pm-bus.o
Ramon Friede8826f52018-07-02 02:58:00 +0300115obj-$(CONFIG_SMEM) += smem.o
Dave Gerlach75dbdfc2020-07-15 23:39:58 -0500116obj-$(CONFIG_SOC_DEVICE) += soc.o
Simon Glassab6dbe62018-12-10 10:37:47 -0700117obj-$(CONFIG_SOUND) += sound.o
Sean Andersondffb3472021-04-20 11:03:12 -0400118obj-$(CONFIG_DM_SPI) += spi.o
119obj-$(CONFIG_SPMI) += spmi.o
120obj-y += syscon.o
121obj-$(CONFIG_RESET_SYSCON) += syscon-reset.o
Alexey Romanovf6c19e12023-09-21 11:13:37 +0300122obj-$(CONFIG_SM) += sm.o
Simon Glass458b66a2020-11-05 06:32:05 -0700123obj-$(CONFIG_SYSINFO) += sysinfo.o
Sean Anderson1c830672021-04-20 10:50:58 -0400124obj-$(CONFIG_SYSINFO_GPIO) += sysinfo-gpio.o
AKASHI Takahirocb53b2c2022-04-15 16:15:37 +0900125obj-$(CONFIG_UT_DM) += tag.o
Jens Wiklandera10b9832018-09-25 16:40:19 +0200126obj-$(CONFIG_TEE) += tee.o
Sean Andersondffb3472021-04-20 11:03:12 -0400127obj-$(CONFIG_TIMER) += timer.o
Simon Glass11a075c2022-08-30 21:05:36 -0600128obj-$(CONFIG_TPM_V2) += tpm.o
Sean Andersondffb3472021-04-20 11:03:12 -0400129obj-$(CONFIG_DM_USB) += usb.o
Simon Glass52cb5042022-10-18 07:46:31 -0600130obj-$(CONFIG_VIDEO) += video.o
Andrew Scull561ff8902022-05-16 10:41:36 +0000131ifeq ($(CONFIG_VIRTIO_SANDBOX),y)
132obj-y += virtio.o
Andrew Sculle4ea0fd2022-05-16 10:41:37 +0000133obj-$(CONFIG_VIRTIO_RNG) += virtio_device.o
Andrew Scull89e57e12022-05-16 10:41:40 +0000134obj-$(CONFIG_VIRTIO_RNG) += virtio_rng.o
Andrew Scull561ff8902022-05-16 10:41:36 +0000135endif
Heinrich Schuchardt398b94e2021-11-02 19:44:29 +0100136ifeq ($(CONFIG_WDT_GPIO)$(CONFIG_WDT_SANDBOX),yy)
137obj-y += wdt.o
138endif
Simon Glass17e9c782014-06-11 23:29:50 -0600139endif
Simon Glass8ec29332020-10-03 09:25:26 -0600140endif # !SPL