]> code.ossystems Code Review - openembedded-core.git/commit
kernel: Fix non linux-yocto builds
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 19 Dec 2014 17:46:27 +0000 (17:46 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 21 Dec 2014 12:37:18 +0000 (12:37 +0000)
commit106dab2fd0321e6b4e77b40111e59a3a31d329d4
treefd2ac406a5a011eacbad67ef77c86997b0a8323e
parent17fb28156737e803b36d7b3fd59d092fe152d126
kernel: Fix non linux-yocto builds

After the recent kernel changes, non linux-yocto builds stopped working
properly for two reasons:

a) ${S} was being reset to ${WORKDIR}/git for example and STAGING_KERNEL_DIR
   did not contain the source

b) Most builds were using ${B} == ${S}

This patch adds a fixup to the unpack function to handle the case where
${S} != ${STAGING_KERNEL_DIR} and also set up the infrastrcture so that
B != S for kernel builds from now on. The kernel build system is one of the
best for supporting this and there is no good reason not to take advantage
of it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass