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]

 



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:

Your Makefile example is for kernel 2.4 and won't work with kernel 2.6, 
while your reference (that is simply a very ancient and outdated version 
of Documentation/kbuild/makefiles.txt in the kernel sources) is for 
kernel 2.6.

Besides this, what Bernhard wants to do is not possible with kernel 2.6.

> regards
> Arun

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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


[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