summaryrefslogtreecommitdiffstats
path: root/meta/classes/useradd.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/useradd.bbclass')
-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):