[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V25 4/7] Build the TPM frontend code
From: |
Stefan Berger |
Subject: |
[Qemu-devel] [PATCH V25 4/7] Build the TPM frontend code |
Date: |
Thu, 21 Feb 2013 11:33:30 -0500 |
Build the TPM frontend code that has been added so far.
Signed-off-by: Stefan Berger <address@hidden>
Reviewed-by: Corey Bryant <address@hidden>
---
configure | 11 +++++++++++
default-configs/i386-softmmu.mak | 1 +
default-configs/x86_64-softmmu.mak | 1 +
tpm/Makefile.objs | 3 +++
4 files changed, 16 insertions(+)
diff --git a/configure b/configure
index bf5970f..c125570 100755
--- a/configure
+++ b/configure
@@ -226,6 +226,7 @@ coroutine=""
seccomp=""
glusterfs=""
virtio_blk_data_plane=""
+tpm="no"
# parse CC options first
for opt do
@@ -897,6 +898,8 @@ for opt do
;;
--enable-virtio-blk-data-plane) virtio_blk_data_plane="yes"
;;
+ --enable-tpm) tpm="yes"
+ ;;
*) echo "ERROR: unknown option $opt"; show_help="yes"
;;
esac
@@ -1146,6 +1149,7 @@ echo " --enable-glusterfs enable GlusterFS backend"
echo " --disable-glusterfs disable GlusterFS backend"
echo " --enable-gcov enable test coverage analysis with gcov"
echo " --gcov=GCOV use specified gcov [$gcov_tool]"
+echo " --enable-tpm enable TPM support"
echo ""
echo "NOTE: The object files are built at the place where configure is
launched"
exit 1
@@ -3360,6 +3364,7 @@ echo "GlusterFS support $glusterfs"
echo "virtio-blk-data-plane $virtio_blk_data_plane"
echo "gcov $gcov_tool"
echo "gcov enabled $gcov"
+echo "TPM support $tpm"
if test "$sdl_too_old" = "yes"; then
echo "-> Your SDL version is too old - please upgrade to have SDL support"
@@ -4271,6 +4276,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
+
if test "$ARCH" = "tci"; then
linker_script=""
else
diff --git a/default-configs/i386-softmmu.mak b/default-configs/i386-softmmu.mak
index 2c78175..4a32342 100644
--- a/default-configs/i386-softmmu.mak
+++ b/default-configs/i386-softmmu.mak
@@ -25,3 +25,4 @@ CONFIG_HPET=y
CONFIG_APPLESMC=y
CONFIG_I8259=y
CONFIG_PFLASH_CFI01=y
+CONFIG_TPM_TIS=y
diff --git a/default-configs/x86_64-softmmu.mak
b/default-configs/x86_64-softmmu.mak
index 233a856..d518f51 100644
--- a/default-configs/x86_64-softmmu.mak
+++ b/default-configs/x86_64-softmmu.mak
@@ -25,3 +25,4 @@ CONFIG_HPET=y
CONFIG_APPLESMC=y
CONFIG_I8259=y
CONFIG_PFLASH_CFI01=y
+CONFIG_TPM_TIS=y
diff --git a/tpm/Makefile.objs b/tpm/Makefile.objs
index dffb567..94ad2e7 100644
--- a/tpm/Makefile.objs
+++ b/tpm/Makefile.objs
@@ -1 +1,4 @@
common-obj-y = tpm.o
+ifeq ($(CONFIG_TPM),y)
+common-obj-$(CONFIG_TPM_TIS) += tpm_tis.o
+endif
--
1.7.11.7
- [Qemu-devel] [PATCH V25 0/7] QEMU Trusted Platform Module (TPM) integration, Stefan Berger, 2013/02/21
- [Qemu-devel] [PATCH V25 1/7] Support for TPM command line options, Stefan Berger, 2013/02/21
- [Qemu-devel] [PATCH V25 5/7] Add a TPM Passthrough backend driver implementation, Stefan Berger, 2013/02/21
- [Qemu-devel] [PATCH V25 3/7] Add a debug register, Stefan Berger, 2013/02/21
- [Qemu-devel] [PATCH V25 6/7] Add support for cancelling of a TPM command, Stefan Berger, 2013/02/21
- [Qemu-devel] [PATCH V25 4/7] Build the TPM frontend code,
Stefan Berger <=
- [Qemu-devel] [PATCH V25 7/7] Build TPM passthrough for i386 and x86_64 targets, Stefan Berger, 2013/02/21
- [Qemu-devel] [PATCH V25 2/7] Add TPM (frontend) hardware interface (TPM TIS) to QEMU, Stefan Berger, 2013/02/21