ioemu: make TPM optional
PATCH 1/1 ioemu: make TPM optional
ioemu: make TPM optional
Signed-off-by Samuel Thibault <[email protected]>
tools/ioemu/Makefile.target +1 -0
@@ -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)
tools/ioemu/hw/pc.c +2 -0
@@ -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 );