* [gentoo-user] genkernel compile only one new module
@ 2012-11-08 17:55 "ifj. Stefán István"
2012-11-08 18:02 ` Bruce Hill
2012-11-08 18:57 ` Mark David Dumlao
0 siblings, 2 replies; 4+ messages in thread
From: "ifj. Stefán István" @ 2012-11-08 17:55 UTC (permalink / raw
To: gentoo-user
Hello!
I have a quite good kernel, but today I realised that I need a kernel
module that hadn't been compiled before.
Is there any way to compile only that new module, and not compiling the
whole kernel and all of the modules again?
Thanks,
István
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] genkernel compile only one new module
2012-11-08 17:55 [gentoo-user] genkernel compile only one new module "ifj. Stefán István"
@ 2012-11-08 18:02 ` Bruce Hill
2012-11-08 18:29 ` mindrunner
2012-11-08 18:57 ` Mark David Dumlao
1 sibling, 1 reply; 4+ messages in thread
From: Bruce Hill @ 2012-11-08 18:02 UTC (permalink / raw
To: gentoo-user
On Thu, Nov 08, 2012 at 06:55:31PM +0100, "ifj. Stefán István" wrote:
> Hello!
>
> I have a quite good kernel, but today I realised that I need a kernel
> module that hadn't been compiled before.
> Is there any way to compile only that new module, and not compiling the
> whole kernel and all of the modules again?
>
> Thanks,
> István
make nconfig (or menuconfig or whatever-config)
select M for the module
exit and save
make && make modules_install
will put the module into /lib/modules/`uname -r`/build/
then you can "modprobe <symbol for module>"
and it will be in use.
You should go ahead and install that new kernel and edit your bootloader as
needed.
Bruce
--
Happy Penguin Computers >')
126 Fenco Drive ( \
Tupelo, MS 38801 ^^
support@happypenguincomputers.com
662-269-2706 662-205-6424
http://happypenguincomputers.com/
Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] genkernel compile only one new module
2012-11-08 18:02 ` Bruce Hill
@ 2012-11-08 18:29 ` mindrunner
0 siblings, 0 replies; 4+ messages in thread
From: mindrunner @ 2012-11-08 18:29 UTC (permalink / raw
To: gentoo-user
Why exactly would you do this? Just because of saving time?
If you do not clean kernel dir, it will compile very fast.
On 11/08/2012 07:02 PM, Bruce Hill wrote:
> On Thu, Nov 08, 2012 at 06:55:31PM +0100, "ifj. Stefán István"
> wrote:
>> Hello!
>>
>> I have a quite good kernel, but today I realised that I need a
>> kernel module that hadn't been compiled before. Is there any way
>> to compile only that new module, and not compiling the whole
>> kernel and all of the modules again?
>>
>> Thanks, István
>
> make nconfig (or menuconfig or whatever-config) select M for the
> module exit and save make && make modules_install will put the
> module into /lib/modules/`uname -r`/build/ then you can "modprobe
> <symbol for module>" and it will be in use.
>
> You should go ahead and install that new kernel and edit your
> bootloader as needed.
>
> Bruce
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] genkernel compile only one new module
2012-11-08 17:55 [gentoo-user] genkernel compile only one new module "ifj. Stefán István"
2012-11-08 18:02 ` Bruce Hill
@ 2012-11-08 18:57 ` Mark David Dumlao
1 sibling, 0 replies; 4+ messages in thread
From: Mark David Dumlao @ 2012-11-08 18:57 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 721 bytes --]
make was specifically designed so that by default, it would only compile
things whose dependencies had changed since last run.
If your kernel config had not selected the object before, and all you do is
add it as a module, then when you rerun make, only that module should be
recompiled. However if you do built-in to module or vice versa, you're out
of luck.
On Nov 9, 2012 12:58 AM, ifj. Stefán István <istefan@stef.hu> wrote:
> Hello!
>
> I have a quite good kernel, but today I realised that I need a kernel
> module that hadn't been compiled before.
> Is there any way to compile only that new module, and not compiling the
> whole kernel and all of the modules again?
>
> Thanks,
> István
>
>
[-- Attachment #2: Type: text/html, Size: 961 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-11-08 18:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-08 17:55 [gentoo-user] genkernel compile only one new module "ifj. Stefán István"
2012-11-08 18:02 ` Bruce Hill
2012-11-08 18:29 ` mindrunner
2012-11-08 18:57 ` Mark David Dumlao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox