summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2016-08-23 23:02:08 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-25 23:03:46 +0100
commitc1f4befadc5bd6faac6469baa1ea9ed0c7368ad9 (patch)
treea6f596d470959805b13baf0871661c2a02d09d9a /meta
parent9b6bc21d07bc6dcccfd299a334e2dbe9ac61958f (diff)
downloadpoky-c1f4befadc5bd6faac6469baa1ea9ed0c7368ad9.tar.gz
useradd.bblass: Simplify target overrides
The current style might be a leftover from when _class-target did not exist. Also change the assignment to SSTATECLEANFUNCS to an append, which makes more sense. useradd.bbclass is the only user of SSTATECLEANFUNCS as of writing, so it won't make any functional difference. (From OE-Core rev: 79dd6be736211a722538a1234337ca16fefd5540) Signed-off-by: Ulf Magnusson <ulfalizer@gmail.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/useradd.bbclass32
1 files changed, 9 insertions, 23 deletions
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index 8d51fb5a45..e24b1c5b64 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -3,11 +3,7 @@ inherit useradd_base
3# base-passwd-cross provides the default passwd and group files in the 3# base-passwd-cross provides the default passwd and group files in the
4# target sysroot, and shadow -native and -sysroot provide the utilities 4# target sysroot, and shadow -native and -sysroot provide the utilities
5# and support files needed to add and modify user and group accounts 5# and support files needed to add and modify user and group accounts
6DEPENDS_append = "${USERADDDEPENDS}" 6DEPENDS_append_class-target = " base-files shadow-native shadow-sysroot shadow"
7USERADDDEPENDS = " base-files shadow-native shadow-sysroot shadow"
8USERADDDEPENDS_class-cross = ""
9USERADDDEPENDS_class-native = ""
10USERADDDEPENDS_class-nativesdk = ""
11 7
12# This preinstall function can be run in four different contexts: 8# This preinstall function can be run in four different contexts:
13# 9#
@@ -157,28 +153,18 @@ if test "x${STAGING_DIR_TARGET}" != "x"; then
157fi 153fi
158} 154}
159 155
160SSTATECLEANFUNCS = "userdel_sysroot_sstate" 156SSTATECLEANFUNCS_append_class-target = " userdel_sysroot_sstate"
161SSTATECLEANFUNCS_class-cross = ""
162SSTATECLEANFUNCS_class-native = ""
163SSTATECLEANFUNCS_class-nativesdk = ""
164 157
165do_install[prefuncs] += "${SYSROOTFUNC}" 158do_install[prefuncs] += "${SYSROOTFUNC}"
166SYSROOTFUNC = "useradd_sysroot" 159SYSROOTFUNC_class-target = "useradd_sysroot"
167SYSROOTFUNC_class-cross = "" 160SYSROOTFUNC = ""
168SYSROOTFUNC_class-native = "" 161
169SYSROOTFUNC_class-nativesdk = "" 162SSTATEPREINSTFUNCS_append_class-target = " useradd_sysroot_sstate"
170SSTATEPREINSTFUNCS += "${SYSROOTPOSTFUNC}" 163
171SYSROOTPOSTFUNC = "useradd_sysroot_sstate"
172SYSROOTPOSTFUNC_class-cross = ""
173SYSROOTPOSTFUNC_class-native = ""
174SYSROOTPOSTFUNC_class-nativesdk = ""
175
176USERADDSETSCENEDEPS = "${MLPREFIX}base-passwd:do_populate_sysroot_setscene pseudo-native:do_populate_sysroot_setscene shadow-native:do_populate_sysroot_setscene ${MLPREFIX}shadow-sysroot:do_populate_sysroot_setscene"
177USERADDSETSCENEDEPS_class-cross = ""
178USERADDSETSCENEDEPS_class-native = ""
179USERADDSETSCENEDEPS_class-nativesdk = ""
180do_package_setscene[depends] += "${USERADDSETSCENEDEPS}" 164do_package_setscene[depends] += "${USERADDSETSCENEDEPS}"
181do_populate_sysroot_setscene[depends] += "${USERADDSETSCENEDEPS}" 165do_populate_sysroot_setscene[depends] += "${USERADDSETSCENEDEPS}"
166USERADDSETSCENEDEPS_class-target = "${MLPREFIX}base-passwd:do_populate_sysroot_setscene pseudo-native:do_populate_sysroot_setscene shadow-native:do_populate_sysroot_setscene ${MLPREFIX}shadow-sysroot:do_populate_sysroot_setscene"
167USERADDSETSCENEDEPS = ""
182 168
183# Recipe parse-time sanity checks 169# Recipe parse-time sanity checks
184def update_useradd_after_parse(d): 170def update_useradd_after_parse(d):