![]() | |||||||||||||
Messages in this thread |
On Wed, 18 Dec 2002, Rusty Russell wrote: > In message <20021217114846.A30837@in.ibm.com> you write: > > On Tue, Dec 17, 2002 at 11:17:05AM +1100, Rusty Russell wrote: > > > > > > BTW, this was done for (1) simplicity, (2) so KBUILD_MODNAME can be > > > used to construct identifiers, and (3) so parameters when the module > > > is built-in have a consistent name.> > > > > Ok, I see it now, this magic happens in scripts/Makefile.lib. > > My module has been built outside the kernel build system, that's > > why I saw this problem.> > > > I guess avoiding '-' should do it, but is there a simple way to > > correctly build (simple, test) modules outside the kernel tree now? > > Has there ever been a simple way? Well, you can do cd my_module echo "obj-m := my_module.o" > Makefile vi my_module.c make -C <path/to/kernel/src> SUBDIRS=$PWD modules That's not too bad (and basically works for 2.4 as well) --Kai - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2005-03-22 12:31 [from the cache] ©2003-2008 | |||||||||||||