diff options
Diffstat (limited to 'meta/classes/useradd.bbclass')
-rw-r--r-- | meta/classes/useradd.bbclass | 32 |
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 |
6 | DEPENDS_append = "${USERADDDEPENDS}" | 6 | DEPENDS_append_class-target = " base-files shadow-native shadow-sysroot shadow" |
7 | USERADDDEPENDS = " base-files shadow-native shadow-sysroot shadow" | ||
8 | USERADDDEPENDS_class-cross = "" | ||
9 | USERADDDEPENDS_class-native = "" | ||
10 | USERADDDEPENDS_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 | |||
157 | fi | 153 | fi |
158 | } | 154 | } |
159 | 155 | ||
160 | SSTATECLEANFUNCS = "userdel_sysroot_sstate" | 156 | SSTATECLEANFUNCS_append_class-target = " userdel_sysroot_sstate" |
161 | SSTATECLEANFUNCS_class-cross = "" | ||
162 | SSTATECLEANFUNCS_class-native = "" | ||
163 | SSTATECLEANFUNCS_class-nativesdk = "" | ||
164 | 157 | ||
165 | do_install[prefuncs] += "${SYSROOTFUNC}" | 158 | do_install[prefuncs] += "${SYSROOTFUNC}" |
166 | SYSROOTFUNC = "useradd_sysroot" | 159 | SYSROOTFUNC_class-target = "useradd_sysroot" |
167 | SYSROOTFUNC_class-cross = "" | 160 | SYSROOTFUNC = "" |
168 | SYSROOTFUNC_class-native = "" | 161 | |
169 | SYSROOTFUNC_class-nativesdk = "" | 162 | SSTATEPREINSTFUNCS_append_class-target = " useradd_sysroot_sstate" |
170 | SSTATEPREINSTFUNCS += "${SYSROOTPOSTFUNC}" | 163 | |
171 | SYSROOTPOSTFUNC = "useradd_sysroot_sstate" | ||
172 | SYSROOTPOSTFUNC_class-cross = "" | ||
173 | SYSROOTPOSTFUNC_class-native = "" | ||
174 | SYSROOTPOSTFUNC_class-nativesdk = "" | ||
175 | |||
176 | USERADDSETSCENEDEPS = "${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" | ||
177 | USERADDSETSCENEDEPS_class-cross = "" | ||
178 | USERADDSETSCENEDEPS_class-native = "" | ||
179 | USERADDSETSCENEDEPS_class-nativesdk = "" | ||
180 | do_package_setscene[depends] += "${USERADDSETSCENEDEPS}" | 164 | do_package_setscene[depends] += "${USERADDSETSCENEDEPS}" |
181 | do_populate_sysroot_setscene[depends] += "${USERADDSETSCENEDEPS}" | 165 | do_populate_sysroot_setscene[depends] += "${USERADDSETSCENEDEPS}" |
166 | USERADDSETSCENEDEPS_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" | ||
167 | USERADDSETSCENEDEPS = "" | ||
182 | 168 | ||
183 | # Recipe parse-time sanity checks | 169 | # Recipe parse-time sanity checks |
184 | def update_useradd_after_parse(d): | 170 | def update_useradd_after_parse(d): |