Re: Support for building individual .ko's would be nice :-)

From: Axel Weiss (aweiss_at_informatik.hu-berlin.de)
Date: 04/20/04

  • Next message: Pavel Machek: "Re: [RFC][PATCH 1/3] radix priority search tree - objrmap complexity fix"
    To: linux-kernel@vger.kernel.org
    Date:	Tue, 20 Apr 2004 21:57:52 +0200
    
    

    On Tuesday 20 April 2004 20:59, Pekka Pietikainen wrote:
    > I was told you're the man to bug about this :-)
    >
    > Having a slow box, a vendor kernel (+ kernel-source package with config
    > for it) and a need to modify one line of a module, recompile it,
    > replace existing module with it and continue business as usual
    > made me notice kbuild doesn't seem to have a facility for this.
    >
    > What would be nice is (say)
    >
    > cp configs/xxx-i686.config .config
    > emacs drivers/media/dvb/frontends/ves1820.c
    > make drivers/media/dvb/frontends/ves1820.ko

    Never tried before, but I would suggest to run
    make M=drivers/media/dvb/frontends
    at this place.

    > cp ves1820.ko /lib/modules/...
    save your old module first!

    > rmmod ves1820; modprobe ves1820
    rmmod ves1820
    lsmod # module unloaded?
    modprobe ves1820

    >
    > Or am I missing something obvious that let me get just that one .ko
    > without recompiling just about everything? (.o is easy, but that's
    > not very useful :-) )

    BTW: (asking the experts here) is it legal to hack a module like this??

    I'd prefer to compile the whole thing (over night)!

    Axel

    -
    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/


  • Next message: Pavel Machek: "Re: [RFC][PATCH 1/3] radix priority search tree - objrmap complexity fix"

    Relevant Pages

    • Re: Support for building individual .kos would be nice :-)
      ... > for it) and a need to modify one line of a module, recompile it, ... > replace existing module with it and continue business as usual ... If you leave the compiled tree intact, all you need to do is modify ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Support for building individual .kos would be nice :-)
      ... > for it) and a need to modify one line of a module, recompile it, ... > replace existing module with it and continue business as usual ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: .config question
      ... > to modify something and recompile the kernel. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.0-test8 and HIGMEM = segfaults and panics?
      ... I can recompile it and run it for a bit. ... What debug options would be ... > Kernel 2.6.0-test8. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATH] binutils-2.16.90.0.3 kernel-2.4.30 apm.c
      ... recompile with all kernel-options enabled. ... * October 1995, Rik Faith: ... * Minor enhancements and updates for 1.3.x ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)