Hey,
Got this error when compiling with CONFIG_PCMCIA_QLOGIC=m
make -f drivers/scsi/pcmcia/Makefile
gcc -Wp,-MD,drivers/scsi/pcmcia/.qlogic_stub.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -Iarch/i386/mach-generic -nostdinc -iwithprefix include -DMODULE -DKBUILD_BASENAME=qlogic_stub -c -o drivers/scsi/pcmcia/qlogic_stub.o drivers/scsi/pcmcia/qlogic_stub.c
make[3]: *** No rule to make target `drivers/scsi/pcmcia/qlogicfas.s', needed by `drivers/scsi/pcmcia/qlogicfas.o'. Stop.
make[2]: *** [drivers/scsi/pcmcia] Error 2
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2
thanks,
/ Brett Pemberton
On Sun, Oct 13, 2002 at 04:14:44PM +1000, Brett wrote:
>
> Hey,
>
> Got this error when compiling with CONFIG_PCMCIA_QLOGIC=m
The pcmia makefile utilised vpath, the last makefile in 2.5.42 according to
a fast grep.
The following patch made it compile for me, but there were warnings about cli
and friends, so you will not be able to do the final link.
I simply added "../" in front of qlogicfas.o - but this is my opinion not
the final solution for this so I did not sumbit it for inclusion.
Kai - if this is ok, could you include it in next round.
[email protected] also copied - seems to be qlogicfas interested.
Sam
===== drivers/scsi/pcmcia/Makefile 1.5 vs edited =====
--- 1.5/drivers/scsi/pcmcia/Makefile Sat Mar 23 04:50:20 2002
+++ edited/drivers/scsi/pcmcia/Makefile Sun Oct 13 09:56:49 2002
@@ -2,13 +2,6 @@
# Makefile for the Linux PCMCIA SCSI drivers.
#
-obj-y :=
-obj-m :=
-obj-n :=
-obj- :=
-
-vpath %c ..
-
CFLAGS_aha152x.o = -DPCMCIA -D__NO_VERSION__ -DAHA152X_STAT
CFLAGS_fdomain.o = -DPCMCIA -D__NO_VERSION__
CFLAGS_qlogicfas.o = -DPCMCIA -D__NO_VERSION__
@@ -21,6 +14,6 @@
aha152x_cs-objs := aha152x_stub.o aha152x.o
fdomain_cs-objs := fdomain_stub.o fdomain.o
-qlogic_cs-objs := qlogic_stub.o qlogicfas.o
+qlogic_cs-objs := qlogic_stub.o ../qlogicfas.o
include $(TOPDIR)/Rules.make