[ltp] undervolt: speedstep-centrino as module

Marcus Obst linux-thinkpad@linux-thinkpad.org
Mon, 10 Apr 2006 22:00:42 +0200


On Mon, Apr 10, 2006 at 09:45:26PM +0200, Marcus Obst wrote:
> On Mon, Apr 10, 2006 at 07:49:24PM +0100, Damien Challet wrote:
> 
> > Now assume that I have installed a binary kernel, and the source. I do not 
> > want to compile all the modules. What are the explicit line commands for 
> > 
> >  CC [M]  arch/i386/kernel/cpu/cpufreq/speedstep-centrino.o
> > 
> > and 
> > 
> >  LD [M]  arch/i386/kernel/cpu/cpufreq/speedstep-centrino.ko ?
> > 
> > Is it possible at all?
> 
> Did you try
> 
>     $ make arch/i386/kernel/cpu/cpufreq/speedstep-centrino.ko
> 
> For me it worked, too.  But I am not sure if it would work on a clean
> source tree.  At least you should have your current .config and done a
> make (menu|)config run.

Okay, this would not work on a clean tree, but the following does... :)

    $ cd /usr/src/linux
    $ make clean
    $ cp ... .config        # copy your current config
    $ make menuconfig
    $ cd arch/i386/kernel/cpu/cpufreq
    $ make -C /usr/src/linux M=$(pwd)

This will just compile the modules in cpufreq directory and if you only
changed speedstep-centrino.c, then just this...

    Best regards!
    Marcus