From 7ac6dbf254c9ccd2152244a603672b774d57f108 Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Fri, 8 Jan 2016 09:54:54 -0500 Subject: [PATCH] Makefile: support for hwloc. One would also need to: git clone https://github.com/open-mpi/hwloc in the root_image to use it. Signed-off-by: Konrad Rzeszutek Wilk --- root_image/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/root_image/Makefile b/root_image/Makefile index 174cea7..de21cbe 100644 --- a/root_image/Makefile +++ b/root_image/Makefile @@ -710,6 +710,18 @@ ifeq ($(RPM_ARCH), x86_64) endif (cd userspace$(LIBSDIR); ln -fs ../usr$(LIBSDIR)/libsysfs.so.2) +.PHONY: hwloc-install +hwloc-install: + $(call RPM_TO_USERSPACE,*libxml2.so*,$(RPM_DIR)/libxml2) + if ! [ -e hwloc/config.log ]; then (cd hwloc; ./autogen.sh;./configure --prefix=/usr --disable-cairo --disable-gl); fi + $(MAKE) $(MFLAGS) -j$$(($(NCPUS) * 2)) -C hwloc + (cd hwloc;$(MAKE) $(MFLAGS) -j$$(($(NCPUS) * 2)) DESTDIR=$(CURDIR)/userspace install) + if test -f userspace/usr/lib/libhwloc.so; then \ + if ! test -f userspace/usr/lib64/libhwloc.so; then \ + ( cd userspace/usr/lib; for lib in `ls -1 *libhwloc* *libnetloc*`; do (cd ../lib64;ln -s ../lib/$$lib); done;); \ + fi \ + fi + .PHONY: irqbalance-install irqbalance-install: if ! [ -e irqbalance/config.h ]; then (cd irqbalance; ./autogen.sh;./configure --prefix=/usr); fi -- 2.39.5