Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | 3def006 | 2017-06-14 21:28:27 -0600 | [diff] [blame] | 2 | # |
| 3 | # (C) Copyright 2000-2007 |
| 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
Simon Glass | 3def006 | 2017-06-14 21:28:27 -0600 | [diff] [blame] | 5 | |
| 6 | ifndef CONFIG_SPL_BUILD |
| 7 | obj-$(CONFIG_DM_SCSI) += scsi-uclass.o |
| 8 | obj-$(CONFIG_SCSI) += scsi.o |
Simon Glass | 9985e9c | 2023-01-17 10:47:45 -0700 | [diff] [blame] | 9 | |
| 10 | ifdef CONFIG_SCSI |
| 11 | ifdef CONFIG_DM_SCSI |
| 12 | obj-$(CONFIG_$(SPL_TPL_)BOOTSTD) += scsi_bootdev.o |
| 13 | endif |
| 14 | endif |
| 15 | |
Simon Glass | 3def006 | 2017-06-14 21:28:27 -0600 | [diff] [blame] | 16 | endif |
| 17 | |
| 18 | ifdef CONFIG_SPL_BUILD |
Simon Glass | 081a45a | 2021-08-08 12:20:17 -0600 | [diff] [blame] | 19 | ifdef CONFIG_SPL_SATA |
Simon Glass | 3def006 | 2017-06-14 21:28:27 -0600 | [diff] [blame] | 20 | obj-$(CONFIG_DM_SCSI) += scsi-uclass.o |
| 21 | obj-$(CONFIG_SCSI) += scsi.o |
| 22 | endif |
| 23 | endif |
| 24 | |
Simon Glass | 231e774 | 2022-01-31 07:49:37 -0700 | [diff] [blame] | 25 | ifdef CONFIG_SCSI |
Simon Glass | 3def006 | 2017-06-14 21:28:27 -0600 | [diff] [blame] | 26 | obj-$(CONFIG_SANDBOX) += sandbox_scsi.o |
Simon Glass | 4d3b00d | 2022-09-21 16:21:45 +0200 | [diff] [blame] | 27 | obj-$(CONFIG_SANDBOX) += scsi_emul.o |
Simon Glass | 231e774 | 2022-01-31 07:49:37 -0700 | [diff] [blame] | 28 | endif |