aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlaf Hering <olaf@aepfle.de>2012-08-03 09:54:07 +0100
committerOlaf Hering <olaf@aepfle.de>2012-08-03 09:54:07 +0100
commit672480c885d135e2f0cc53b6c0c89bedebb9a54a (patch)
treedd232183b7fb53c6c432ffc8252062e0e6a28955
parentf9e84f5c78248b39f2ac885de6efa8f025ccfa50 (diff)
downloadxen-672480c885d135e2f0cc53b6c0c89bedebb9a54a.tar.gz
xen-672480c885d135e2f0cc53b6c0c89bedebb9a54a.tar.bz2
xen-672480c885d135e2f0cc53b6c0c89bedebb9a54a.zip
tools/vtpm: fix tpm_version.h error during parallel build
Generating the tpm_version.h is not make -j safe: In file included from ../tpm/tpm_emulator.h:25:0, from ../tpm/tpm_startup.c:18: ../tpm/tpm_version.h:1:0: error: unterminated #ifndef make[5]: *** [tpm_startup.o] Error 1 This happens because make can not know that 'all-recursive' depends on 'version'. Fix this by calling the individual make targets. Doing it this way avoids adding yet another patch to the downloaded source. Signed-off-by: Olaf Hering <olaf@aepfle.de> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
-rw-r--r--tools/vtpm/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/vtpm/Makefile b/tools/vtpm/Makefile
index c8a5ece6eb..7b3efa51dc 100644
--- a/tools/vtpm/Makefile
+++ b/tools/vtpm/Makefile
@@ -23,7 +23,7 @@ build: build_sub
.PHONY: install
install: build
- $(MAKE) -C $(VTPM_DIR) $@
+ $(MAKE) -C $(VTPM_DIR) install-recursive
.PHONY: clean
clean:
@@ -66,7 +66,8 @@ updatepatches: clean orig
.PHONY: build_sub
build_sub: $(VTPM_DIR)/tpmd/tpmd
set -e; if [ -e $(GMP_HEADER) ]; then \
- $(MAKE) -C $(VTPM_DIR); \
+ $(MAKE) -C $(VTPM_DIR) version; \
+ $(MAKE) -C $(VTPM_DIR) all-recursive; \
else \
echo "=== Unable to build VTPMs. libgmp could not be found."; \
fi