From e071bc9982fc3ace3a32a990905884929392c4b6 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Thu, 2 Jun 2011 20:56:04 +0200 Subject: base.bbclass: add cleansstate task between clean and cleanall * sometimes it's usefull to remove only sstate cache and keep downloaded sources for rebuild Signed-off-by: Martin Jansa --- meta/classes/base.bbclass | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'meta/classes/base.bbclass') diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 8f4ef1e64e..6f0484e26c 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -408,10 +408,13 @@ def check_gcc3(data): return False -addtask cleanall after do_clean -python do_cleanall() { +addtask cleansstate after do_clean +python do_cleansstate() { sstate_clean_cachefiles(d) +} +addtask cleanall after do_cleansstate +python do_cleanall() { src_uri = (bb.data.getVar('SRC_URI', d, True) or "").split() if len(src_uri) == 0: return -- cgit v1.2.3