ioemu: make TPM optional Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> diff -r f5493972d237 tools/ioemu/Makefile.target --- a/tools/ioemu/Makefile.target Thu Feb 07 14:15:19 2008 +0000 +++ b/tools/ioemu/Makefile.target Thu Feb 07 14:15:34 2008 +0000 @@ -420,6 +420,7 @@ VL_OBJS+= xenfb.o VL_OBJS+= xenfb.o VL_OBJS+= xen_console.o VL_OBJS+= tpm_tis.o +CPPFLAGS += -DHAS_TPM CPPFLAGS += -DHAS_AUDIO endif ifeq ($(TARGET_BASE_ARCH), ppc) diff -r f5493972d237 tools/ioemu/hw/pc.c --- a/tools/ioemu/hw/pc.c Thu Feb 07 14:15:19 2008 +0000 +++ b/tools/ioemu/hw/pc.c Thu Feb 07 14:15:34 2008 +0000 @@ -1013,8 +1013,10 @@ static void pc_init1(uint64_t ram_size, } } +#ifdef HAS_TPM if (has_tpm_device()) tpm_tis_init(&pic_set_irq_new, isa_pic, 11); +#endif kbd_init(); DMA_init(0); _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel