Non-standard include/lib path in dependencies in Yocto

Assume we have two recipes, packageA and libA. And packageA depends on libA. And libA has non-standard path for headers and libs, something like /opt/vendor/liba/include and /opt/vendor/liba/lib. My initial assumption was that these directories should be added to -dev FILES and that’s that. Wrong. These dependencies should be installed as a part of sysroot_stage_all_append stage, something like this should be added to

sysroot_stage_all_append () {
    sysroot_stage_dir ${D}/opt/vendor/liba ${SYSROOT_DESTDIR}/opt/vendor/liba


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s