Re: IDE module problem

2 messages, 2 authors, 2002-12-11 · open the first message on its own page

Re: IDE module problem

From: Jun Sun <hidden>
Date: 2002-12-11 16:49:22

On Wed, Dec 11, 2002 at 02:21:48PM +0100, Maciej W. Rozycki wrote:
On Mon, 9 Dec 2002, Jun Sun wrote:
quoted
If you configure IDE support as a module (CONFIG_IDE), you
will soon find that ide-std.o and ide-no.o are missing.
This is because arch/mips/lib/Makefile says:

obj-$(CONFIG_IDE)               += ide-std.o ide-no.o
[...]
quoted
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.

Jun

Re: IDE module problem

From: Maciej W. Rozycki <hidden>
Date: 2002-12-11 17:20:18

On Wed, 11 Dec 2002, Jun Sun wrote:
quoted
quoted
This is because arch/mips/lib/Makefile says:

obj-$(CONFIG_IDE)               += ide-std.o ide-no.o
[...]
quoted
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        +
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help