且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何编写yocto/bitbake食谱将目录复制到目标根文件系统

更新时间:2023-11-29 14:33:52

您只需要将这些文件复制到目标rootfs中即可.如果它们没有安装在标准位置,请不要忘记包装它们.

You just have to copy these files into your target rootfs. Do not forget to pakage them if they are not installed in standard locations.

SRC_URI += "file://myDir"

do_install() {
    install -d ${D}/path/to/dir/on/fs
    cp -r ${WORKDIR}/myDir ${D}/path/to/dir/on/fs
}
FILES_${PN} += "/path/to/dir/on/fs"