linux-mips
[Top] [All Lists]

Re: IDE module problem

To: Jun Sun <jsun@mvista.com>
Subject: Re: IDE module problem
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Date: Wed, 11 Dec 2002 18:20:30 +0100 (MET)
Cc: linux-mips@linux-mips.org
In-reply-to: <20021211084914.A6755@mvista.com>
Organization: Technical University of Gdansk
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
On Wed, 11 Dec 2002, Jun Sun wrote:

> > > This is because arch/mips/lib/Makefile says:
> > > 
> > > obj-$(CONFIG_IDE)               += ide-std.o ide-no.o
> > [...]
> > > 3) use some smart trick in Makefile so that we include those
> > > two files only if CONFIG_IDE is 'y' or 'm'.  (How?)
> > 
> >  obj-$(CONFIG_IDE_MODULE)
> 
> This does not work.  Apparently, CONFIG_IDE_MODULE is not created 
> for makefile part.

 Indeed -- my fault.  Variables such as $(CONFIG_IDE) are four-state and
for the module case they are simply set to "m".  But then you can use
"ifeq ($(CONFIG_IDE),m)".  Another approach is to invent an additional
variable automatically set to "y" whenever CONFIG_IDE is enabled. 

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +


<Prev in Thread] Current Thread [Next in Thread>