mpt2sas: Move Gen2 HBA's device registration to a separate file
[deliverable/linux.git] / drivers / scsi / mpt2sas / Makefile
index 728f0475711d9c7c7b78f0cbfd504fc5413dc83a..37716169b91a33b21906322e445e165a94e608ba 100644 (file)
@@ -1,7 +1,15 @@
 # mpt2sas makefile
+
+# share the official mpi headers from the mpt3sas driver
+ccflags-y += -I$(src)/../mpt3sas
+ccflags-y += -DSCSI_MPT2SAS
+
+# use the common object files from mpt3sas driver
 obj-$(CONFIG_SCSI_MPT2SAS) += mpt2sas.o
-mpt2sas-y +=  mpt2sas_base.o        \
-               mpt2sas_config.o    \
-               mpt2sas_scsih.o     \
-               mpt2sas_transport.o \
-               mpt2sas_ctl.o
+mpt2sas-y +=  ../mpt3sas/mpt3sas_base.o        \
+               ../mpt3sas/mpt3sas_config.o    \
+               ../mpt3sas/mpt3sas_scsih.o     \
+               ../mpt3sas/mpt3sas_transport.o \
+               ../mpt3sas/mpt3sas_ctl.o       \
+               ../mpt3sas/mpt3sas_trigger_diag.o  \
+               mpt2sas_module.o
This page took 0.026195 seconds and 5 git commands to generate.