View previous topic :: View next topic |
Author |
Message |
equaeghe l33t
Joined: 22 Feb 2005 Posts: 637
|
Posted: Sat Mar 16, 2019 8:15 pm Post subject: [solved] modules for variants of same kernel version |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Sat Mar 16, 2019 8:35 pm Post subject: |
|
|
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 |
|
|
equaeghe l33t
Joined: 22 Feb 2005 Posts: 637
|
Posted: Sat Mar 16, 2019 9:51 pm Post subject: |
|
|
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 |
|
|
|