[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Kernel Build System: Using the same name as module and source file
Hello,
Bernhard Walle <bernhard.walle@xxxxxx> [2006-04-02]:
> Adrian Bunk <bunk@xxxxxxxxx> [2006-04-01]:
> > On Sat, Apr 01, 2006 at 11:16:32AM -0800, Arun Srinivasan wrote:
> >
> > > yes.It is possible.I had a Makefile for a situation like this as:
> > >
> > > #this builds a module a.o from (a.c and b.c)
> > > obj-m += a.o
> > > a-objs := b.o
> > > export-objs := b.o ##a.o needs some symbol exported by b.o##
> > > obj-m += b.o
> > > include $(TOPDIR)/Rules.make
> > >
> > > For further reference see http://lwn.net/Articles/21835/
> >
> > What you are writing doesn't make any sense:
>
> Well, but it works.
>
> obj-m := a.o
> a-objs := b.o
You're right, it doesn't work. :)
Regards,
Bernhard
--
93 Prozent der Amerikaner wissen, dass Rauchen Lungenkrebs verursacht,
aber nur 48 Prozent wissen, dass es ein Jahr dauert, bis die Erde
einmal um die Sonne gekreist ist. (Quelle: HSIA-Preprint)
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/