On Tue, 23 Jul 2019 at 14:48, JH <jupiter....@gmail.com> wrote: > > Hi, > > I set up the configuration for service files at following: > > SYSTEMD_SERVICE_${PN} = "${PN}.service bootstrap.service" > > do_install() { > .............. > install -d ${D}/${systemd_system_unitdir} > install -m 0644 ${S}/lib/systemd/system/*.service > ${D}/${systemd_system_unitdir} > } > > Despite both service files are in build directory, the final image > installation does not include those service files, appreciate anyone > help.
Your script installs from ${S} but your explanation talks about the build directory. Did you intend to install from ${B}? If that's not the issue, then you want dig deeper: look in the build logs and the package directories inside workdir: does the file actually get installed and packaged? Is the correct package really added to image? HTH, Jussi -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto