Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] modules for variants of same kernel version
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
equaeghe
Guru
Guru


Joined: 22 Feb 2005
Posts: 472

PostPosted: Sat Mar 16, 2019 8:15 pm    Post subject: [solved] modules for variants of same kernel version Reply with quote

How can I create variants of the same compiled kernel where the different module sets are available in /lib/module?
Let me given an example. Suppose I build 4.19.27-gentoo-r1 with a certain configuration and install it in my /boot and its modules in /lib/modules/4.19.27-gentoo-r1.
Now suppose I want to test a variant, i.e., with a different configuration, call it 4.19.27-gentoo-r1-variant. How do I make sure /lib/modules/4.19.27-gentoo-r1-variant is created and found when booting that variant?


Last edited by equaeghe on Sat Mar 16, 2019 9:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43223
Location: 56N 3W

PostPosted: Sat Mar 16, 2019 8:35 pm    Post subject: Reply with quote

equaeghe,

As long as you don't want any out of tree kernel modules you can use
Code:
 > General setup ───────────────────────────────────────────────────────
  ┌──────────── Local version - append to kernel release ────────────┐
  │ CONFIG_LOCALVERSION:                                             │ 
  │                                                                  │ 
  │ Append an extra string to the end of your kernel version.        │ 
  │ This will show up when you type uname, for example.              │ 
  │ The string you set here will be appended after the contents of   │ 
  │ any files with a filename matching localversion* in your         │ 
  │ object and source tree, in that order.  Your total string can    │ 
  │ be a maximum of 64 characters.                                   │ 


Not all out of tree modules honour it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
equaeghe
Guru
Guru


Joined: 22 Feb 2005
Posts: 472

PostPosted: Sat Mar 16, 2019 9:51 pm    Post subject: Reply with quote

NeddySeagoon wrote:
equaeghe,

As long as you don't want any out of tree kernel modules you can use
Code:
CONFIG_LOCALVERSION


That is exactly what I wanted. Thanks!
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