blob: d8d6de59090d089dbc911fe122db9e4d5e07c29f [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Simon Glass3def0062017-06-14 21:28:27 -06002#
3# (C) Copyright 2000-2007
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Simon Glass3def0062017-06-14 21:28:27 -06005
6ifndef CONFIG_SPL_BUILD
7obj-$(CONFIG_DM_SCSI) += scsi-uclass.o
8obj-$(CONFIG_SCSI) += scsi.o
Simon Glass9985e9c2023-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 Glass3def0062017-06-14 21:28:27 -060016endif
17
18ifdef CONFIG_SPL_BUILD
Simon Glass081a45a2021-08-08 12:20:17 -060019ifdef CONFIG_SPL_SATA
Simon Glass3def0062017-06-14 21:28:27 -060020obj-$(CONFIG_DM_SCSI) += scsi-uclass.o
21obj-$(CONFIG_SCSI) += scsi.o
22endif
23endif
24
Simon Glass231e7742022-01-31 07:49:37 -070025ifdef CONFIG_SCSI
Simon Glass3def0062017-06-14 21:28:27 -060026obj-$(CONFIG_SANDBOX) += sandbox_scsi.o
Simon Glass4d3b00d2022-09-21 16:21:45 +020027obj-$(CONFIG_SANDBOX) += scsi_emul.o
Simon Glass231e7742022-01-31 07:49:37 -070028endif