summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2018-04-27 11:14:26 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-05-04 13:28:05 +0100
commitb1b4dd8f7658dc256f3c0d2690e42c9e48f95481 (patch)
treedfefd417cc4cccaaf06a34a5c07a2e1178fd7e7a /meta/classes
parent101c65d59ed9c85ab2cdc8d5ca44a3afb8f00e98 (diff)
downloadpoky-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/classes')
-rw-r--r--meta/classes/sstate.bbclass5
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 = ""
59SSTATEPOSTUNPACKFUNCS = "sstate_hardcode_path_unpack" 59SSTATEPOSTUNPACKFUNCS = "sstate_hardcode_path_unpack"
60SSTATEPOSTINSTFUNCS = "" 60SSTATEPOSTINSTFUNCS = ""
61EXTRA_STAGING_FIXMES ?= "HOSTTOOLS_DIR" 61EXTRA_STAGING_FIXMES ?= "HOSTTOOLS_DIR"
62SSTATECLEANFUNCS = ""
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
514sstate_clean[vardepsexclude] = "SSTATE_MANFILEPREFIX" 509sstate_clean[vardepsexclude] = "SSTATE_MANFILEPREFIX"
515 510
516CLEANFUNCS += "sstate_cleanall" 511CLEANFUNCS += "sstate_cleanall"