From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1MGB-0002Vq-G1 for qemu-devel@nongnu.org; Fri, 01 Feb 2013 14:27:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U1MCZ-0002oG-HW for qemu-devel@nongnu.org; Fri, 01 Feb 2013 14:26:51 -0500 Received: from e37.co.us.ibm.com ([32.97.110.158]:51531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1MCZ-0002nM-B6 for qemu-devel@nongnu.org; Fri, 01 Feb 2013 14:23:07 -0500 Received: from /spool/local by e37.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 1 Feb 2013 12:23:06 -0700 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id 4A052C40001 for ; Fri, 1 Feb 2013 12:23:01 -0700 (MST) Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r11JN1d9233998 for ; Fri, 1 Feb 2013 12:23:01 -0700 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r11JLvCU021351 for ; Fri, 1 Feb 2013 12:21:58 -0700 Message-ID: <510C15D1.2050905@linux.vnet.ibm.com> Date: Fri, 01 Feb 2013 14:21:53 -0500 From: Corey Bryant MIME-Version: 1.0 References: <1358524968-22297-1-git-send-email-stefanb@linux.vnet.ibm.com> <1358524968-22297-8-git-send-email-stefanb@linux.vnet.ibm.com> In-Reply-To: <1358524968-22297-8-git-send-email-stefanb@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [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: Stefan Berger Cc: mst@redhat.com, qemu-devel@nongnu.org, anthony@codemonkey.ws, andreas.niederl@iaik.tugraz.at On 01/18/2013 11:02 AM, Stefan Berger wrote: > 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 > Reviewed-by: Corey Bryant -- Regards, Corey Bryant