Re: Kernel Build System: Using the same name as module and source file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

regards
Arun

On 4/1/06, Bernhard Walle <bernhard.walle@xxxxxx> wrote:
Hello,

I have a module which requires the source files a.c and b.c. Is it
possible to have a resulting module name a.ko? a-m.c and b.c -> a.ko is
no problem, but I would like to use a.c instead.

Thanks.


Regards,
  Bernhard
--
Ich glaube nur an Statistiken, die ich selbst gefälscht habe.
        -- Winston Churchill

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/




--
"There are 10 people in the world - those who understand binary and those who dont !"

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux