简体   繁体   English

Bitbake 在构建中不包含我的食谱

[英]Bitbake does not include my recipe in build

I am trying to do something straightforward: add a new layer and a new recipe.我正在尝试做一些简单的事情:添加一个新层和一个新配方。 I used the我用了

bitbake-layers create-layer bitbake-layers 创建层

command to create the layer, and added the layer directory path to BBLAYERS variable in BUILDDIR/conf/bblayers.conf .命令创建图层,并将图层目录路径添加到BUILDDIR/conf/bblayers.conf中的BBLAYERS变量。

layer.conf层.conf

BBPATH .= ":${LAYERDIR}"
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
        ${LAYERDIR}/recipes-*/*/*.bbappend"
BBFILE_COLLECTIONS += "myname-mytest"
BBFILE_PATTERN_myname-mytest = "^${LAYERDIR}/"
BBFILE_PRIORITY_myname-mytest = "6"
LAYERVERSION_myname-mytest = "1"
LAYERSERIES_COMPAT_myname-mytest = "sumo"

Added this in local.conf :local.conf中添加了这个:

local.conf本地配置文件

IMAGE_INSTALL_APPEND = " mytest-app"

bitbake-layers show-recipes bitbake-layers 显示食谱

shows my layer and recipe.显示我的图层和食谱。

mytest-app: meta-myname-mytest 1.0 mytest-app: meta-myname-mytest 1.0

Errors in my recipe are caught in the bitbake build, but without any error, no output is produced under WORKDIR/image or logs are produced under WORKDIR/temp!我的食谱中的错误在 bitbake 构建中被捕获,但没有任何错误,在 WORKDIR/image 下没有生成 output 或在 WORKDIR/temp 下生成日志!

Have done this on other platforms, and can't for the life of me tell what I am doing wrong.在其他平台上这样做过,我一辈子都说不出我做错了什么。 Thanks for any help!!谢谢你的帮助!!

For the new yocto version, you need to use对于新的 yocto 版本,你需要使用

IMAGE_INSTALL:append

instead of代替

IMAGE_INSTALL_append

and you will be OK你会没事的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM