]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
Makefile: hwloc
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 13 Jan 2016 14:17:24 +0000 (09:17 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 13 Jan 2016 14:17:24 +0000 (09:17 -0500)
Add hwloc target if building that.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
root_image/Makefile

index 899c32f124835f509695a0ef2b8a9784312c51c3..4c73b2db63568e76de417d4a7ee199cc882ba571 100644 (file)
@@ -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