This splits gperftools into

- gperftools script
- gperftools profiler and other libs
- libtcmalloc-minimal
- docs and other stuff

Especially the libctmalloc-minimal is what is useful if only an improved
allocator needs to be used. The gperftools package stays otherwise fully
backward compatible, as it depends on any necessary lib packages.
Though, the lib packages can be installed separately, which allows for
more flexibility and for cleaner image contents.

Signed-off-by: Anatol Belski <[email protected]>
---
 .../gperftools/gperftools_2.7.bb              | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/meta-oe/recipes-support/gperftools/gperftools_2.7.bb 
b/meta-oe/recipes-support/gperftools/gperftools_2.7.bb
index c8b91278d..badf0d203 100644
--- a/meta-oe/recipes-support/gperftools/gperftools_2.7.bb
+++ b/meta-oe/recipes-support/gperftools/gperftools_2.7.bb
@@ -28,3 +28,26 @@ COMPATIBLE_HOST_mipsarch_libc-glibc = "null"
 ARM_INSTRUCTION_SET_armv5 = "arm"
 ARM_INSTRUCTION_SET_toolchain-clang_arm = "arm"
 
+PACKAGES = "${PN} ${PN}-dbg ${PN}-doc ${PN}-libs ${PN}-libs-dev 
${PN}-libs-staticdev libtcmalloc-minimal"
+
+EXTRA_OECONF_append += " --enable-static"
+
+FILES_${PN} = "${bindir}/*"
+FILES_${PN}-doc = "${docdir} ${mandir}"
+FILES_${PN}-libs = "${libdir}/libprofiler*${SOLIBS} 
${libdir}/libprofiler*${SOLIBS}\
+               ${libdir}/libtcmalloc${SOLIBS} \
+               ${libdir}/libtcmalloc_debug${SOLIBS} \
+               ${libdir}/libtcmalloc_and_profiler*${SOLIBS}"
+FILES_${PN}-libs-dev = "${includedir} ${libdir}/lib*${SOLIBSDEV} 
${libdir}/lib*.la ${libdir}/pkgconfig"
+FILES_${PN}-libs-staticdev = "${libdir}/*.a"
+FILES_libtcmalloc-minimal = "${libdir}/libtcmalloc_minimal*${SOLIBS} 
${libdir}/libtcmalloc_minimal_debug*${SOLIBS}"
+
+RDEPENDS_${PN} = "${PN}-libs (= ${EXTENDPKGV})"
+RDEPENDS_${PN}-libs = "libtcmalloc-minimal (= ${EXTENDPKGV})"
+RDEPENDS_${PN}-libs-dev = "${PN}-libs (= ${EXTENDPKGV}) libtcmalloc-minimal (= 
${EXTENDPKGV})"
+RDEPENDS_${PN}-libs-staticdev = "${PN}-libs-dev (= ${EXTENDPKGV})"
+
+SECTION_${$PN}-doc = "doc"
+SECTION_${PN}-libs-dev = "devel"
+SECTION_${PN}-libs-staticdev = "devel"
+
-- 
2.17.1

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to