kernel-yocto: respect SRC_URI modified branch selection
authorBruce Ashfield <bruce.ashfield@windriver.com>
Mon, 28 Jan 2013 18:07:06 +0000 (13:07 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Mar 2013 13:03:27 +0000 (13:03 +0000)
commitce6e91ccabea754c0178e8eb4a8170ca23620178
treea41048a97aaa969113a019594f58787e9ffe1b67
parent9669a61f5b26630e949a2e62e60107ec26a8b05e
kernel-yocto: respect SRC_URI modified branch selection

Although the setting of KBRANCH is the suggested/primary way to interact with
the yocto kern-tools and the fetcher, some users may be more comfortable
modifying the SRC_URI branch parameter directly.

If they do, the tools will not force their branch and build output will be
different then they expect, in non obvious ways.

It's easy enough to detect this scenario, but checking the SRC_URI in the
same way that the git fetcher checks for the branch (and SRCREV). If we take
the value from the SRC_URI and use it directly in the patch/validate/update
routines, we'll stay consistent with KBRANCH if it is used, and also
automatically adapt to a manually changed branch parameter on the SRC_URI.

For all other users, there are no visible or behavioural changes as a result
of this change

(From OE-Core rev: cfce8643ed166b51d7178be173677ea6f527d453)

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