我希望在镜像构建过程中将文件夹及其内容复制到Yocto。为此,我使用以下配方:
SUMMARY = "Installation Recipe"
DESCRIPTION = "It installs folder"
HOMEPAGE = ""
LICENSE = "CLOSED"
MY_FILES1 = "/home/jane/d1fold"
MY_FILES2 = "/home/jane/d2fold"
inherit allarch
do_install() {
install -d ${D}/home/root
cp -R ${MY_FILES1}/* ${D}/home/root
cp -R ${MY_FILES2} ${D}/home/root
}
FILES_${PN} += " /home/root"
但是我收到了以下错误 ERROR: QA问题:weaved:配方继承了allarch类,但打包了特定于架构的二进制文件[arch]。我该如何解决这个错误?
https://patchwork.openembedded.org/patch/138100/
类。然后你需要从 ${WORKDIR} 复制到 ${D}。 - Nayfe