我正在使用Yocto Jethro并试图从另一个中包含一个bitbake食谱。我也试图看看我需要在配方中放入的最少量的东西,以便bitbake不会出错。
$ bitbake --version
BitBake Build Tool Core version 1.28.0
第一个文件......
# parent.bb
require child
...包括第二个文件......
# child.bb
这两个文件都位于 meta / recipes-core / images / *下的同一目录中.bb
当我尝试bitbake时,我收到以下错误:
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
>1< alain@mbp-vmw-ub1 Wed Jan 04 06:11 PM /media/alain/Yocto/var-mx6ul-mx7-yocto-jethro/build-fb > bitbake parent
Loading cache: 100% |########################################################################################################################################################| ETA: 00:00:00
Loaded 2775 entries from dependency cache.
ERROR: This recipe does not have the LICENSE field set (child) | ETA: --:--:--
ERROR: ParseError in child: not a BitBake file | ETA: 00:00:03
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
奇怪的是,无论我是 bitbake parent 还是 bitbake child ,我都会收到有关丢失LICENSE的相同错误,但在这两种情况下,错误引用(孩子)而且从不(父母)
>1< alain@mbp-vmw-ub1 Wed Jan 04 06:17 PM /media/alain/Yocto/var-mx6ul-mx7-yocto-jethro/build-fb > bitbake child
Loading cache: 100% |########################################################################################################################################################| ETA: 00:00:00
Loaded 2775 entries from dependency cache.
ERROR: This recipe does not have the LICENSE field set (child) | ETA: --:--:--
ERROR: ParseError in child: not a BitBake file | ETA: 00:00:03
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
然后,我在两个文件中添加了一个LICENSE:
# parent.bb
LICENSE="CLOSED"
require child
和
# child.bb
LICENSE="CLOSED"
所以,现在我只得到ParseError,但是我 bitbake parent 或 bitbake child :
>1< alain@mbp-vmw-ub1 Wed Jan 04 06:21 PM /media/alain/Yocto/var-mx6ul-mx7-yocto-jethro/build-fb > bitbake parent
Loading cache: 100% |########################################################################################################################################################| ETA: 00:00:00
Loaded 2775 entries from dependency cache.
ERROR: ParseError in child: not a BitBake file | ETA: 00:00:04
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>1< alain@mbp-vmw-ub1 Wed Jan 04 06:21 PM /media/alain/Yocto/var-mx6ul-mx7-yocto-jethro/build-fb > bitbake child
Loading cache: 100% |########################################################################################################################################################| ETA: 00:00:00
Loaded 2775 entries from dependency cache.
ERROR: ParseError in child: not a BitBake file | ETA: 00:00:04
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
所以,我的问题是:
答案 0 :(得分:1)
问题1:
似乎bitbake解析了 bblayers.conf 和 meta - * / conf / layer.conf
中指定的所有食谱问题2:
# parent.bb
require child.bb