useradd.bbclass: do not modify -nativesdk packages
Exclude the addition of user/group code and RDEPENDS changes for -nativesdk packages. (From OE-Core rev: 2f057dd905ccb497890ce73ac4e4c256edcf0351) Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
67a2c35530
commit
3b93447e35
|
@ -153,10 +153,11 @@ fakeroot python populate_packages_prepend () {
|
||||||
rdepends = d.getVar("RDEPENDS_%s" % pkg, True) or ""
|
rdepends = d.getVar("RDEPENDS_%s" % pkg, True) or ""
|
||||||
rdepends += " base-passwd shadow"
|
rdepends += " base-passwd shadow"
|
||||||
bb.data.setVar("RDEPENDS_%s" % pkg, rdepends, d)
|
bb.data.setVar("RDEPENDS_%s" % pkg, rdepends, d)
|
||||||
|
|
||||||
# Add the user/group preinstall scripts and RDEPENDS requirements
|
# Add the user/group preinstall scripts and RDEPENDS requirements
|
||||||
# to packages specified by USERADD_PACKAGES
|
# to packages specified by USERADD_PACKAGES
|
||||||
useradd_packages = d.getVar('USERADD_PACKAGES', True) or ""
|
if not bb.data.inherits_class('nativesdk', d):
|
||||||
for pkg in useradd_packages.split():
|
useradd_packages = d.getVar('USERADD_PACKAGES', True) or ""
|
||||||
update_useradd_package(pkg)
|
for pkg in useradd_packages.split():
|
||||||
|
update_useradd_package(pkg)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue