How to let the “ld” link an existing object file when building externel driver module?

Submitted by yangminhe
on December 16, 2004 - 4:51am

When build my driver under kernel 2.6.9.

How to let the “ld” link an existing file?

My makefile:

Obj-m := module.o

Module-objs := a.o b.o c.o

#c.o is an exist object file.

Default:

$(MAKE) -C $(KERNEL_SOURCE) SUBDIRS=$(PWD) modules

But the make do not know the c.o is existed and it request c.s.

Thanks

prop code?

Anonymous (not verified)
on
December 16, 2004 - 8:30am

Let me guess. c.o is something like a prop. piece of code? Yes? Then you should look at the nvidia's drivers for linux...

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.