summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-18 11:41:58 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-20 11:24:04 +0000
commit7deb1f670c188c24744b7888a2d2f73c2a8ddff7 (patch)
tree07dd7075f05a29f25314791c14bcdc4ae6043e6c
parent323f9ea99cff00a751e446286bf8bcf8756e4351 (diff)
downloadopenembedded-core-7deb1f670c188c24744b7888a2d2f73c2a8ddff7.tar.gz
openembedded-core-7deb1f670c188c24744b7888a2d2f73c2a8ddff7.tar.bz2
openembedded-core-7deb1f670c188c24744b7888a2d2f73c2a8ddff7.zip
kernel: Clean ${S} before unpack
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>
-rw-r--r--meta/classes/kernel.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 6eb87acf06..c9e1c363e8 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -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"