]> code.ossystems Code Review - openembedded-core.git/commit
kernel-yocto: checkout known branch before leaving do_validate_branches
authorBruce Ashfield <bruce.ashfield@windriver.com>
Thu, 29 Nov 2012 18:42:22 +0000 (13:42 -0500)
committerRoss Burton <ross.burton@intel.com>
Wed, 5 Dec 2012 15:11:09 +0000 (15:11 +0000)
commit36f4e23d037dae758cd42189f2ab00f22a1cd723
tree8a60c01ce47c097b5b4b0edba7ae5321fbc57490
parent29f37af146b50fa39021884ef97bca9711ee924b
kernel-yocto: checkout known branch before leaving do_validate_branches

We should always leave the tree on a BSP branch or master when
do_validate_branches completes to avoid modifying version tracked
files are part of the build process. Modifying these files will lead
to errors when changing branches, since the contents would be lost.

This is evident in the case that a the meta branch is reset to a
known SRCREV and the tree was left on the meta branch. This branch
tracks the meta/meta-series, and other artifacts of the original
tree construction. When the build process runs, it updates these same
files, which creates a conflict when switching branches.

This has been fixed in the tree construction scripts to not track
these files, but a secondary fix is also required of not leaving
the build on these branches, to allow arbitrary trees to be built.

[YOCTO #3413]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-yocto.bbclass