Re: compiling 2.6 kernel module

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

 



On Mon, 2005-05-02 at 22:00, arvind k wrote:
> > But I want something like this.
> > 
> > ----------------------------
> > #build a single module from .o files in the "obj"
> directory.
> > obj-m := complete.o
> > complete-objs := ../obj/test1.o ../obj/test2.o
> > 
> > #Build all needed object files recursively in to a
> single "obj"
> > directory
> > obj-m += ../test1/
> > obj-m += ../test2/
> > ---------------------------
> 
> obj-m += complete.o
> complete-objs := test1/test1.o test2/test2.o
> all:
>     make -C <KSOURCE> M=`pwd` modules
> 

Thanks. Is it not possible to generate complete.o using
individual makefiles in test/ and test2/ directories, and
invoking them from a common makefile?


> Not sure if this is the right thing to do. But it is
> working for me. 
> 
> - Arvind
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com
> 
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/


--
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