Thanks Bruce, > -----Original Message----- > From: Bruce Ashfield <bruce.ashfi...@gmail.com> > Sent: Wednesday, July 19, 2023 7:44 PM > To: Petr Gotthard <petr.gotth...@advantech.cz> > Cc: openembedded-core@lists.openembedded.org > Subject: Re: [OE-core] make-mod-scripts doesn't know KERNEL_LOCALVERSION > > Hmm. > > I explicitly tested this scenario to make sure it worked, since you run into > the > same issue when building modules on-target. > > make-mod-scripts is running out of the same SCM as the main kernel build, so > it > should match, and did in my testing (otherwise lttng-modules wouldn't work). > > Can you send the exact steps, which kernel recipe you are using, etc. > That way I can reproduce the problem locally. >
I am using an AM335x with meta-ti (latest master). I think that the "beaglebone" might be close enough. I did not set any kernel versions explicitly. The KERNEL_LOCALVERSION is set by the meta-ti itself in their setup-defconfig.inc: https://git.yoctoproject.org/meta-ti/tree/meta-ti-bsp/recipes-kernel/linux/setup-defconfig.inc The kernel is "linux-ti-staging_6.1" with quite standard settings. Recently I did explicitly set CONFIG_LOCALVERSION_AUTO=n which was "y" by default. With the default "y" setting I was getting a kernel version with two identical suffixes ("6.1.33-g8f7f371be2-g8f7f371be2", whereas the make-mod-scripts used "6.1.33-g8f7f371be2"). The out-of-tree modules I am building are using recipes almost identical to the "poky/meta-skeleton/recipes-kernel/hello-mod". Again, no kernel version specified. I tried to build the lttng-modules and see the same issue: "modinfo lttng-clock.ko" returns filename: /home/...-linux-gnueabi/lttng-modules/2.13.9-r0/packages-split/kernel-module-lttng-clock-6.1.33-g8f7f371be2/lib/modules/6.1.33-g8f7f371be2/kernel/lttng-modules/lttng-clock.ko vermagic: 6.1.33 SMP mod_unload ARMv7 p2v8 which indicates the vermagic (without the -gxxxx sufix) is different to the kernel version (with the sufix). Petr
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#184606): https://lists.openembedded.org/g/openembedded-core/message/184606 Mute This Topic: https://lists.openembedded.org/mt/100240236/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-