summaryrefslogtreecommitdiff
path: root/meta/classes/useradd.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-27 16:59:37 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-27 16:59:37 +0000
commit63d006b2d3fc2223c74f81b91f70f5c841108c80 (patch)
treea789c6bf53e79537247366bd84f28158b135b82f /meta/classes/useradd.bbclass
parentfba0459da7f274ae284d36b7fdbf2f9d10a52610 (diff)
downloadopenembedded-core-63d006b2d3fc2223c74f81b91f70f5c841108c80.tar.gz
openembedded-core-63d006b2d3fc2223c74f81b91f70f5c841108c80.tar.bz2
openembedded-core-63d006b2d3fc2223c74f81b91f70f5c841108c80.tar.xz
openembedded-core-63d006b2d3fc2223c74f81b91f70f5c841108c80.zip
useradd: Ensure dependencies are only added for target recipes, not native or nativesdk
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/useradd.bbclass')
-rw-r--r--meta/classes/useradd.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index 9677fe20c..f93502892 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -111,7 +111,10 @@ SYSROOTPOSTFUNC = "useradd_sysroot_sstate"
SYSROOTPOSTFUNC_virtclass-native = ""
SYSROOTPOSTFUNC_virtclass-nativesdk = ""
-do_package_setscene[depends] = "base-passwd:do_populate_sysroot_setscene shadow-native:do_populate_sysroot_setscene shadow-sysroot:do_populate_sysroot_setscene"
+USERADDSETSCENEDEPS = "base-passwd:do_populate_sysroot_setscene shadow-native:do_populate_sysroot_setscene shadow-sysroot:do_populate_sysroot_setscene
+USERADDSETSCENEDEPS_virtclass-native = ""
+USERADDSETSCENEDEPS_virtclass-nativesdk = ""
+do_package_setscene[depends] = "${USERADDSETSCENEDEPS}"
# Recipe parse-time sanity checks
def update_useradd_after_parse(d):