How to use SAKC or any other method to compile _only_ _one_ kernel module

I would like to use the p4_clockmod kernel module to scale the cpu frequency on an old pentium 4. But it is not compiled neither in the kernel nor in the modules.
I use opensuse 12.2.
(i asked this question for 11.4, but, no answers : https://forums.opensuse.org/english/get-technical-help-here/hardware/459159-compile-install-only-one-module-p4_clockmod.html )
I read about SAKC, but i understood that one needs to download all the kernel sources, customize it to SUSE and then compile it and install it.
Can’t i just use the kernel sources that are installed with the kernel-source rpm package ? How should i proceed then ?
Or isn’t there another method that doesn’t require to compile all the kernel ? Nor all the modules ?
I just need one module.
I am looking for a smart solution. No heavy many-hours-compilation.

A quick check of a recent kernel config files finds that this still exist as:

CONFIG_X86_P4_CLOCKMOD is not set

But must be changed to

CONFIG_X86_P4_CLOCKMOD=y

You then elect to use the modified kernel config. SAKC can do this, but a config_sav file does not yet exist until you have already compiled a kernel. In SAKC, you can modify the selected config and search on the “CONFIG_X86_P4_CLOCKMOD” setting, but it may not have the same exact name. I see that kernel 3.8.3 is out and you could download it and compile it using the kernel config GUI that is offered to you and search for and activate the “CONFIG_X86_P4_CLOCKMOD” setting. If you can not locate it, you can allow the compile to complete, and go back in again, but this time select the kernel config selection menu. Select the config_sav file just created, search on “CONFIG_X86_P4_CLOCKMOD” and change it to =y and allow the kernel to be compiled again. You then reboot using the new kernel with the new setting. You can find SAKC here: S.A.K.C. - SUSE Automated Kernel Compiler - Version 2.60 - Blogs - openSUSE Forums

Thank You,

OK, thanks jdmcdaniel, but i succeeded without sakc.

It took me a while to put the correct option at the right place but i did this
cd /usr/src/linux
make xconfig -> select p4_clockmod as a module
make scripts && make prepare
cd drivers/cpufreq
make -C /usr/src/linux M=$(pwd)
make -C /usr/src/linux M=$(pwd) modules_install
depmod -a
modprobe -f p4_clockmod

It’s a bit quick and dirty but it works.

What ever works as they say. You can still use SAKC to automate the compiling of any kernel, outside of installing it with YaST. Any module setting that exists in your present kernel configuration will be preserved. Good luck in what ever you decide to do.

Thank You,

What is strange, yet, is that the compiled modules go in a new directory called extra and they have to be loaded with the -f option, which is quite annoying…

Its why I think if you compile the kernel with this option set as I mention in my first response, it will be loaded automatically in that PC using the modified kernel configuration (and compiled kernel).

Thank You,