build: Disable volatile storage debug for debug build

Disable the volatile storage debug for a debug build since this
causes the volatile state file to be written and this changes
the behavior upon a restart of the TPM. This may cause the TPM to
not work correctly then.

Print out some more build parameters.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
This commit is contained in:
Stefan Berger 2015-05-01 21:15:46 -04:00
parent 40e13951a9
commit 384bf2e2a7

View File

@ -51,7 +51,10 @@ fi
debug_defines=
if test "$DEBUG" == "yes"; then
debug_defines="-DTPM_DEBUG -DTPM_VOLATILE_STORE"
debug_defines="-DTPM_DEBUG"
# Enable the following only if ABSOLUTELY necessary
# volatile state will be written and behavior changes
#"-DTPM_VOLATILE_STORE"
fi
AC_SUBST(DEBUG_DEFINES, $debug_defines)
@ -166,5 +169,16 @@ AC_CONFIG_FILES(Makefile \
tests/Makefile)
AC_OUTPUT
if test -z "$enable_debug" ; then
enable_debug="no"
fi
echo
echo "CFLAGS=$CFLAGS"
echo "LDFLAGS=$LDFLAGS"
echo
echo "Version to build : $PACKAGE_VERSION"
echo "Crypto library : $cryptolib"
echo "Debug build : $enable_debug"
echo
echo