Skip to content

Commit

Permalink
[SCSI] libsas: make ATA functions selectable by a config option
Browse files Browse the repository at this point in the history
Not everyone wants libsas automatically to pull in libata.  This patch
makes the behaviour configurable, so you can build libsas with or
without ATA support.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
James Bottomley authored and James Bottomley committed Jul 22, 2007
1 parent 41e1703 commit b914217
Show file tree
Hide file tree
Showing 6 changed files with 436 additions and 397 deletions.
7 changes: 7 additions & 0 deletions drivers/scsi/libsas/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ config SCSI_SAS_LIBSAS
This provides transport specific helpers for SAS drivers which
use the domain device construct (like the aic94xxx).

config SCSI_SAS_ATA
bool "ATA support for libsas (requires libata)"
depends on SCSI_SAS_LIBSAS && ATA
help
Builds in ATA support into libsas. Will necessitate
the loading of libata along with libsas.

config SCSI_SAS_LIBSAS_DEBUG
bool "Compile the SAS Domain Transport Attributes in debug mode"
default y
Expand Down
4 changes: 2 additions & 2 deletions drivers/scsi/libsas/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ libsas-y += sas_init.o \
sas_dump.o \
sas_discover.o \
sas_expander.o \
sas_scsi_host.o \
sas_ata.o
sas_scsi_host.o
libsas-$(CONFIG_SCSI_SAS_ATA) += sas_ata.o
Loading

0 comments on commit b914217

Please sign in to comment.