kernel-yocto: allow building from fetcher source dir
authorBruce Ashfield <bruce.ashfield@windriver.com>
Wed, 6 Feb 2013 05:17:46 +0000 (00:17 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Mar 2013 13:03:28 +0000 (13:03 +0000)
commit37684750c400c9d1363ca4f5a503b2b234a9b8b5
tree8fff7bb0849e2862f410ea4ea01adfed62a2fff7
parentce6e91ccabea754c0178e8eb4a8170ca23620178
kernel-yocto: allow building from fetcher source dir

The linux-yocto recipes themselves always set S="${WORKDIR}/linux" and
arrange for the fetcher default of ${WORKDIR}/git to be renamed before
building.

Part of this rename involves an assumption that the directory used by
the fetcher can be removed as part of the renaming process, or in fact
that renaming is required.

If a derived recipe uses S="${WORKDIR}/git", the checkout phase fails
since the kernel source is removed as part of the processing.

To fix this the code now detects this situation and does not clean the
source directory before renaming the fetcher default (and in fact does
not rename it at all).

(From OE-Core rev: e4ab5efea1a41297f63c96de97270136535b5f0b)

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