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

Re: compiling 2.6 kernel module



> 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

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/