Skip to contentSkip to conversation

Kernel name is too long #poky #kirkstone

DISCUSSION Tamás Soós 2 participants 2 messages Nov 13, 2024

lore
Share & tools
lore
#0 lore raw

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?

#1 lore raw

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

Quoted 35 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Tamás Soós via lists.yoctoproject.org
Sent: Wednesday, November 13, 2024 21:09
To: [email protected]
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?