Hello Paul,

Many Thanks (not entirely politically correct English language), I
guess it was one of the errors:
PREFERRED_VERSION_linux-torvalds ?= "6.10.%"

I swapped "torvalds" with "mainline", as U did.

But the one I've bumped to is the one I just noticed at the end of
writing the original email:

https://github.com/ZoranStojsavljevic/meta-bbb/blob/scarthgap/conf/machine/beaglebone.conf

5 SOC_FAMILY = "ti335x"
 6 TARGET_ARCH = "arm"
 7
 8 DEFAULTTUNE ?= "cortexa8hf-neon-"
 9
10 require conf/machine/include/soc-famil
y.inc
11 require conf/machine/include/arm/armv7a/tune-cortexa8.inc
12

=======>>> 13 PREFERRED_PROVIDER_virtual/kernel = "linux-stable" <<<=======

14 #PREFERRED_PROVIDER_virtual/kernel = "ti-linux"
15 KERNEL_IMAGETYPE = "zImage"
16
17 PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
_______

Anyway, Ur @ somehow prompted me to start moving after 3 days og
banging my head off the Chinese wall...

I did fix the mainline kernel recipe, in some clumsy way, but for now
I have @ least a working version (or I think I have, since now I am
compiling kernel 6.10-rc2, I need to wait till the end of the process)
!

U did organize the whole mainline thing in a very structured way, my
mainline 6.10-rc2 .bb recipe is a complete mess

At least it does work (with sticks and ropes)! :-)))

Very soon I will release this recipe in my meta-bbb/ layer, inherited
from Scott Ellis. Scott kept in there machine/
.../meta-bbb/conf/machine/ directory, U did not.

Implementation detail! ;-)

Later... YOCTO Folks!

Zee
_______

On Tue, Jun 4, 2024 at 4:43 PM Paul Barker <p...@pbarker.dev> wrote:
>
> 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
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63283): https://lists.yoctoproject.org/g/yocto/message/63283
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]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to