Patchwork [0/1] linux-yocto: improve checkout error handling and reporting

login
register
mail settings
Submitter Bruce Ashfield
Date Feb. 24, 2012, 1:58 a.m.
Message ID <cover.1330048310.git.bruce.ashfield@windriver.com>
Download mbox
Permalink /patch/21879/
State New
Headers show

Pull-request

git://git.pokylinux.org/poky-contrib zedd/kernel

Comments

Bruce Ashfield - Feb. 24, 2012, 1:58 a.m.
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(-)