diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2018-04-27 11:14:26 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-04 13:28:05 +0100 |
commit | b1b4dd8f7658dc256f3c0d2690e42c9e48f95481 (patch) | |
tree | dfefd417cc4cccaaf06a34a5c07a2e1178fd7e7a /meta | |
parent | 101c65d59ed9c85ab2cdc8d5ca44a3afb8f00e98 (diff) | |
download | poky-b1b4dd8f7658dc256f3c0d2690e42c9e48f95481.tar.gz |
sstate.bbclass: drop obsolete codes
The SSTATECLEANFUNCS mechanism was introduced to solve user/group
deletion problem. After RSS mechanism was introduced, there's no
need to do so.
There was a patch to remove these obsolete codes for useradd.bbclass,
but the codes in sstate.bbclass were not removed. So clean it up.
(From OE-Core rev: 215b83ce892a7002ed0b1bd7b82a08e67ae15121)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/sstate.bbclass | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 0b28850140..1a95f8f2b9 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -59,7 +59,6 @@ SSTATEPREINSTFUNCS = "" | |||
59 | SSTATEPOSTUNPACKFUNCS = "sstate_hardcode_path_unpack" | 59 | SSTATEPOSTUNPACKFUNCS = "sstate_hardcode_path_unpack" |
60 | SSTATEPOSTINSTFUNCS = "" | 60 | SSTATEPOSTINSTFUNCS = "" |
61 | EXTRA_STAGING_FIXMES ?= "HOSTTOOLS_DIR" | 61 | EXTRA_STAGING_FIXMES ?= "HOSTTOOLS_DIR" |
62 | SSTATECLEANFUNCS = "" | ||
63 | 62 | ||
64 | # Check whether sstate exists for tasks that support sstate and are in the | 63 | # Check whether sstate exists for tasks that support sstate and are in the |
65 | # locked signatures file. | 64 | # locked signatures file. |
@@ -507,10 +506,6 @@ def sstate_clean(ss, d): | |||
507 | stfile.endswith(rm_nohash): | 506 | stfile.endswith(rm_nohash): |
508 | oe.path.remove(stfile) | 507 | oe.path.remove(stfile) |
509 | 508 | ||
510 | # Removes the users/groups created by the package | ||
511 | for cleanfunc in (d.getVar('SSTATECLEANFUNCS') or '').split(): | ||
512 | bb.build.exec_func(cleanfunc, d) | ||
513 | |||
514 | sstate_clean[vardepsexclude] = "SSTATE_MANFILEPREFIX" | 509 | sstate_clean[vardepsexclude] = "SSTATE_MANFILEPREFIX" |
515 | 510 | ||
516 | CLEANFUNCS += "sstate_cleanall" | 511 | CLEANFUNCS += "sstate_cleanall" |