Skip to contentSkip to conversation

Makefile problem and modules

DISCUSSION Giacomo Catenazzi 2 participants 2 messages Jul 12, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 11 lines · Emmanuel Varagnat

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

#2 lore raw
In reply to a message not in the archive
Quoted 10 lines · Giacomo Catenazzi
Quoted 7 lines · Emmanuel Varagnat

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).

Quoted 6 lines
Quoted 4 lines

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