blob: d8d6de59090d089dbc911fe122db9e4d5e07c29f [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Simon Glass0fcd48f2017-06-14 21:28:27 -06002#
3# (C) Copyright 2000-2007
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Simon Glass0fcd48f2017-06-14 21:28:27 -06005
6ifndef CONFIG_SPL_BUILD
7obj-$(CONFIG_DM_SCSI) += scsi-uclass.o
8obj-$(CONFIG_SCSI) += scsi.o
Simon Glass8f090b62023-01-17 10:47:45 -07009
10ifdef CONFIG_SCSI
11ifdef CONFIG_DM_SCSI
12obj-$(CONFIG_$(SPL_TPL_)BOOTSTD) += scsi_bootdev.o
13endif
14endif
15
Simon Glass0fcd48f2017-06-14 21:28:27 -060016endif
17
18ifdef CONFIG_SPL_BUILD
Simon Glassf7560372021-08-08 12:20:17 -060019ifdef CONFIG_SPL_SATA
Simon Glass0fcd48f2017-06-14 21:28:27 -060020obj-$(CONFIG_DM_SCSI) += scsi-uclass.o
21obj-$(CONFIG_SCSI) += scsi.o
22endif
23endif
24
Simon Glassedca8cf2022-01-31 07:49:37 -070025ifdef CONFIG_SCSI
Simon Glass0fcd48f2017-06-14 21:28:27 -060026obj-$(CONFIG_SANDBOX) += sandbox_scsi.o
Simon Glass02cea112022-09-21 16:21:45 +020027obj-$(CONFIG_SANDBOX) += scsi_emul.o
Simon Glassedca8cf2022-01-31 07:49:37 -070028endif