2002-10-07 22:28:29

by Mark Haverkamp

[permalink] [raw]
Subject: [PATCH] aacraid Makefile error in 2.5.41

I tried building the aacraid driver in 2.5.41 and got an error
saying that O_TARGET usage was obsolete. The following change
to the Makefile allows me to build.

--- base_linux-2.5/drivers/scsi/aacraid/Makefile Mon Oct 7 13:03:15 2002
+++ linux-2.5/drivers/scsi/aacraid/Makefile Mon Oct 7 14:30:03 2002
@@ -1,10 +1,9 @@

EXTRA_CFLAGS += -I$(TOPDIR)/drivers/scsi

-O_TARGET := aacraid.o
-obj-m := $(O_TARGET)
+obj-$(CONFIG_SCSI_AACRAID) := aacraid.o

-obj-y := linit.o aachba.o commctrl.o comminit.o commsup.o \
+aacraid-objs := linit.o aachba.o commctrl.o comminit.o commsup.o \
dpcsup.o rx.o sa.o

include $(TOPDIR)/Rules.make