diff options
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r-- | meta/classes/sstate.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 6f285da6b4..3234e7914c 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -51,6 +51,7 @@ SSTATEPREINSTFUNCS = "" | |||
51 | SSTATEPOSTUNPACKFUNCS = "sstate_hardcode_path_unpack" | 51 | SSTATEPOSTUNPACKFUNCS = "sstate_hardcode_path_unpack" |
52 | SSTATEPOSTINSTFUNCS = "" | 52 | SSTATEPOSTINSTFUNCS = "" |
53 | EXTRA_STAGING_FIXMES ?= "" | 53 | EXTRA_STAGING_FIXMES ?= "" |
54 | SSTATECLEANFUNCS = "" | ||
54 | 55 | ||
55 | SIGGEN_LOCKEDSIGS_CHECK_LEVEL ?= 'error' | 56 | SIGGEN_LOCKEDSIGS_CHECK_LEVEL ?= 'error' |
56 | 57 | ||
@@ -444,6 +445,10 @@ def sstate_clean(ss, d): | |||
444 | stfile.endswith(rm_nohash): | 445 | stfile.endswith(rm_nohash): |
445 | oe.path.remove(stfile) | 446 | oe.path.remove(stfile) |
446 | 447 | ||
448 | # Removes the users/groups created by the package | ||
449 | for cleanfunc in (d.getVar('SSTATECLEANFUNCS', True) or '').split(): | ||
450 | bb.build.exec_func(cleanfunc, d) | ||
451 | |||
447 | sstate_clean[vardepsexclude] = "SSTATE_MANFILEPREFIX" | 452 | sstate_clean[vardepsexclude] = "SSTATE_MANFILEPREFIX" |
448 | 453 | ||
449 | CLEANFUNCS += "sstate_cleanall" | 454 | CLEANFUNCS += "sstate_cleanall" |