All of lore.kernel.org
 help / color / mirror / Atom feed
* building yocto image from git always switches branch
@ 2013-03-12 16:34 Volker Vogelhuber
  2013-03-15  9:02 ` Volker Vogelhuber
  0 siblings, 1 reply; 5+ messages in thread
From: Volker Vogelhuber @ 2013-03-12 16:34 UTC (permalink / raw)
  To: yocto

I currently try to create a kernel and rootfs image based on yocto 1.3.
I cloned the poky git repository and switched to danny branch.

For some reason during the bitbake run for creating the image the branch 
of my local git repository is always switched to master, which of course 
won't match with the other layers I checked out for danny.

Currently I do the following:

#!/bin/bash

if [ ! -e poky ]; then
   git clone git://git.yoctoproject.org/poky.git
   cd poky
   git checkout -b danny remotes/origin/danny
   cd ..
fi
if [ ! -e poky/meta-ti ]; then
   git clone -b danny git://git.yoctoproject.org/meta-ti poky/meta-ti
fi

After the checkout I copy some configuration files to the build/conf 
directory within the poky directory (bblayers.conf, local.conf) and an 
additional layer for our specific hardware module.

When I change to the build directory and start building the image using 
bitbake, there seems to be a git call somewhere in the recipes that 
switches the branch of the poky git checkout back to master. Of course 
that results in a total misbehaviour of the build process, as the 
underlaying recipes changes during the build.

Can someone explain that behaviour? Is that a bug or is there something 
I'm doing wrong.

Kind regards,
     Volker


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-15 16:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-12 16:34 building yocto image from git always switches branch Volker Vogelhuber
2013-03-15  9:02 ` Volker Vogelhuber
2013-03-15 14:34   ` Bruce Ashfield
2013-03-15 15:04     ` Volker Vogelhuber
2013-03-15 16:00       ` Bruce Ashfield

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.