Here is the recipe snippet to follow for the issue your facing. DESCRIPTION = "Install custom files to /root directory" LICENSE = "CLOSED" LIC_FILES_CHKSUM = "file://LICENSE;md5=<your-md5-here>"
SRC_URI = "file://my-binary \ file://my-config-file" S = "${WORKDIR}" do_install() { # Create the /root directory in the target filesystem install -d ${D}${sysconfdir}/root # Install your binary and config file install -m 0755 ${WORKDIR}/my-binary ${D}/root/my-binary install -m 0644 ${WORKDIR}/my-config-file ${D}/root/my-config-file } FILES_${PN} += "/root" On Wed, Dec 4, 2024 at 10:22 AM MOHAMMED HASSAN via lists.yoctoproject.org <hassanchattarki=gmail....@lists.yoctoproject.org> wrote: > Hi guys, > I am unable to install my files, binary, etc in the /root directory. I > have searched the documentation and tried but to no avail. > Please share some snippet or recipe code for my reference. > > > Thanks > Hassan > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#64397): https://lists.yoctoproject.org/g/yocto/message/64397 Mute This Topic: https://lists.yoctoproject.org/mt/109914791/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-