* [yocto-kernel-cache][PATCH 0/1] features: enable tpm
@ 2017-01-23 14:11 Patrick Ohly
2017-01-23 14:11 ` [yocto-kernel-cache][PATCH 1/1] meta: add TPM feature Patrick Ohly
2017-01-23 19:51 ` [yocto-kernel-cache][PATCH 0/1] features: enable tpm Bruce Ashfield
0 siblings, 2 replies; 5+ messages in thread
From: Patrick Ohly @ 2017-01-23 14:11 UTC (permalink / raw)
To: yocto
This was tested with the yocto-4.8 branch and linux-yocto 4.8.17 under
qemu with TPM provided by swtpm, but can and should also get merged
into the yocto-4.9 and master branches.
The feature intentionally enables all current TPM drivers. A real
production kernel should be more selective.
Patrick Ohly (1):
meta: add TPM feature
features/tpm/tpm.cfg | 18 ++++++++++++++++++
features/tpm/tpm.scc | 4 ++++
2 files changed, 22 insertions(+)
create mode 100644 features/tpm/tpm.cfg
create mode 100644 features/tpm/tpm.scc
base-commit: 3edb4de355873d32da9307a011adea2542bd05a7
--
git-series 0.9.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [yocto-kernel-cache][PATCH 1/1] meta: add TPM feature
2017-01-23 14:11 [yocto-kernel-cache][PATCH 0/1] features: enable tpm Patrick Ohly
@ 2017-01-23 14:11 ` Patrick Ohly
2017-01-23 19:51 ` [yocto-kernel-cache][PATCH 0/1] features: enable tpm Bruce Ashfield
1 sibling, 0 replies; 5+ messages in thread
From: Patrick Ohly @ 2017-01-23 14:11 UTC (permalink / raw)
To: yocto
Some hardware has a TPM chip and in addition, qemu can emulate it
using swtpm.
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
---
features/tpm/tpm.cfg | 18 ++++++++++++++++++
features/tpm/tpm.scc | 4 ++++
2 files changed, 22 insertions(+)
create mode 100644 features/tpm/tpm.cfg
create mode 100644 features/tpm/tpm.scc
diff --git a/features/tpm/tpm.cfg b/features/tpm/tpm.cfg
new file mode 100644
index 0000000..8b3f6d9
--- /dev/null
+++ b/features/tpm/tpm.cfg
@@ -0,0 +1,18 @@
+# Enable TPM device drivers.
+CONFIG_TCG_TPM=y
+CONFIG_HW_RANDOM_TPM=y
+CONFIG_TCG_TPM=y
+CONFIG_TCG_TIS_CORE=y
+CONFIG_TCG_TIS=y
+CONFIG_TCG_TIS_SPI=y
+CONFIG_TCG_TIS_I2C_ATMEL=y
+CONFIG_TCG_TIS_I2C_INFINEON=y
+CONFIG_TCG_TIS_I2C_NUVOTON=y
+CONFIG_TCG_NSC=y
+CONFIG_TCG_ATMEL=y
+CONFIG_TCG_INFINEON=y
+CONFIG_TCG_CRB=y
+CONFIG_TCG_VTPM_PROXY=y
+CONFIG_TCG_TIS_ST33ZP24=y
+CONFIG_TCG_TIS_ST33ZP24_I2C=y
+CONFIG_TCG_TIS_ST33ZP24_SPI=y
diff --git a/features/tpm/tpm.scc b/features/tpm/tpm.scc
new file mode 100644
index 0000000..eeddc31
--- /dev/null
+++ b/features/tpm/tpm.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable TCG TPM driver (Trusted Computing Group Trusted Platform Module)"
+define KFEATURE_COMPATIBILITY board
+
+kconf hardware tpm.cfg
--
git-series 0.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [yocto-kernel-cache][PATCH 0/1] features: enable tpm
2017-01-23 14:11 [yocto-kernel-cache][PATCH 0/1] features: enable tpm Patrick Ohly
2017-01-23 14:11 ` [yocto-kernel-cache][PATCH 1/1] meta: add TPM feature Patrick Ohly
@ 2017-01-23 19:51 ` Bruce Ashfield
2017-01-23 20:24 ` Patrick Ohly
1 sibling, 1 reply; 5+ messages in thread
From: Bruce Ashfield @ 2017-01-23 19:51 UTC (permalink / raw)
To: Patrick Ohly, yocto
On 01/23/2017 09:11 AM, Patrick Ohly wrote:
> This was tested with the yocto-4.8 branch and linux-yocto 4.8.17 under
> qemu with TPM provided by swtpm, but can and should also get merged
> into the yocto-4.9 and master branches.
>
> The feature intentionally enables all current TPM drivers. A real
> production kernel should be more selective.
>
Looks good to me. I've staged the change and will send SRCREV
updates later.
This missed a cc' to linux-yocto, but I noticed it regardless :D
Bruce
> Patrick Ohly (1):
> meta: add TPM feature
>
> features/tpm/tpm.cfg | 18 ++++++++++++++++++
> features/tpm/tpm.scc | 4 ++++
> 2 files changed, 22 insertions(+)
> create mode 100644 features/tpm/tpm.cfg
> create mode 100644 features/tpm/tpm.scc
>
> base-commit: 3edb4de355873d32da9307a011adea2542bd05a7
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto-kernel-cache][PATCH 0/1] features: enable tpm
2017-01-23 19:51 ` [yocto-kernel-cache][PATCH 0/1] features: enable tpm Bruce Ashfield
@ 2017-01-23 20:24 ` Patrick Ohly
[not found] ` <CADkTA4Mve6Mj5Y7_F7WsGzrVeFL_VfiPknUyzRffLQ_NRQVK0A@mail.gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Patrick Ohly @ 2017-01-23 20:24 UTC (permalink / raw)
To: Bruce Ashfield; +Cc: yocto
On Mon, 2017-01-23 at 14:51 -0500, Bruce Ashfield wrote:
> On 01/23/2017 09:11 AM, Patrick Ohly wrote:
> > This was tested with the yocto-4.8 branch and linux-yocto 4.8.17 under
> > qemu with TPM provided by swtpm, but can and should also get merged
> > into the yocto-4.9 and master branches.
> >
> > The feature intentionally enables all current TPM drivers. A real
> > production kernel should be more selective.
> >
>
> Looks good to me. I've staged the change and will send SRCREV
> updates later.
>
> This missed a cc' to linux-yocto, but I noticed it regardless :D
Thanks ;-} I had checked the 00-README in the yocto-kernel-cache, but
couldn't find instructions on where and how to submit changes. Is that
documented somewhere?
--
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-01-23 22:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-23 14:11 [yocto-kernel-cache][PATCH 0/1] features: enable tpm Patrick Ohly
2017-01-23 14:11 ` [yocto-kernel-cache][PATCH 1/1] meta: add TPM feature Patrick Ohly
2017-01-23 19:51 ` [yocto-kernel-cache][PATCH 0/1] features: enable tpm Bruce Ashfield
2017-01-23 20:24 ` Patrick Ohly
[not found] ` <CADkTA4Mve6Mj5Y7_F7WsGzrVeFL_VfiPknUyzRffLQ_NRQVK0A@mail.gmail.com>
[not found] ` <CADkTA4NOWQk0zfAUALjJanHjgqdi6rMLOk7Z=ZY0cit8-fqbbw@mail.gmail.com>
2017-01-23 22:55 ` Bruce Ashfield
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.