classes/base.bbclass: Locate the scm base path via BBPATH.
authorChris Larson <clarson@mvista.com>
Wed, 25 Feb 2009 23:05:41 +0000 (15:05 -0800)
committerChris Larson <clarson@kergoth.com>
Sun, 22 Mar 2009 03:06:31 +0000 (20:06 -0700)
commit65530068f30a5eea3db1b7da0e85d8e23d1dce00
tree3ee6edfbda3f04d2f9475c53b11381d1f6572406
parent515fc2744996506d8394f90dfe237175e51dc441
classes/base.bbclass: Locate the scm base path via BBPATH.

Currently, if the first item in BBFILES isn't in the main OE repository,
the build fails entirely due to a ValueError.  This isn't optimal.  Rather
than searching through BBFILES to find it, which could be slow when
BBFILES contains thousands of files, let's just find base.bbclass and use
that repository.

Also, use better methods to find the git revision and branch, and identify
the scm based on the existance of .svn/.git/_MTN to avoid calling out
subprocesses unnecessarily.

Signed-off-by: Chris Larson <clarson@mvista.com>
classes/base.bbclass