All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hwloc: Add
@ 2016-12-22 20:02 Haris Okanovic
  2016-12-22 21:34 ` Martin Jansa
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Haris Okanovic @ 2016-12-22 20:02 UTC (permalink / raw)
  To: openembedded-devel; +Cc: haris.okanovic

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@ni.com>
---
 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 meta-oe/recipes-extended/hwloc/hwloc_1.11.5.bb

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"
+}
-- 
2.10.1



^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-05-19 17:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-22 20:02 [PATCH] hwloc: Add Haris Okanovic
2016-12-22 21:34 ` Martin Jansa
2016-12-22 22:35   ` Christopher Larson
2016-12-22 22:56     ` Khem Raj
2016-12-25 23:55       ` Martin Jansa
2016-12-27 19:00         ` Haris Okanovic
2016-12-26 10:35   ` Andre McCurdy
2016-12-27 19:06 ` [meta-oe][PATCH v2] " Haris Okanovic
2017-01-02 22:33   ` Martin Jansa
2017-01-04 16:20     ` [meta-oe][PATCH v3] " Haris Okanovic
2017-01-05 18:04       ` Martin Jansa
2017-05-19 16:17 ` [PATCH v4] " Haris Okanovic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.