[OE-core] [CONSOLIDATED PULL 24/32] bitbake.conf: Create static-dev pacakge for static libraries

Richard Purdie richard.purdie at linuxfoundation.org
Wed Jun 1 17:29:29 UTC 2011


On Tue, 2011-05-31 at 23:21 -0700, Saul Wold wrote:
> Signed-off-by: Saul Wold <sgw at linux.intel.com>
> ---
>  meta/conf/bitbake.conf |    7 ++++++-
>  1 files changed, 6 insertions(+), 1 deletions(-)
> 
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index de94316..4722eb0 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -248,13 +248,18 @@ FILES_${PN}-doc = "${docdir} ${mandir} ${infodir} ${datadir}/gtk-doc \
>  SECTION_${PN}-doc = "doc"
>  
>  FILES_${PN}-dev = "${includedir} ${libdir}/lib*${SOLIBSDEV} ${libdir}/*.la \
> -                ${libdir}/*.a ${libdir}/*.o ${libdir}/pkgconfig \
> +                ${libdir}/*.o ${libdir}/pkgconfig \
>                  ${datadir}/pkgconfig ${datadir}/aclocal \
>                  ${base_libdir}/*.a ${base_libdir}/*.o"
>  SECTION_${PN}-dev = "devel"
>  ALLOW_EMPTY_${PN}-dev = "1"
>  RDEPENDS_${PN}-dev = "${PN} (= ${EXTENDPKGV})"
>  
> +FILES_${PN}-static-dev = "${libdir}/*.a ${base_libdir}/*.a"
> +SECTION_${PN}-static-dev = "devel"
> +ALLOW_EMPTY_${PN}-static-dev = "1"

No need for the ALLOW_EMPTY here. The dependencies of -dev packages are
important but it makes no sense for static dv packages.

I've also a slight preference for "staticdev" just to make these clearly
different from -dev packages.

Cheers,

Richard

> +RDEPENDS_${PN}-static-dev = "${PN} (= ${EXTENDPV})"
> +
>  DOTDEBUG-dbg = "${bindir}/.debug ${sbindir}/.debug ${libexecdir}/.debug ${libdir}/.debug \
>              ${base_bindir}/.debug ${base_sbindir}/.debug ${base_libdir}/.debug ${libdir}/${PN}/.debug \
>              ${libdir}/matchbox-panel/.debug /usr/src/debug"






More information about the Openembedded-core mailing list