本文介绍了如何在BitBake配方中递归安装目录和文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将所有目录和文件从工作目录递归安装/复制到yocto构建系统上的目标软件包rootfs.我在

I would like to install/copy all my directories and files recursively from working directory to my target package rootfs on yocto build system.I tried the solution provided by Tobias Bystricky in

如何安装目录结构递归地使用OpenEmbedded BitBake食谱?

但是我遇到没有这样的文件或目录"错误

but I faced "No such file or directory" error

我做到了,

install -d ${D}${sysconfdir}/xxx/
install -d ${D}${sysconfdir}/xxx/yyy
install -d ${D}${sysconfdir}/xxx/yyy/zzz
install -d ${D}${sysconfdir}/xxx/yyy/zzz/kkk
find ${WORKDIR}/xxx/yyy/zzz/kkk/ -type f -exec 'install -m 0755 "{}" ${D}${sysconfdir}/xxx/yyy/zzz/kkk/' \;

错误消息是,

我检查了&确认确切的工作目录路径&软件包目录路径存在.请让我知道我是否想念任何东西.

I checked & confirmed that exact working directory path & Package directory paths are present. please let me know if i am missing any.

请提出其他建议.

推荐答案

cp -r

已知

会泄露用户信息.在OE仓库中,规范形式为

is known to leak user information. In the OE repos, the canonical form is

cp -R --no-dereference --preserve=mode,links -v SOURCE DESTINATION

另请参见相应的OE补丁

这篇关于如何在BitBake配方中递归安装目录和文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 22:21
查看更多