All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Joshua Watt" <JPEWhacker@gmail.com>
To: Bruce Ashfield <bruce.ashfield@gmail.com>
Cc: "Robert Berger@yocto.user" <robert.berger.yocto.user@gmail.com>,
	docs@lists.yoctoproject.org,  Paul Barker <pbarker@konsulko.com>
Subject: Re: [docs][PATCH] kernel-dev: Add FAQ for how to use a vanilla kernel
Date: Tue, 20 Oct 2020 16:34:52 -0500	[thread overview]
Message-ID: <CAJdd5GaXgjV8JFjh82mAbO_==m6Sgg0L-=iGTpKMn_93s38Wyg@mail.gmail.com> (raw)
In-Reply-To: <CADkTA4N+dJv_QqtEiJBxdcZXE5SxkDjDJF-+4Sz6n4+wVDYRKw@mail.gmail.com>

On Tue, Oct 20, 2020 at 4:14 PM Bruce Ashfield <bruce.ashfield@gmail.com> wrote:
>
> On Tue, Oct 20, 2020 at 5:05 PM Robert Berger@yocto.user
> <robert.berger.yocto.user@gmail.com> wrote:
> >
> > Hi,
> >
> > On 20/10/2020 21:14, Joshua Watt wrote:
> > > On Tue, Oct 20, 2020 at 12:03 PM Joshua Watt <jpewhacker@gmail.com> wrote:
> > >> +.. note::
> > >> +    You will notice that this is will still pull the kernel source from `the
> > >> +    Yocto Kernel git repo
> > >> +    <https://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto/>`_, however it is
> > >> +    using the default value for :term:`KBRANCH` (e.g. ``"v5.8/standard/base"``)
> > >> +    which is an exact mirror of the upstream kernel.
> > >
> > > This is a lie. I thought it was the upstream mirror, but it's not.
> > > v5.8/base is the mirror and this one has a few extra patches.
> > >
> >
> > And exactly because only Bruce knows (most of the time) what is in all
> > those funny branches why not use upstream (kernel.org) for a vanilla kernel?
> >
>
> We are documented how the single linux-yocto repository can be used to
> track tip (master), or any of the -stable upstream kernels
> (<version>/base), or the yocto specifics (<version>/standard/base),
> without needing to create 'x' recipes to do it. It is just a branch
> switch away.
>
> Someone can always use upstream in their own kernel recipe, we are
> just using this doc to describe what's in oe-core itself.

There is a lot at play here; IMHO, using the branches Bruce maintains
is actually the best option (if you can use it) because those branches
are tested; I assume he's not making changes and diverging from
upstream for the fun of it; the changes fix actual bugs. For example,
I converted meta-rockchip to use the standard/base branches, and
really haven't had to worry about it since; I have pretty high
confidence those are going to continue to just work. meta-rockchip
gets to freeload off of Bruce's hard work to upgrade the kernel and
stays relatively up-to-date without much effort on my part :)

OOTH, I get that people really just want to use the vanilla kernel
(even though they probably *also* want the changes Bruce made), and it
certainly "feels" like a better story if we can do that. As Bruce
pointed out, you can do that by setting KBRANCH to the <version>/base
branch. I think the part that's missing there is that you also have to
set SRCREV to a SHA1 on the branch, probably with some strange
override? Maybe `SRCREV_machine_pn-linux-yocto = "..."` ? And, if you
do that, I think the other problem is that `LINUX_VERSION` will then
be wrong, so you might need to override that also. This also means
that you don't get the latest versions "automatically" since you have
to manually bump the SRCREV. In general it seems really easy for the
linux-yocto recipes to get out of sync with your settings and cause
confusion. We could maybe figure out a way to have a SRCREV for the
upstream branch in the linux-yocto recipes, but it's weird and
problematic to have a SRCREV pointing to something that's not tested
(back the the point of why we have the "standard" branches in the
first place, they are tested and work).

>
> Bruce
>
> > Regards,
> >
> > Robert
>
>
>
> --
> - Thou shalt not follow the NULL pointer, for chaos and madness await
> thee at its end
> - "Use the force Harry" - Gandalf, Star Trek II

  reply	other threads:[~2020-10-20 21:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-20 17:03 [docs][PATCH] kernel-dev: Add FAQ for how to use a vanilla kernel Joshua Watt
2020-10-20 18:14 ` Joshua Watt
2020-10-20 21:05   ` Robert Berger
2020-10-20 21:14     ` Bruce Ashfield
2020-10-20 21:34       ` Joshua Watt [this message]
2020-10-20 22:09       ` akuster
2020-10-20 22:04   ` akuster
2020-10-20 18:45 ` Quentin Schulz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJdd5GaXgjV8JFjh82mAbO_==m6Sgg0L-=iGTpKMn_93s38Wyg@mail.gmail.com' \
    --to=jpewhacker@gmail.com \
    --cc=bruce.ashfield@gmail.com \
    --cc=docs@lists.yoctoproject.org \
    --cc=pbarker@konsulko.com \
    --cc=robert.berger.yocto.user@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.