[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V12 4/8] Build the TPM frontend code
From: |
Stefan Berger |
Subject: |
[Qemu-devel] [PATCH V12 4/8] Build the TPM frontend code |
Date: |
Tue, 11 Oct 2011 13:32:20 -0400 |
User-agent: |
quilt/0.48-1 |
Build the TPM frontend code that has been added so far.
Signed-off-by: Stefan Berger <address@hidden>
---
Makefile.target | 1 +
configure | 11 +++++++++++
2 files changed, 12 insertions(+)
Index: qemu-git.pt/Makefile.target
===================================================================
--- qemu-git.pt.orig/Makefile.target
+++ qemu-git.pt/Makefile.target
@@ -194,6 +194,7 @@ obj-$(CONFIG_REALLY_VIRTFS) += 9pfs/virt
obj-$(CONFIG_KVM) += kvm.o kvm-all.o
obj-$(CONFIG_NO_KVM) += kvm-stub.o
obj-y += memory.o
+obj-$(CONFIG_TPM) += tpm.o tpm_tis.o
LIBS+=-lz
QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
Index: qemu-git.pt/configure
===================================================================
--- qemu-git.pt.orig/configure
+++ qemu-git.pt/configure
@@ -182,6 +182,7 @@ usb_redir=""
opengl=""
zlib="yes"
guest_agent="yes"
+tpm="no"
# parse CC options first
for opt do
@@ -772,6 +773,8 @@ for opt do
;;
--disable-guest-agent) guest_agent="no"
;;
+ --enable-tpm) tpm="yes"
+ ;;
*) echo "ERROR: unknown option $opt"; show_help="yes"
;;
esac
@@ -1054,6 +1057,7 @@ echo " --disable-usb-redir disable
echo " --enable-usb-redir enable usb network redirection support"
echo " --disable-guest-agent disable building of the QEMU Guest Agent"
echo " --enable-guest-agent enable building of the QEMU Guest Agent"
+echo " --enable-tpm enable TPM support"
echo ""
echo "NOTE: The object files are built at the place where configure is
launched"
exit 1
@@ -2720,6 +2724,7 @@ echo "nss used $smartcard_nss"
echo "usb net redir $usb_redir"
echo "OpenGL support $opengl"
echo "build guest agent $guest_agent"
+echo "TPM support $tpm"
if test "$sdl_too_old" = "yes"; then
echo "-> Your SDL version is too old - please upgrade to have SDL support"
@@ -3567,6 +3572,12 @@ if test "$gprof" = "yes" ; then
fi
fi
+if test "$tpm" = "yes"; then
+ if test "$target_softmmu" = "yes" ; then
+ echo "CONFIG_TPM=y" >> $config_host_mak
+ fi
+fi
+
linker_script="-Wl,-T../config-host.ld -Wl,-T,\$(SRC_PATH)/\$(ARCH).ld"
if test "$target_linux_user" = "yes" -o "$target_bsd_user" = "yes" ; then
case "$ARCH" in
- [Qemu-devel] [PATCH V12 0/8] Qemu Trusted Platform Module (TPM) integration, Stefan Berger, 2011/10/11
- [Qemu-devel] [PATCH V12 2/8] Add TPM (frontend) hardware interface (TPM TIS) to Qemu, Stefan Berger, 2011/10/11
- [Qemu-devel] [PATCH V12 8/8] Add fd parameter for TPM passthrough driver, Stefan Berger, 2011/10/11
- [Qemu-devel] [PATCH V12 3/8] Add a debug register, Stefan Berger, 2011/10/11
- [Qemu-devel] [PATCH V12 1/8] Support for TPM command line options, Stefan Berger, 2011/10/11
- [Qemu-devel] [PATCH V12 7/8] Move parsing of filedescriptor into common function, Stefan Berger, 2011/10/11
- [Qemu-devel] [PATCH V12 4/8] Build the TPM frontend code,
Stefan Berger <=
- [Qemu-devel] [PATCH V12 6/8] Introduce --enable-tpm-passthrough configure option, Stefan Berger, 2011/10/11
- [Qemu-devel] [PATCH V12 5/8] Add a TPM Passthrough backend driver implementation, Stefan Berger, 2011/10/11