summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2011-06-02 20:56:04 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-06 15:58:40 +0100
commit6e6fa7d63d642c7b39c9ecb17c9bc6d224c9ec0d (patch)
tree35c8bac4bd54bd580d279d5aa620dca975b92408 /meta
parent2b41c2ad7e883034e27c4ed0430dede26bf25b3f (diff)
downloadpoky-6e6fa7d63d642c7b39c9ecb17c9bc6d224c9ec0d.tar.gz
base.bbclass: add cleansstate task between clean and cleanall
* sometimes it's usefull to remove only sstate cache and keep downloaded sources for rebuild (From OE-Core rev: e071bc9982fc3ace3a32a990905884929392c4b6) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/base.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 358b501e57..26c59abf8e 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -406,10 +406,13 @@ def check_gcc3(data):
406 406
407 return False 407 return False
408 408
409addtask cleanall after do_clean 409addtask cleansstate after do_clean
410python do_cleanall() { 410python do_cleansstate() {
411 sstate_clean_cachefiles(d) 411 sstate_clean_cachefiles(d)
412}
412 413
414addtask cleanall after do_cleansstate
415python do_cleanall() {
413 src_uri = (bb.data.getVar('SRC_URI', d, True) or "").split() 416 src_uri = (bb.data.getVar('SRC_URI', d, True) or "").split()
414 if len(src_uri) == 0: 417 if len(src_uri) == 0:
415 return 418 return