From: "Mikko Rapeli" <mikko.rapeli@bmw.de>
To: <cbing@cybernetics.com>
Cc: <yocto@lists.yoctoproject.org>
Subject: Re: [yocto] Updating Yocto
Date: Tue, 23 Feb 2021 12:58:15 +0000 [thread overview]
Message-ID: <YDT75mK/tmGXsl+z@korppu> (raw)
In-Reply-To: <60430e1e-0c5d-9cc4-5496-a6f4152ec976@cybernetics.com>
Hi,
On Mon, Feb 22, 2021 at 12:12:21PM -0500, Claude Bing wrote:
> Hello all. My organization has been working with Yocto recently, and we
> have noticed that there are often weird errors encountered after
> updating revisions within a release branch (e.g., 3.1.3 -> 3.1.5). Is
> there an accepted process to merging in upstream changes? Here is a
> distillation of our workflow:
>
> * Yocto releases 3.1.0 / dunfell
>
> * Create a local tracking branch for the Yocto release
> "sample-yocto-dunfell" based on upstream 3.1.0 tag / dunfell branch.
> This is necessary because some of our local tooling is located in the
> top level directory and it is a pain to copy the files each time.
>
> * Create firmware with Yocto
>
> * Yocto releases 3.1.x
>
> * Merge upstream yocto-3.1.x tag into local tracking branch
>
> * Create firmware with Yocto
>
> Sometimes, after this last step, we encounter problems where patches
> cannot be applied, or files cannot be found when bitbake tries to build
> the recipes. We have tried deleting build/{tmp,sstate-cache} whenever we
> merge upstream changes, but random errors still persist. For each of
> these packages, if we run "bitbake -c cleanall", the error goes away.
When both yocto update and your own changes are modifying the same recipes,
then conflicts can occur.
> Most of the time, these recipes have not been extended in our project,
> so they are purely meta-oe / meta packages.
If builds are failing, then your environment is breaking something.
It might even be the BSP layers that you use.
> Are we doing something wrong, or is there a more acceptable way to
> handle updates?
>
> How tightly should meta-openembedded be tied to the core Yocto release?
I update all open source meta layers for every run of the update and also resolve
any issues by digging into details why the failure happened. I've done dunfell
updates with several BSP layers for multiple arm64 SoC's and have not seen
major issues.
What is useful and one of the best practices, is to clear the bitbake tmp
directory in between builds. Depending on details, there can be some cruft there
which fails when rebuilding.
Cheers,
-Mikko
next prev parent reply other threads:[~2021-02-23 12:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-22 17:12 Updating Yocto Claude Bing
2021-02-23 12:58 ` Mikko Rapeli [this message]
2021-02-23 14:24 ` [yocto] " Claude Bing
2021-02-23 14:37 ` Mikko Rapeli
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=YDT75mK/tmGXsl+z@korppu \
--to=mikko.rapeli@bmw.de \
--cc=cbing@cybernetics.com \
--cc=yocto@lists.yoctoproject.org \
/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.