Re: Building multi-file modules

2013-05-07 Thread Yuva Raj
Hi Stephens, Try this below one. obj-$(CONFIG_FOO) += foo.o foo-y := bar.o baz.o This compiles module foo.ko from the foo.c , bar,c baz.c Refer this for more information on Kbuild. https://www.kernel.org/doc/Documentation/kbuild/modules.txt Regards, Yuva On Tue, Apr 30, 2013 at 1:48 AM, A

Building multi-file modules

2013-04-29 Thread Arlie Stephens
Hi Folks, I've got a module, call it foo, presently built from a single source file, drivers/char/foo.c It's gotten enormous, so I want to split it. Ideally I'd keep the original name for one of the source files. So what I want is a module named foo, build from source files foo.c, bar.c and baz.c