On 28/07/16, Zhenhua Luo wrote:
> Hi Oliver, 
> 
> The following line in shadow-sysroot.bb disables the final binary packages 
> generation. You can try to add bbappend for shadow to do the customization. 
> 
> # don't create any packages
> # otherwise: dbus-dev depends on shadow-sysroot-dev which depends on 
> shadow-sysroot
> # and this has another copy of /etc/login.defs already provided by shadow
> PACKAGES = ""

thx for this usefull note. It works for me with shadow_%.bbappend.

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI += "file://login.defs"

do_install_append() {
        install -m 644 ${WORKDIR}/login.defs ${D}${sysconfdir}/login.defs
}

FILES_${PN} += "${sysconfdir}/login.defs"

Best regards,

Oliver
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to