public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* small prob. with pcmcia Makefile in 2.4.20
@ 2002-11-30 10:41 benny k.
  2002-11-30 13:16 ` GertJan Spoelman
  0 siblings, 1 reply; 2+ messages in thread
From: benny k. @ 2002-11-30 10:41 UTC (permalink / raw)
  To: linux-kernel

Hello,

I have found a small problem with the pcmcia Makefile in 2.4.20. It seems that
drivers/net/pcmcia/smc91c92_cs.c has a dependency on drivers/net/mii.c. I played
with the Makefile and came up with the following two solutions:

1. -make the following sym. link:

ln -s drivers/net/mii.c drivers/net/pcmcia/mii.c

-apply the following patch:

--- drivers/net/pcmcia/Makefile.orig    2002-11-30 18:43:02.000000000 -0500
+++ drivers/net/pcmcia/Makefile 2002-11-30 18:49:01.000000000 -0500
@@ -12,7 +12,7 @@
 obj-           :=
 
 # Things that need to export symbols
-export-objs    := ray_cs.o
+export-objs    := ray_cs.o mii.o
 
 # 16-bit client drivers
 obj-$(CONFIG_PCMCIA_3C589)     += 3c589_cs.o
@@ -20,7 +20,7 @@
 obj-$(CONFIG_PCMCIA_FMVJ18X)   += fmvj18x_cs.o
 obj-$(CONFIG_PCMCIA_NMCLAN)    += nmclan_cs.o
 obj-$(CONFIG_PCMCIA_PCNET)     += pcnet_cs.o
-obj-$(CONFIG_PCMCIA_SMC91C92)  += smc91c92_cs.o
+obj-$(CONFIG_PCMCIA_SMC91C92)  += smc91c92_cs.o mii.o
 obj-$(CONFIG_PCMCIA_XIRC2PS)   += xirc2ps_cs.o
 obj-$(CONFIG_ARCNET_COM20020_CS)+= com20020_cs.o
 obj-$(CONFIG_PCMCIA_AXNET)     += axnet_cs.o




2. -apply the following patch:

--- drivers/net/pcmcia/Makefile.orig    2002-11-30 18:43:02.000000000 -0500
+++ drivers/net/pcmcia/Makefile 2002-11-30 18:44:46.000000000 -0500
@@ -12,7 +12,7 @@
 obj-           :=
 
 # Things that need to export symbols
-export-objs    := ray_cs.o
+export-objs    := ray_cs.o ../mii.o
 
 # 16-bit client drivers
 obj-$(CONFIG_PCMCIA_3C589)     += 3c589_cs.o
@@ -20,7 +20,7 @@
 obj-$(CONFIG_PCMCIA_FMVJ18X)   += fmvj18x_cs.o
 obj-$(CONFIG_PCMCIA_NMCLAN)    += nmclan_cs.o
 obj-$(CONFIG_PCMCIA_PCNET)     += pcnet_cs.o
-obj-$(CONFIG_PCMCIA_SMC91C92)  += smc91c92_cs.o
+obj-$(CONFIG_PCMCIA_SMC91C92)  += smc91c92_cs.o mii.o
 obj-$(CONFIG_PCMCIA_XIRC2PS)   += xirc2ps_cs.o
 obj-$(CONFIG_ARCNET_COM20020_CS)+= com20020_cs.o
 obj-$(CONFIG_PCMCIA_AXNET)     += axnet_cs.o


 
The problem with these solutions is that if a PCI card that uses mii.c
is selected along with smc91c92_cs.c than two copies of mii.o will be
built. I don't know what will happen if the driver is built into the
kernel. I can't seem to find a solution that fixes this problem. It
seems to me that this problem exists because mii.c is in a different
directory. 

Does anyone have any suggestions on how to fix this?

Please cc me as I'm not on the list. 

Ben

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: small prob. with pcmcia Makefile in 2.4.20
  2002-11-30 10:41 small prob. with pcmcia Makefile in 2.4.20 benny k.
@ 2002-11-30 13:16 ` GertJan Spoelman
  0 siblings, 0 replies; 2+ messages in thread
From: GertJan Spoelman @ 2002-11-30 13:16 UTC (permalink / raw)
  To: benny k., linux-kernel

On Saturday 30 November 2002 11:41, benny k. wrote:
> Hello,
>
> I have found a small problem with the pcmcia Makefile in 2.4.20. It seems
> that drivers/net/pcmcia/smc91c92_cs.c has a dependency on
> drivers/net/mii.c. I played with the Makefile and came up with the
> following two solutions:
>
<snip>
>
> Does anyone have any suggestions on how to fix this?

The fix was posted yesterday on this list by Adrian Bunk:

--- linux-2.4.20-test/drivers/net/Makefile.old  2002-11-29 17:46:47.000000000 
+0100
+++ linux-2.4.20-test/drivers/net/Makefile      2002-11-29 17:47:22.000000000 
+0100
@@ -122,6 +122,7 @@
 obj-$(CONFIG_MAC8390) += daynaport.o 8390.o
 obj-$(CONFIG_APNE) += apne.o 8390.o
 obj-$(CONFIG_PCMCIA_PCNET) += 8390.o
+obj-$(CONFIG_PCMCIA_SMC91C92) += mii.o
 obj-$(CONFIG_SHAPER) += shaper.o
 obj-$(CONFIG_SK_G16) += sk_g16.o
 obj-$(CONFIG_HP100) += hp100.o

-- 

    GertJan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-30 13:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-30 10:41 small prob. with pcmcia Makefile in 2.4.20 benny k.
2002-11-30 13:16 ` GertJan Spoelman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox