[yocto] DEPENDS only half working
colin.helliwell at ln-systems.com
colin.helliwell at ln-systems.com
Wed Feb 1 02:38:51 PST 2017
I've got an odd problem with a pair of recipes:
App 'bar' uses 'libfoo', so I've set a DEPENDS in bar.bb - I can see this is
being half picked up, because 'bitbake bar' shows both builds being started.
However bar isn't waiting on libfoo - bar tries to compile before libfoo has
even finished configuring, let alone compiled and installed it's header
(foo_lib.h) into sysroot.
I think the recipes are probably otherwise correct - if I 'bitbake libfoo'
then 'bitbake bar' then all works.
I've looked at some simple lib recipes within poky (e.g. libwebp_0.4.3.bb /
webkitgtk_2.8.5.bb), and can't spot anything wrong/missing. Not sure if
libfoo should have any 'install' or similar sections, or any FILES_
settings, but I was [naively.?] hoping that the inherited classes will be
sorting out all that generic kinda stuff.
Anyone help please?
libfoo.bb :
.
inherit autotools lib_package binconfig-disabled pkgconfig
RPROVIDES_${PN} = "libfoo"
PROVIDES_${PN} = "libfoo"
PR = "r0"
SRC_URI = " ...<src files>.. "
S = "${WORKDIR}"
bar.bb :
..
inherit autotools binconfig-disabled pkgconfig
DEPENDS_${PN} = "libfoo"
RDEPENDS_${PN} = "libfoo"
S = "${WORKDIR}"
SRC_URI = " ...<src files>.. "
EXTRA_OEMAKE = " CFLAGS=" -I${STAGING_DIR_TARGET}/usr/include/libfoo " "
EXTRA_OEMAKE += " LDFLAGS=" -lfoo " "
libfoo Makefile.am:
lib_LTLIBRARIES = libfoo.la
pkginclude_HEADERS = foo_lib.h
libfoo_la_SOURCES = $(libfoo_a_HEADERS) foo_lib.c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170201/1e058303/attachment.html>
More information about the yocto
mailing list