[oe-commits] Richard Purdie : kernel: Clean ${S} before unpack

git at git.openembedded.org git at git.openembedded.org
Thu Dec 18 13:03:12 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 5a257396359abdb089dab87908e024fe14cf9748
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=5a257396359abdb089dab87908e024fe14cf9748

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Thu Dec 18 11:41:58 2014 +0000

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 at linuxfoundation.org>

---

 meta/classes/kernel.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 9d3d88c..94b5661 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"
 



More information about the Openembedded-commits mailing list