From: Konrad Rzeszutek Wilk Date: Wed, 13 Jan 2016 14:17:24 +0000 (-0500) Subject: Makefile: hwloc X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e780d7262cfcb4900906d93675c6b52e83d42fc0;p=xentesttools%2Fbootstrap.git Makefile: hwloc Add hwloc target if building that. Signed-off-by: Konrad Rzeszutek Wilk --- diff --git a/root_image/Makefile b/root_image/Makefile index 899c32f..4c73b2d 100644 --- a/root_image/Makefile +++ b/root_image/Makefile @@ -723,6 +723,18 @@ hwloc-install: fi \ fi +.PHONY: hwloc-install +hwloc-install: userspace-prep + $(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: userspace-prep if ! [ -e irqbalance/config.h ]; then (cd irqbalance; ./autogen.sh;./configure --prefix=/usr); fi