Messages in this thread | | | Date | Wed, 14 Jul 2004 14:59:07 -0700 (PDT) | From | Song Wang <> | Subject | Re: kbuild support to build one module with multiple separate components? |
| |
Hi, Ralf
Thanks for the reply.
I looked through kbuild documentation. This is a variable called lib-y to build .a, for instance,
lib-y := a.o, b.o
Then lib.a will be produced. However, in this case, you can build a lib.a for each sub module, but they will have the same name, I don't know how you can link them together.
I think the current kbuild system does simplify the Makefiles in 2.6, but it also reduces the flexibility.
-Song
--- Ralf Baechle <ralf@linux-mips.org> wrote: > On Tue, Jul 06, 2004 at 04:00:50PM -0700, Song Wang > wrote: > > > This is wrong, because kbuild will treat A as > > independent module. All I want is to treat > > A as component of the only module mymodule.o. It > > should be linked to mymodule.o > > > > Any idea on how to write a kbuild Makefile to > > support such kind of single module produced > > by linking multiple components and each component > > is located in separate directory? Thanks. > > That's a limitation in the current kbuild system. > You either have to put > all files into a single directory or if you don't > want that split your > module into several independant modules. What I > haven't tried is using > .a libraries but they're generally deprecated in > kbuild. > > Ralf >
__________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail - 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/
| |