[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] tools/vtpm: do not install if vtpm can not be build


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Wed, 14 Mar 2012 20:02:10 +0100
  • Delivery-date: Wed, 14 Mar 2012 19:02:44 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1331751709 -3600
# Node ID eed3dbadeb151d9d93cf2b041aa63b9bacd1e4ad
# Parent  db4b70a33865e2fe77584c67d7d7644045ddf4ca
tools/vtpm: do not install if vtpm can not be build

A simple 'make tools' fails in vtpm because there is also a 'make install'
during make tools. vtpm checks only in the build target wether it can be
built at all, but the check is missing in the install target as well.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

diff -r db4b70a33865 -r eed3dbadeb15 tools/vtpm/Makefile
--- a/tools/vtpm/Makefile
+++ b/tools/vtpm/Makefile
@@ -23,7 +23,11 @@ build: build_sub
 
 .PHONY: install
 install: build
-       $(MAKE) -C $(VTPM_DIR) $@
+       set -e; if [ -e $(GMP_HEADER) ]; then \
+               $(MAKE) -C $(VTPM_DIR) $@; \
+       else \
+               echo "=== Unable to build VTPMs. libgmp could not be found."; \
+       fi
 
 .PHONY: clean
 clean:

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.