Skip to contentSkip to conversation

tools/vtpm: fix version.h error during parallel build

PATCH In review Olaf Hering 1 participant 2 messages Jul 12, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/vtpm: fix version.h error during parallel build

# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1342079491 -7200
# Node ID 02ec826cab1e4acb25b364a180a1597ace1149f9 # Parent 42f76d536b116d2ebad1b6705ae51ecd171d2581 tools/vtpm: fix 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

Add another patch which adds proper dependencies in the tpm_manager Makefile.

tools/vtpm/Makefile +2 -1
diff -r 42f76d536b11 -r 02ec826cab1e tools/vtpm/Makefile
@@ -51,7 +51,8 @@ mrproper:
 
 	set -e; cd $(VTPM_DIR); \
 	patch -p1 < ../vtpm-0.5.1.patch; \
-	patch -p1 < ../vtpm-0.5.1-LDLIBS.patch
+	patch -p1 < ../vtpm-0.5.1-LDLIBS.patch; \
+	patch -p1 < ../vtpm-0.5.1-version.h.patch
 
 orig: $(TPM_EMULATOR_TARFILE)
 	mkdir $(ORIG_DIR);
tools/vtpm/vtpm-0.5.1-version.h.patch new file +45 -0

45 lines not on this page · raw message

#1 lore raw
Quoted 4 lines · Olaf Hering

++++ tpm_emulator-0.5.1/Makefile
+@@ -14,13 +14,16 @@ SUBDIRS := tpmd
+
+ all: version all-recursive

The actual bug is that version and all-recursive will run in parallel. To fix this all-recursive needs to depend on version.

I will send a fixed version of that patch.

Olaf