On 04/06/2024 14:37, Zoran wrote:
Hello Yocto Community,I am trying to understand how to handle (beside linux-stable) another pre-released stream of kernels, handled ONLY by Linus. I called it linux-torvalds. Whatever I tried last week does NOT work for me. Let me start describing the problem. This is the kernel recipe I am using in my meta-bbb layer, experimentally. Here is the pointer for kernel recipe 6.10-rc1 (on the net still visible from github): https://github.com/ZoranStojsavljevic/meta-bbb/blob/scarthgap/recipes-kernel/linux/ https://github.com/ZoranStojsavljevic/meta-bbb/blob/scarthgap/recipes-kernel/linux/linux-torvalds_6.10.bb Not sure from where the variable ${SRCPV} comes from (from .../poky/meta/...)? The .../build/conf/local.conf is NOT visible from the net, but in nutshell, here is what I have in it (important): ## Define kernel version ## SRCPV = "${@bb.fetch2.get_srcrev(d)} <<<======= Commented out - just to remind me about this mysterious variable ## PREFERRED_PROVIDER_virtual/kernel ?= "meta-bbb" ## PREFERRED_VERSION_meta-bbb ?= "6.1.%" PREFERRED_PROVIDER_virtual/kernel = "linux-torvalds" PREFERRED_VERSION_meta-bbb ?= "6.10.%"
The pattern here is PREFERRED_VERSION_<recipe name>. So if your recipe is named linux-torvalds, you want: PREFERRED_VERSION_linux-torvalds ?= "6.10.%"As an alternative to maintaining such a recipe yourself, I recommend you look at the following:
- The linux-yocto-dev recipe in openembedded-core/poky. This is the mainline kernel plus some Yocto-specific patches and is regularly updated by Bruce (linux-yocto maintainer).
- The linux-mainline recipe in my meta-linux-mainline layer. This is the mainline kernel with no additional patches and is regularly updated by me. See https://github.com/betafive/meta-linux-mainline for more info on this layer.
Thanks, -- Paul Barker
OpenPGP_0x74975C81B7E66BAC.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#63279): https://lists.yoctoproject.org/g/yocto/message/63279 Mute This Topic: https://lists.yoctoproject.org/mt/106482424/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-