Presuming that is correct, what I was wanting to achieve is having modules built and installed in the appropriate directory based on LOCALVERSION so that a working version could co-exist with testing and potentially broken versions, such as /lib/modules/6.6.101-gentoo and /lib/modules/6.6.101-gentoo-c1.
For /boot files, I have a custom installkernel script which receives the appended LOCALVERSION (-c1 here):
Code: Select all
$ ls -1 linux-6.6.101-gentoo/install.path/boot/*-c1
linux-6.6.101-gentoo/install.path/boot/System.map-6.6.101-gentoo-c1
linux-6.6.101-gentoo/install.path/boot/config-6.6.101-gentoo-c1
linux-6.6.101-gentoo/install.path/boot/vmlinuz-6.6.101-gentoo-c1Code: Select all
$ ls -1 linux-6.6.101-gentoo/install.path/lib/modules/
6.6.101-gentooDocumentation/kbuild/modules.rst under 5. Module Installation states: Modules which are included in the kernel are installed in the directory: /lib/modules/$(KERNELRELEASE)/kernel/, seemingly excluding LOCALVERSION. I see no other references to modifying the path (only adding a prefix) or to LOCALVERSION.
That would seem to make LOCALVERSION minimally useful as it would still require manual or custom means to manage build and final destinations for /lib/modules/<LOCALVERSION> files.
Am I mistaken? Is there a better approach?


