【发布时间】:2022-11-11 02:45:22
【问题描述】:
我正在尝试将一个库(一个 cmake 项目)添加到我的 Yocto 项目/图像中。
该包本质上由一个静态库(名为 hello.a)和一些 C 中的头文件组成。
我写了一个配方,可以配置、编译、打包它。
打包结果是四个文件{hello-dbg, hello-dev, hello-src, hello-staticdev}.deb
所以没有hello.deb。
这似乎是一个阻止我创建图像的问题。
The following packages have unmet dependencies:
packagegroup-utils-extra : Depends: hello but it is not installable
E: Unable to correct problems, you have held broken packages.
当我尝试通过定义添加它时:
FILES_${PN} += "/usr/lib/hello.a"
bitbake 不允许将静态库添加到 staticdev -> 之外的任何内容,因此这不起作用。
我的问题是,正如标题所说,如何(强制 Yocto)创建 ${PN}.deb 文件?
【问题讨论】:
标签: yocto