具有多层bbappend的Yocto开发映像 [英] Yocto development image with bbappend in multiple layers

查看:184
本文介绍了具有多层bbappend的Yocto开发映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在写一个图像描述,我想将其附加到多层上 bsp层,安全层和应用程序层.

I am writing an image description which I want to append on multiple layers a bsp layer, a security layer and an application layer.

在bsp中:我的image.bb和image-dev.bb与

in bsp: I have image.bb and image-dev.bb with

require image.bb

在其他层上,我有image.bbappend和image-dev.bbappend

on the other layers I have image.bbappend and image-dev.bbappend

require image.bbappend 

会导致错误:

ERROR: ParseError in .../sources/meta-application/recipes-core/images/image.bbappend: not a BitBake file

当我构建 image 时,存在image.bb和所有image.bbappend中的包

When I build image the packages in image.bb and all image.bbappend are present

当我构建 image-dev 时,其中存在image.bb,image-dev.bb和所有image-dev.bbapend中的内容不是image.bbappend中的软件包

When I build image-dev the stuff in image.bb, image-dev.bb and all the image-dev.bbapend is present Not the packages from image.bbappend

bitbake -e image-dev产生:

bitbake -e image-dev yields:

# $IMAGE_INSTALL [21 operations]
#   set .../sources/poky/meta/conf/documentation.conf:212
#     [doc] "Specifies the packages to install into an image. Image recipes set IMAGE_INSTALL to specify the packages to install into an image through image.bbclass."
#   set .../sources/poky/meta/recipes-core/images/core-image-minimal.bb:3
#     "packagegroup-core-boot ${CORE_IMAGE_EXTRA_INSTALL}"
#   set? .../sources/poky/meta/classes/core-image.bbclass:70
#     "${CORE_IMAGE_BASE_INSTALL}"
#   set? .../sources/poky/meta/classes/image.bbclass:70
#     ""
#   set .../sources/poky/meta/classes/image.bbclass:71
#     [type] "list"
#   _append .../sources/meta-bsp/recipes-core/images/image.bb:32
...
#   _append .../sources/meta-bsp/recipes-core/images/image-dev.bb:38
...
#   _append .../sources/meta-application/recipes-core/images/image-dev.bbappend:24
...
#   _append .../sources/meta-my-security/recipes-core/images/image-dev.bbappend:14
...

有什么想法如何完全继承/包括整个bbappends在内的整个基本映像?!

Any idea how to fully inherit/include the entire base image including all it's bbappends?!

谢谢! 斯蒂芬

推荐答案

我设法通过以下结构对其进行了解决:

I managed to solve it with the following structure:

/meta-bsp/recipes-core/images/image.bb
    ... base packages

/meta-bsp/recipes-core/images/image-dev.bb
    ... development packages (like vim/htop/tree...)



/meta-application/recipes-core/images/image.inc
    ... application packages

/meta-application/recipes-core/images/image.bbappend
    require image.inc

/meta-application/recipes-core/images/image-dev.bbappend
    require image.inc
    ... application testing programms



/meta-my-security/recipes-core/images/image.inc
    security packages

/meta-my-security/recipes-core/images/image.bbappend
    require image.inc

/meta-my-security/recipes-core/images/image-dev.bbappend
    require image.inc
    .. security testing packages

这篇关于具有多层bbappend的Yocto开发映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆