qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where does these TPM flags comes from?


From: Paolo Bonzini
Subject: Re: Where does these TPM flags comes from?
Date: Tue, 8 Sep 2020 08:32:02 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0

On 07/09/20 22:45, 罗勇刚(Yonggang Luo) wrote:
> tpm_ss = ss.source_set()
> 
> tpm_ss.add(files('tpm_backend.c'))
> tpm_ss.add(files('tpm_util.c'))
> tpm_ss.add(when: 'CONFIG_TPM_PASSTHROUGH', if_true:
> files('tpm_passthrough.c'))
> tpm_ss.add(when: 'CONFIG_TPM_EMULATOR', if_true: files('tpm_emulator.c'))
> 
> softmmu_ss.add_all(when: 'CONFIG_TPM', if_true: tpm_ss)
> 
> I can not found the config for CONFIG_TPM_PASSTHROUGH  and 
> CONFIG_TPM_EMULATOR 
> 

It comes from *-config-devices.mak, which is created by
scripts/minikconf.py based on these rules from backends/tpm/Kconfig:

config TPM_BACKEND
    bool
    depends on TPM

config TPM_PASSTHROUGH
    bool
    default y
    # FIXME: should check for x86 host as well
    depends on TPM_BACKEND && LINUX

config TPM_EMULATOR
    bool
    default y
    depends on TPM_BACKEND

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]