public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Makefile problem and modules
@ 2001-07-12 14:59 Emmanuel Varagnat
  2001-07-13 22:07 ` Andrzej Krzysztofowicz
  0 siblings, 1 reply; 4+ messages in thread
From: Emmanuel Varagnat @ 2001-07-12 14:59 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org


I wrote a module for IPv6 but there is a case when it is
compiled.
(For the moment my code can only work as a module...)
When IPv6 is compiled as a module, my module is well compiled.
But if IPv6 is directly in the kernel, my module is not take
into account (I've got no object file).

Here is the only line I added to the Makefile (near the end):

obj-$(CONFIG_IPV6_MYSTUFF)  += mystuff.o

Thanks in advance.

-Manu

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

* Re: Makefile problem and modules
       [not found] <fa.fo00suv.1ug283k@ifi.uio.no>
@ 2001-07-12 15:18 ` Giacomo Catenazzi
  2001-07-12 15:31   ` Emmanuel Varagnat
  0 siblings, 1 reply; 4+ messages in thread
From: Giacomo Catenazzi @ 2001-07-12 15:18 UTC (permalink / raw)
  To: Emmanuel Varagnat; +Cc: linux-kernel

Emmanuel Varagnat wrote:

> I wrote a module for IPv6 but there is a case when it is
> compiled.
> (For the moment my code can only work as a module...)
> When IPv6 is compiled as a module, my module is well compiled.
> But if IPv6 is directly in the kernel, my module is not take
> into account (I've got no object file).
> 
> Here is the only line I added to the Makefile (near the end):
> 
> obj-$(CONFIG_IPV6_MYSTUFF)  += mystuff.o
> 

Changes in the Config.in file?


	giacomo

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

* Re: Makefile problem and modules
  2001-07-12 15:18 ` Giacomo Catenazzi
@ 2001-07-12 15:31   ` Emmanuel Varagnat
  0 siblings, 0 replies; 4+ messages in thread
From: Emmanuel Varagnat @ 2001-07-12 15:31 UTC (permalink / raw)
  To: Giacomo Catenazzi; +Cc: linux-kernel

Giacomo Catenazzi wrote:
> 
> Emmanuel Varagnat wrote:
> 
> > I wrote a module for IPv6 but there is a case when it is
> > compiled.
> > (For the moment my code can only work as a module...)
> > When IPv6 is compiled as a module, my module is well compiled.
> > But if IPv6 is directly in the kernel, my module is not take
> > into account (I've got no object file).
> >
> > Here is the only line I added to the Makefile (near the end):
> >
> > obj-$(CONFIG_IPV6_MYSTUFF)  += mystuff.o
> >
> 
> Changes in the Config.in file?

Yes just a tristate option.
And after doing config/menuconfig/xconfig, the .config file
contain a line with CONFIG_IPV6_MYSTUFF=m

I can't figure out where it comes from.
I must say I also read Documentation/kbuild/makefiles.txt.

Thanks.

-Manu

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

* Re: Makefile problem and modules
  2001-07-12 14:59 Makefile problem and modules Emmanuel Varagnat
@ 2001-07-13 22:07 ` Andrzej Krzysztofowicz
  0 siblings, 0 replies; 4+ messages in thread
From: Andrzej Krzysztofowicz @ 2001-07-13 22:07 UTC (permalink / raw)
  To: Emmanuel Varagnat; +Cc: linux-kernel@vger.kernel.org

> I wrote a module for IPv6 but there is a case when it is
> compiled.
> (For the moment my code can only work as a module...)
> When IPv6 is compiled as a module, my module is well compiled.
> But if IPv6 is directly in the kernel, my module is not take
> into account (I've got no object file).
> 
> Here is the only line I added to the Makefile (near the end):
> 
> obj-$(CONFIG_IPV6_MYSTUFF)  += mystuff.o

In which directory? net/ipv6/ ?

Maybe you need to add

subdir-m += ipv6

in net/Makefile then.
net/ipv6 is not processed during module compilation when CONFIG_IPV6=y
(except net/ipv6/netfilter).

Andrzej

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

end of thread, other threads:[~2001-07-13 23:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-12 14:59 Makefile problem and modules Emmanuel Varagnat
2001-07-13 22:07 ` Andrzej Krzysztofowicz
     [not found] <fa.fo00suv.1ug283k@ifi.uio.no>
2001-07-12 15:18 ` Giacomo Catenazzi
2001-07-12 15:31   ` Emmanuel Varagnat

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