qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Vivier <lvivier@redhat.com>
To: Cornelia Huck <cohuck@redhat.com>,
	stefanb@linux.vnet.ibm.com, pbonzini@redhat.com
Cc: marcandre.lureau@redhat.com, thuth@redhat.com,
	qemu-devel@nongnu.org, f4bug@amsat.org
Subject: Re: [Qemu-devel] [PATCH v2] tpm: move qdev_prop_tpm to hw/tpm/
Date: Mon, 18 Dec 2017 20:40:36 +0100	[thread overview]
Message-ID: <c8748f83-b98e-6dd2-ddf5-6620f6b36f30@redhat.com> (raw)
In-Reply-To: <20171218183631.32357-1-cohuck@redhat.com>

On 18/12/2017 19:36, Cornelia Huck wrote:
> Building with --disable-tpm yields
> 
> ../hw/core/qdev-properties-system.o: In function `set_tpm':
> /home/cohuck/git/qemu/hw/core/qdev-properties-system.c:274: undefined reference to `qemu_find_tpm_be'
> /home/cohuck/git/qemu/hw/core/qdev-properties-system.c:278: undefined reference to `tpm_backend_init'
> ../hw/core/qdev-properties-system.o: In function `release_tpm':
> /home/cohuck/git/qemu/hw/core/qdev-properties-system.c:291: undefined reference to `tpm_backend_reset'
> 
> Move the implementation of DEFINE_PROP_TPMBE to hw/tpm/ so that it is
> only built when tpm is actually configured, and build tpm_util in every
> case.
> 
> Fixes: 493b78303532 ("qdev: add DEFINE_PROP_TPMBE")
> Reported-by: Thomas Huth <thuth@redhat.com>
> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
> ---
> v1->v2: fix x86_64 build with mingw (always build tpm_util)
> ---
>  hw/core/qdev-properties-system.c | 64 --------------------------------------
>  hw/tpm/Makefile.objs             |  5 +--
>  hw/tpm/tpm_util.c                | 67 ++++++++++++++++++++++++++++++++++++++++
>  hw/tpm/tpm_util.h                |  3 ++
>  include/hw/qdev-properties.h     |  2 --
>  5 files changed, 73 insertions(+), 68 deletions(-)
> 

Reviewed-by: Laurent Vivier <lvivier@redhat.com>

  reply	other threads:[~2017-12-18 19:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-18 18:36 [Qemu-devel] [PATCH v2] tpm: move qdev_prop_tpm to hw/tpm/ Cornelia Huck
2017-12-18 19:40 ` Laurent Vivier [this message]
2017-12-18 20:10   ` Stefan Berger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c8748f83-b98e-6dd2-ddf5-6620f6b36f30@redhat.com \
    --to=lvivier@redhat.com \
    --cc=cohuck@redhat.com \
    --cc=f4bug@amsat.org \
    --cc=marcandre.lureau@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanb@linux.vnet.ibm.com \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).