Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to compile kernel 4.20 and produce binary packages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
segma1900
n00b
n00b


Joined: 13 Jan 2019
Posts: 1

PostPosted: Sun Jan 13, 2019 9:20 am    Post subject: how to compile kernel 4.20 and produce binary packages Reply with quote

hi all
i am new to Gentoo and i need to compile kernel 4.20 on it and produce binary packages to be used later on.
i do that on other rpm based distors using make rpm-pkg -j 8
what is the binary package of Gentoo? and how to produce them while compiling the kernel?

My Regards
Back to top
View user's profile Send private message
geki
Advocate
Advocate


Joined: 13 May 2004
Posts: 2324
Location: Germania

PostPosted: Sun Jan 13, 2019 9:57 am    Post subject: Reply with quote

Hi segma, following infos may be of interest.

I use these scripts to compile my kernel and build a binary package: https://github.com/geki-yaba/gekis-salt-seed/tree/master/root

If you want to know more about binary packaging in gentoo, you may read my guide to managing multiple gentoo systems: https://forums.gentoo.org/viewtopic-t-1036130-highlight-.html
_________________
boost|select libs to build|slotable|python-buildid

hear hear
Back to top
View user's profile Send private message
xdarma
l33t
l33t


Joined: 08 Dec 2003
Posts: 683
Location: tra veneto e friuli (italy)

PostPosted: Sun Jan 13, 2019 2:14 pm    Post subject: Reply with quote

Or, genkernel has three options for building packages:
genkernel man page:

       --minkernpackage=<tbz2>
           File to output a .tar.bz2’d kernel and initrd: no modules outside of the initrd will be included...

       --modulespackage=<tbz2>
           File to output a .tar.bz2’d modules after the callbacks have run

       --kerncache=<tbz2>
           File to output a .tar.bz2’d kernel, contents of /lib/modules/ and the kernel config. NOTE: This is created before the callbacks are run.

_________________
proud user of faKeDE-4.7.3
Back to top
View user's profile Send private message
russellD
n00b
n00b


Joined: 07 Oct 2014
Posts: 22
Location: 28.5797S,153.338 E

PostPosted: Wed Feb 06, 2019 10:46 pm    Post subject: Reply with quote

xdarma wrote:
Or, genkernel has three options for building packages:
genkernel man page:

       --minkernpackage=<tbz2>
           File to output a .tar.bz2’d kernel and initrd: no modules outside of the initrd will be included...

       --modulespackage=<tbz2>
           File to output a .tar.bz2’d modules after the callbacks have run

       --kerncache=<tbz2>
           File to output a .tar.bz2’d kernel, contents of /lib/modules/ and the kernel config. NOTE: This is created before the callbacks are run.


handy tip for building a fresh kernel!

What about for already built kernels?
Is there a way to package a kernel with out having to recompile the kernel, the modules and initramfs again?

edit:
found that this works a treat on already built kernels with source tree and objects with out recompiling
(for kernel 4.20.6)
Code:
genkernel --no-clean --no-install --kerncache=kernel-4.20.6-gentoo.tar.bz2 all

then I made a directory as in /usr/portage/packages/kernel
and moved it there.

- cheers r
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum