* Where does these TPM flags comes from?
@ 2020-09-07 20:45 罗勇刚(Yonggang Luo)
2020-09-07 20:51 ` Philippe Mathieu-Daudé
2020-09-08 6:32 ` Paolo Bonzini
0 siblings, 2 replies; 3+ messages in thread
From: 罗勇刚(Yonggang Luo) @ 2020-09-07 20:45 UTC (permalink / raw)
To: Paolo Bonzini, qemu-level
[-- Attachment #1: Type: text/plain, Size: 472 bytes --]
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
--
此致
礼
罗勇刚
Yours
sincerely,
Yonggang Luo
[-- Attachment #2: Type: text/html, Size: 603 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Where does these TPM flags comes from?
2020-09-07 20:45 Where does these TPM flags comes from? 罗勇刚(Yonggang Luo)
@ 2020-09-07 20:51 ` Philippe Mathieu-Daudé
2020-09-08 6:32 ` Paolo Bonzini
1 sibling, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-09-07 20:51 UTC (permalink / raw)
To: luoyonggang, Paolo Bonzini, qemu-level
On 9/7/20 10:45 PM, 罗勇刚(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
This device is available but disabled by default.
By default only the configurations defined in default-configs/
are built, but you can add customized configuration.
This allow you to add or reduce the set of features you want
your build to have.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Where does these TPM flags comes from?
2020-09-07 20:45 Where does these TPM flags comes from? 罗勇刚(Yonggang Luo)
2020-09-07 20:51 ` Philippe Mathieu-Daudé
@ 2020-09-08 6:32 ` Paolo Bonzini
1 sibling, 0 replies; 3+ messages in thread
From: Paolo Bonzini @ 2020-09-08 6:32 UTC (permalink / raw)
To: luoyonggang, qemu-level
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-09-08 6:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-07 20:45 Where does these TPM flags comes from? 罗勇刚(Yonggang Luo)
2020-09-07 20:51 ` Philippe Mathieu-Daudé
2020-09-08 6:32 ` Paolo Bonzini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).