Re: [BUG] module-init-tools 0.9.3, rmmod modules with '-'

Rusty Russell (rusty@rustcorp.com.au)
Thu, 19 Dec 2002 11:39:24 +1100


In message <Pine.LNX.4.44.0212181144120.21707-100000@chaos.physics.uiowa.edu> y
ou write:
> On Wed, 18 Dec 2002, Rusty Russell wrote:
> > 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)

And then you're independent of changes in the build system, too. I
like it.

Thanks for the tip!
Rusty.

--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
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/