Skip to content

linux-yocto: improve checkout error handling and reporting

Bruce Ashfield openembedded-core 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1linux-yocto: improve checkout error handling and reportingmeta/classes/kernel-yocto.bbclass+49 -230 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] linux-yocto: improve checkout error handling and reporting

Richard/Saul,

I've got a long description in the patch itself that gives most of the details of this change. But I'll hit some extra points here.

I've been cooking up this change for quite a while, since people seem to be working with local repositories and it is a common mistake to point at a non-bare linux-yocto repo. Due to the way the WORKDIR repo is created, this can cause some really cryptic build errors. This change addresses that issue and adds some workflow improvements at the same time.

- it can optionally work with the 'bareclone' option in a SRC_URI. I sent that patch to bitbake-devel today. This isn't required, but if it is used, a full bare clone is made in WORKDIR, and the checkout phase of linux-yocto detects that and creates local tracking branches for the remotes. Mixes of local and remote branches work perfectly here.

- it can also detect if a local, non-bare repository was the src repo. In this case, the tree is validated for the minimum branches that make the rest of the build viable, and if they aren't found a clear message is dumped about the missing branches. No cryptic errors from the build.

- instead of poking at git internals to create the local branches in WORKDIR. real tracking branches are created. With this, you now have the ability to work on your repository and push changes to your upstream, or fetch changes into the remotes and then bring them into your local branches. Everthing is setup properly for a more 'normal' development workflow.

I wanted to send this out before I send my -stable updates to the repos themselves.

Cheers,

Bruce

The following changes since commit d8b3718303c3d56394c722059f1a73bd79131d0a:

texi2html: Fix for multilib (2012-02-22 23:03:16 +0000)

are available in the git repository at:
git://git.pokylinux.org/poky-contrib zedd/kernel
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=zedd/kernel

Bruce Ashfield (1):
linux-yocto: improve checkout error handling and reporting

 meta/classes/kernel-yocto.bbclass |   72 +++++++++++++++++++++++++------------
 1 files changed, 49 insertions(+), 23 deletions(-)
Signature · 1 line
1.7.4.1