在 yocto 中构建元虚拟化层

Building meta-virtualization layer in yocto

我正在尝试在我的 yocto 项目中添加元虚拟化层。该层依赖于 openembedded-core 和 meta-openembedded 提供的多层。以下是添加元虚拟化层及其依赖项后我的 bblayers.conf 文件的结构。

BBLAYERS ?= " \
/home/mshehery/Downloads/git/Yocto/poky/meta \
/home/mshehery/Downloads/git/Yocto/poky/meta-yocto \
/home/mshehery/Downloads/git/Yocto/poky/meta-yocto-bsp \
/home/mshehery/Downloads/git/Yocto/poky/meta-oe \
/home/mshehery/Downloads/git/Yocto/poky/meta-virtualization \
/home/mshehery/Downloads/git/Yocto/poky/meta-networking \
/home/mshehery/Downloads/git/Yocto/poky/meta-filesystems \
/home/mshehery/Downloads/git/Yocto/poky/meta-python \
"

但是,当我尝试在元虚拟化层中构建 docker 时,遇到以下错误

WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |####################################################################################################################################################| ETA:  00:00:00
Loaded 1078 entries from dependency cache.
NOTE: Error during finalise of /home/mshehery/Downloads/git/Yocto/poky/meta-oe/recipes-devtools/tcltk/tk_8.6.6.bb                                                        | ETA:  --:--:--
ERROR: ParseError at /home/mshehery/Downloads/git/Yocto/poky/meta-oe/recipes-connectivity/libqmi/libqmi_1.16.0.bb:12: Could not inherit file classes/bash-completion.bbclass

如果我没记错的话,yocto 项目的当前版本使用 openembedded 作为他们的构建系统。那么,是否需要将 openembedded-core 集成到我的 yocto 项目中以添加元虚拟化层,或者它是否已经默认存在于 yocto 项目中?

讨论的简短摘要:

  • 对所有层使用相同的发布分支(除非你真的知道你在做什么。

  • 检查您的所有图层是否在 bblayers.conf 中激活。