]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: Add cleandirs for do_shared_workdir
authorSaul Wold <sgw@linux.intel.com>
Mon, 27 Nov 2017 19:01:54 +0000 (11:01 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 9 Dec 2017 14:36:58 +0000 (14:36 +0000)
We add the kernel-build-artifacts to the cleandirs list to ensure
that there are no remaining artificats in the kernel-build-artifacts
directory which is STAGING_KERNEL_BUILDDIR. Without this change
multiple System.map files are visiable in the STAGING_KERNEL_BUILDDIR,
which could cause problems for some tools.

[YOCTO #11880]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/kernel.bbclass

index 756707a3c257de093fddaf9cc792d671e1e2e631..7ef4f47981cbfc8fc68c1e184e6716c16d5de103 100644 (file)
@@ -400,6 +400,7 @@ emit_depmod_pkgdata() {
 
 PACKAGEFUNCS += "emit_depmod_pkgdata"
 
+do_shared_workdir[cleandirs] += " ${STAGING_KERNEL_BUILDDIR}"
 do_shared_workdir () {
        cd ${B}