[oe-commits] [meta-openembedded] 65/76: hwloc: Add
git at git.openembedded.org
git at git.openembedded.org
Sat Dec 24 08:19:10 UTC 2016
martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.
commit d012e59701c51ffabdb5d34f603d8085c5c11924
Author: Haris Okanovic <haris.okanovic at ni.com>
AuthorDate: Thu Dec 22 14:02:50 2016 -0600
hwloc: Add
https://www.open-mpi.org/projects/hwloc/
"The Portable Hardware Locality (hwloc) software package provides a
portable abstraction (across OS, versions, architectures, ...) of the
hierarchical topology of modern architectures, including NUMA memory
nodes, sockets, shared caches, cores and simultaneous multithreading.
It also gathers various system attributes such as cache and memory
information as well as the locality of I/O devices such as network
interfaces, InfiniBand HCAs or GPUs."
This recipe adds libhwloc and lstopo utility as two packages.
Testing: Built in OE/Krogoth. Installed to x86_64 machine. Successfully
ran `lstopo` and verified it printed correct CPU and cache info.
Signed-off-by: Haris Okanovic <haris.okanovic at ni.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb b/meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
new file mode 100644
index 0000000..3a88f5b
--- /dev/null
+++ b/meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb
@@ -0,0 +1,25 @@
+SUMMARY = "The Portable Hardware Locality (hwloc) software package \
+ provides a portable abstraction of the hierarchical topology of modern \
+ architectures."
+HOMEPAGE = "https://www.open-mpi.org/software/hwloc/"
+SECTION = "base"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=3282e20dc3cec311deda3c6d4b1f990b"
+
+SRC_URI = "https://www.open-mpi.org/software/${PN}/v1.11/downloads/${BP}.tar.bz2"
+SRC_URI[md5sum] = "96c34136ff416d2b13a7821c27477bed"
+
+inherit autotools
+
+# Split hwloc library into separate subpackage
+PACKAGES_prepend = "lib${PN}"
+FILES_lib${PN} += "${libdir}/lib${PN}.so*"
+${PN}_RDEPENDS += "lib${PN}"
+
+do_install_append() {
+ # Let ldconfig do it's thing, no need for these symlinks
+ test -L "${D}${libdir}/lib${PN}.so.5"
+ test -L "${D}${libdir}/lib${PN}.so"
+ rm "${D}${libdir}/lib${PN}.so.5"
+ rm "${D}${libdir}/lib${PN}.so"
+}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list