On Wed, Nov 27, 2024 at 4:29 AM Christian Gudrian via lists.yoctoproject.org <cgu=ivu...@lists.yoctoproject.org> wrote:
> Hello! > > Kernel modules depend on a specific version of the kernel package that > includes the Git commit hash of the kernel source tree at compile time > (KERNEL_VERSION). When using a patched kernel source this Git commit hash > changes each time the patches get applied, making each kernel binary > effectively unique. This KERNEL_VERSION, however, is not part of the shared > state hash signature, as for this purpose it gets replaced by the plain > LINUX_VERSION. > > Building out-of-tree kernel modules depend on a locally compiled kernel. > Doing this in a clean working directory leads to a freshly patched kernel > source which in turn results in a new KERNEL_VERSION. The out-of-tree > kernel module then RDEPENDS on a kernel package with this new > KERNEL_VERSION. As the shared state signature of the newly compiled kernel > matches the existing one (the LINUX_VERSION hasn't changed) the new kernel > is not packaged and doesn't end up in the package feed. > > Consequently installation of the out-of-tree kernel module fails as the > required kernel package is not available. > > I have tried to make the packages aware of the specific KERNEL_VERSION. > But as this variable gets re-assigned during parsing I get unstable > basehash values. > > Another approach would be to apply the patches in the upstream repository > to circumvent the need for local patching. > > Is there an easier way? > See my reply to Enrico's follow up. This is something we are aware of, and it is a travelled and tested path (which doesn't mean it can't be improved, but just that it is a known "thing"). Bruce > Christian > > > > -- - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#64368): https://lists.yoctoproject.org/g/yocto/message/64368 Mute This Topic: https://lists.yoctoproject.org/mt/109804058/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-