From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwEVQ-0005eU-AP for qemu-devel@nongnu.org; Fri, 18 Jan 2013 11:09:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwEVG-0008LJ-WD for qemu-devel@nongnu.org; Fri, 18 Jan 2013 11:09:24 -0500 Received: from e7.ny.us.ibm.com ([32.97.182.137]:56754) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwEVG-0008LF-Se for qemu-devel@nongnu.org; Fri, 18 Jan 2013 11:09:14 -0500 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 18 Jan 2013 11:09:14 -0500 Received: from d01relay07.pok.ibm.com (d01relay07.pok.ibm.com [9.56.227.147]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id ECCF7C9001C for ; Fri, 18 Jan 2013 11:08:06 -0500 (EST) Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay07.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r0IG86Rb64421898 for ; Fri, 18 Jan 2013 11:08:06 -0500 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r0IG85C9024760 for ; Fri, 18 Jan 2013 14:08:06 -0200 From: Stefan Berger Date: Fri, 18 Jan 2013 11:02:47 -0500 Message-Id: <1358524968-22297-8-git-send-email-stefanb@linux.vnet.ibm.com> In-Reply-To: <1358524968-22297-1-git-send-email-stefanb@linux.vnet.ibm.com> References: <1358524968-22297-1-git-send-email-stefanb@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH V20 7/8] Introduce --enable-tpm-passthrough configure option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: stefanb@linux.vnet.ibm.com, qemu-devel@nongnu.org, anthony@codemonkey.ws Cc: andreas.niederl@iaik.tugraz.at, mst@redhat.com Introduce --enable-tpm-passthrough configure option. Signed-off-by: Stefan Berger --- configure | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 73fc146..f54d40e 100755 --- a/configure +++ b/configure @@ -224,6 +224,7 @@ coroutine="" seccomp="" glusterfs="" tpm="no" +tpm_passthrough="no" # parse CC options first for opt do @@ -874,11 +875,20 @@ for opt do ;; --enable-tpm) tpm="yes" ;; + --enable-tpm-passthrough) tpm_passthrough="yes" + ;; *) echo "ERROR: unknown option $opt"; show_help="yes" ;; esac done +if test "$tpm" = "no" ; then + if test "$tpm_passthrough" = "yes"; then + echo "ERROR: --enable-tpm-passthrough requires --enable-tpm" + exit 1 + fi +fi + case "$cpu" in sparc) LDFLAGS="-m32 $LDFLAGS" @@ -1123,6 +1133,7 @@ echo " gthread, ucontext, sigaltstack, windows" echo " --enable-glusterfs enable GlusterFS backend" echo " --disable-glusterfs disable GlusterFS backend" echo " --enable-tpm enable TPM support" +echo " --enable-tpm-passthrough enable TPM passthrough driver" echo "" echo "NOTE: The object files are built at the place where configure is launched" exit 1 @@ -3255,6 +3266,7 @@ echo "seccomp support $seccomp" echo "coroutine backend $coroutine_backend" echo "GlusterFS support $glusterfs" echo "TPM support $tpm" +echo "TPM passthrough $tpm_passthrough" if test "$sdl_too_old" = "yes"; then echo "-> Your SDL version is too old - please upgrade to have SDL support" @@ -4157,7 +4169,9 @@ fi if test "$tpm" = "yes"; then if test "$target_softmmu" = "yes" ; then if test "$linux" = "yes" ; then - echo "CONFIG_TPM_PASSTHROUGH=y" >> $config_host_mak + if test "$tpm_passthrough" = "yes" ; then + echo "CONFIG_TPM_PASSTHROUGH=y" >> $config_host_mak + fi fi echo "CONFIG_TPM=y" >> $config_host_mak fi -- 1.7.11.7