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

时间:2018-11-20 07:02:42

标签: embedded yocto

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

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

有什么方法可以在另一个配方中使用此静态库吗?

1 个答案:

答案 0 :(得分:1)

是的。

假设您的食谱 test1 正在提供libtest1.a。然后只需添加以下行:

DEPENDS = "test1"

转到另一个配方,并且在构建过程中该库将在配方sysroot中可用。

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