]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel: Clean ${S} before unpack
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Dec 2014 11:41:58 +0000 (11:41 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 20 Dec 2014 11:24:04 +0000 (11:24 +0000)
Currently unpack just forces sources over the current files. This change
ensures ${S} is cleaned out before sources are unpacked. This resolves
issues seen when upgrading to the new kernel class changes.

Ultimately, this should probably move to base.bbclass but one step at a
time, this solves an immediate problem blocking the other patches from
merging.

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

index 6eb87acf0692fd4cc4ed8b6231a95d65c9359969..c9e1c363e8abdb3f6042367e0ae9f6a72cdb63ff 100644 (file)
@@ -5,6 +5,8 @@ DEPENDS += "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc kmod-na
 
 S = "${STAGING_DIR_TARGET}/${KERNEL_SRC_PATH}"
 
+do_unpack[cleandirs] = "${S}"
+
 # we include gcc above, we dont need virtual/libc
 INHIBIT_DEFAULT_DEPS = "1"