Commit 2b31db8a authored by Kai Germaschewski's avatar Kai Germaschewski

Fix drivers/scsi/aic7xxx/Makefile for building a modular aic7xxx driver

Use the (well, one) standard way to build a multi-part module. 
Standard except for that we build aix7xxx_mod.o but then rename it
at modules_install time (just as it was before).
parent 386c0ee1
...@@ -5,18 +5,20 @@ ...@@ -5,18 +5,20 @@
O_TARGET := aic7xxx_drv.o O_TARGET := aic7xxx_drv.o
MOD_TARGET = aic7xxx.o MOD_TARGET = aic7xxx.o
obj-$(CONFIG_SCSI_AIC7XXX) += aic7xxx_mod.o
# Core files # Core files
obj-$(CONFIG_SCSI_AIC7XXX) += aic7xxx.o aic7xxx_93cx6.o aic7770.o aix7xxx_mod-objs += aic7xxx.o aic7xxx_93cx6.o aic7770.o
# Platform Specific Files # Platform Specific Files
obj-$(CONFIG_SCSI_AIC7XXX) += aic7xxx_linux.o aic7xxx_proc.o aic7770_linux.o aic7xxx_mod-objs += aic7xxx_linux.o aic7xxx_proc.o aic7770_linux.o
# PCI Specific Files # PCI Specific Files
ifeq ($(CONFIG_PCI),y) ifeq ($(CONFIG_PCI),y)
# Core PCI files # Core PCI files
obj-$(CONFIG_SCSI_AIC7XXX) += aic7xxx_pci.o aic7xxx_mod-objs += aic7xxx_pci.o
# Platform Specific PCI Files # Platform Specific PCI Files
obj-$(CONFIG_SCSI_AIC7XXX) += aic7xxx_linux_pci.o aic7xxx_mod-objs += aic7xxx_linux_pci.o
endif endif
#EXTRA_CFLAGS += -g #EXTRA_CFLAGS += -g
...@@ -30,3 +32,5 @@ endif ...@@ -30,3 +32,5 @@ endif
aicasm/aicasm: aicasm/*.[chyl] aicasm/aicasm: aicasm/*.[chyl]
$(MAKE) -C aicasm $(MAKE) -C aicasm
aix7xxx_mod.o: aic7xxx_seq.h aic7xxx_reg.h
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment