diff options
author | Ulf Magnusson <ulfalizer@gmail.com> | 2016-08-23 23:02:08 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-25 23:03:46 +0100 |
commit | c1f4befadc5bd6faac6469baa1ea9ed0c7368ad9 (patch) | |
tree | a6f596d470959805b13baf0871661c2a02d09d9a /meta/classes | |
parent | 9b6bc21d07bc6dcccfd299a334e2dbe9ac61958f (diff) | |
download | poky-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/classes')
-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): |