lkml.org 
[lkml]   [2006]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Compiling dependent module
On Sat, Oct 07, 2006 at 05:42:47PM +0530, Devesh Sharma wrote:
> Hello all,
>
> I have a situation where, I have one parent module in ../hello/
> directory which exports one symbol (g_my_export). I have a dependent
> module in ../hello1/ directory. Both have it's own makefiles.
> Compiling of parent module (hello.ko) is fine, but during compilation
> of dependent module (hello1.ko) I see a warning that g_my_export is
> undefined.
>
> On the other hand when I do depmod -a and modprobe, dependent module
> inserts successfully in kernel.
>
> I want to remove compile time warning. What should I do?

Compile both module in same go.
See Documentation/kbuild/modules.txt for a description.

In short create a kbuild file that points to both modules
so kbuild knows about both modules when it builds them.

Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-10-07 20:23    [W:0.059 / U:0.564 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site