我知道我的问题已经有了答案:bitbake recipe - doing a simple copy of the image
我也想复制文件但是在尝试编译我的食谱时遇到了这个错误:
gcc: error: none: No such file or directory
删除该行:
inherit allarch
不会给我带来任何问题,但显然我需要它来复制我的文件......
这是我的食谱:
DESCRIPTION = "My description"
#To prevent the LICENSE field not set
LICENSE = "CLOSED"
PR = "r1"
SRC_URI = "file://main.c \
file://foo_update.sh \
file://foo.service \
"
S = "${WORKDIR}/"
FILES_${PN} += "/script"
inherit allarch
do_compile() {
${CC} ${WORKDIR}/main.c -o fooupdate
}
do_install() {
install -m 0755 -d ${D}${bindir} ${D}/script
install -m 0755 ${S}/fooupdate ${D}${bindir}
install -m 0755 ${S}/foo_update.sh ${D}/script
install -m 0755 ${S}/foo.service ${D}/script
}
我做错了什么?
感谢您的帮助!
答案 0 :(得分:2)
通过这个问题找到解决方案: bitbake recipe for copying folder, subfolders for yocto
删除public class ListingAndImage
{
Listing listing;
String image;
public ListingAndImage(Listing listing, String image) {
this.listing = listing;
this.image = image;
}
}
,而不是使用inherit allarch
来复制您要复制的文件:
install -m 0755
使用install -m 0755 ${S}/foo_update.sh ${D}/script
install -m 0755 ${S}/foo.service ${D}/script
:
cp
完整食谱:
cp ${S}/foo_update.sh ${D}/script
cp ${S}/foo.service ${D}/script