diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2011-06-02 20:56:04 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-06 15:52:17 +0100 |
commit | e071bc9982fc3ace3a32a990905884929392c4b6 (patch) | |
tree | fd4bfaba7328d5745ed3ac0946c5a84f2e1a83b7 /meta/classes/base.bbclass | |
parent | a244bd1a8c98a970979e6bcfbd24c8a5b398ed0e (diff) | |
download | openembedded-core-e071bc9982fc3ace3a32a990905884929392c4b6.tar.gz openembedded-core-e071bc9982fc3ace3a32a990905884929392c4b6.tar.bz2 openembedded-core-e071bc9982fc3ace3a32a990905884929392c4b6.zip |
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 <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 7 |
1 files changed, 5 insertions, 2 deletions
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 |