You should disable CONFIG_LOCALVERSION_AUTO in your defconfig
as it is not compatible with way how the new KERNEL_LOCALVERSION feature works.
It will double the version string at the end.

Peter

> -----Original Message-----
> From: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> On Behalf Of
> Tamás Soós via lists.yoctoproject.org
> Sent: Wednesday, November 13, 2024 21:09
> To: yocto@lists.yoctoproject.org
> Subject: [yocto] Kernel name is too long #poky #kirkstone
> 
> Hi,
> 
> I’m trying to build an image for a custom board. The build works fine with
> kirkstone-4.0.16, but it fails on 4.0.17. Here’s the output from the kernel 
> recipe:
> 
> |   HOSTCC  scripts/dtc/libfdt/fdt_empty_tree.o
> | "5.15.82-bsp-yocto-ampliphy-am335x-pd23.1.0-bsp-yocto-ampliphy-am335x-
> pd23.1.0" exceeds 64 characters
> | make: *** [/home/tamas/poky/build/tmp/work-shared/phyboard-regor-
> am335x-1/kernel-source/Makefile:1308: include/generated/utsrelease.h] Error 1
> | make: *** Waiting for unfinished jobs….
> 
> I saw the following fixes in the release notes that could be relevant:
> • kernel.bbclass: introduce KERNEL_LOCALVERSION
> • kernel: fix localversion in v6.3+
> • kernel: make LOCALVERSION consistent between recipes
> 
> I checked the config with menuconfig and saw the local version was set to 
> “-bsp-
> yocto-ampliphy-am335x-pd23.1.0”.
> On 4.0.16 it is also set to the same thing. This is a custom kernel recipe 
> that
> inherits kernel and kconfig.
> 
> This is as far as I’ve gotten. I couldn’t figure out how this local version 
> is set. I tried
> searching for it, but I found nothing suspicious.
> I also tried manually specifying KERNEL_LOCALVERSION in the kernel recipe, but
> nothing changed.
> 
> How could I figure out what is wrong with the custom kernel recipe?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64273): https://lists.yoctoproject.org/g/yocto/message/64273
Mute This Topic: https://lists.yoctoproject.org/mt/109561624/21656
Mute #poky:https://lists.yoctoproject.org/g/yocto/mutehashtag/poky
Mute #kirkstone:https://lists.yoctoproject.org/g/yocto/mutehashtag/kirkstone
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to