bitbake recipe for copying folder, subfolders for yocto

橙三吉。 提交于 2019-12-08 07:37:23

问题


I want copy folders and it's content to yocto during image build process. For this process I am using following recipe

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"

But I receive following error ERROR: QA Issue: weaved: Recipe inherits the allarch class, but has packaged architecture-specific binaries [arch]. How can I resolve this error?


回答1:


This error means that you are trying to install architecture-specific binaries (compiled for x86, arm64 etc), while inheriting allarch class. From yocto reference manual:

The allarch class is inherited by recipes that do not produce architecture-specific output.

This is an obvious contradiction.

What are you trying to do? Creating of recipe that only installs some files seems like wrong architecture decision. And why do you want to inherit allarch?




回答2:


You are just coping files to rootfs. So you no need use inherit allarch. remove that and compile.



来源:https://stackoverflow.com/questions/47867459/bitbake-recipe-for-copying-folder-subfolders-for-yocto

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!