systemd 配方通过一个包分割多个包来提供,如
systemd-journal-remote
,请参阅 https://git.openembedded.org/openembedded-core/tree/meta/recipes-core/systemd/systemd_255.1.bb#n397
如何编译
systemd-journal-remote
并内省此包在 tmp/work/ 下创建的构建文件?
bitbake systemd-journal-remote
ERROR: Nothing PROVIDES 'systemd-journal-remote'. Close matches:
systemd RPROVIDES systemd-journal-remote
如何针对这个包运行 bitbake? (我正在运行 Yocto Langdale)
感谢 Yocto IRC 为我提供的帮助!总结如下:
总体来说:
bitbake 构建配方,而不是包
因此你不能对包进行bitbake,你必须对食谱进行bitbake - 在我的例子中
bitbake systemd
- 并且包将被包含(如果启用)。
对于
systemd-journal-remote
,我的错误是我没有设置正确的PACKAGECONFIG
,因此没有启用这个可选包:
PACKAGECONFIG:append =“microhttpd”
之后您可以将包添加到您的图像配方中:
IMAGE_INSTALL:append =“systemd-journal-remote”