Yocto:使用其他配方的静态库,

Yocto: use static library of other recipe,

我是 yocto 的新手,我想使用另一个配方生成的静态库和文件。 我可以在 poky/build 目录中找到它们,即:

./tmp/sysroots-components/aarch64/test1/usr/lib64/libtest1.a

有没有办法在另一个食谱中使用这个静态库??

是的,是的。

假设您的食谱 test1 提供 libtest1.a。然后只需添加这一行:

DEPENDS = "test1"

到另一个配方,库将在构建期间在配方 sysroot 中可用。

您可以在 official documentation for the DEPENDS variable 中找到更多信息。