mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
2b41c2ad7e
commit
6e6fa7d63d
@@ -406,10 +406,13 @@ def check_gcc3(data):
|
|||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
addtask cleanall after do_clean
|
addtask cleansstate after do_clean
|
||||||
python do_cleanall() {
|
python do_cleansstate() {
|
||||||
sstate_clean_cachefiles(d)
|
sstate_clean_cachefiles(d)
|
||||||
|
}
|
||||||
|
|
||||||
|
addtask cleanall after do_cleansstate
|
||||||
|
python do_cleanall() {
|
||||||
src_uri = (bb.data.getVar('SRC_URI', d, True) or "").split()
|
src_uri = (bb.data.getVar('SRC_URI', d, True) or "").split()
|
||||||
if len(src_uri) == 0:
|
if len(src_uri) == 0:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user