]> code.ossystems Code Review - openembedded-core.git/commit
kernel: move source and build output to work-shared
authorBruce Ashfield <bruce.ashfield@windriver.com>
Thu, 15 Jan 2015 11:54:15 +0000 (11:54 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 16 Jan 2015 09:13:02 +0000 (09:13 +0000)
commit6a1ff0e7eacef595738f2fed086986fd622ec32a
treeb080bad4d9d56d1ea96e3784b0e02b5040dd1037
parent78226efe72c8221206594c70fa1d8742d4097af1
kernel: move source and build output to work-shared

commit 3b3f7e785e279 [kernel: Rearrange for 1.8] began the process of
moving the kernel source and build artefacts out of sstate control and
into a shared location.

This changed triggered some workflow issues, as well as bugs related
to the kernel source containing build output, and hence being dirty and
breaking kernel rebuilds.

To solve these issues, and to make it clear that the kernel is not under
sstate control, we move the source and build outputs to:

  work-shared/MACHINE/kernel-source
  work-shared/MACHINE/kernel-build-artifacts

Where kernel-build-artifacts is the kernel build output and
kernel-source is kept "pristine". The build-artifacts contain everything
that is required to build external modules against the kernel source,
and includes the defconfig, the kernel-abiversion, System.map files and
output from "make scripts".

External module builds should either pass O= on the command line, or
set KBUILD_OUTPUT to point to the build-artifacts. module-base.bbclass
takes care of setting KBUILD_OUTPUT, so most existing external module
recipes are transparently adapted to the new source/build layout.

recipes that depend on the kernel source must have a depedency on the
do_shared_workdir task:

 do_configure[depends] += "virtual/kernel:do_shared_workdir"

With this dependency added, the STAGING_KERNEL_DIR will be populated and
available to the rest of the build.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-module-split.bbclass
meta/classes/kernel.bbclass
meta/classes/module-base.bbclass
meta/classes/module.bbclass
meta/conf/bitbake.conf
meta/recipes-kernel/linux/kernel-devsrc.bb
meta/recipes-kernel/lttng/lttng-modules_2.5.2.bb
meta/recipes-kernel/perf/perf.bb