在yocto中构建元虚拟化层

时间:2017-01-30 14:55:04

标签: linux docker yocto lxc

我正在尝试在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项目中?

1 个答案:

答案 0 :(得分:0)

讨论的简短摘要:

  • 对所有图层使用相同的版本分支(除非真的知道你做了什么。

  • 检查所有图层是否已在bblayers.conf

  • 中激活