[Skiboot] [PATCH 00/15] Add libstb and its dependencies
Claudio Carvalho
cclaudio at linux.vnet.ibm.com
Thu Aug 11 15:23:42 AEST 2016
Libstb is an API that provides the basic functionalities for secure and
trusted boot. We can use it to add secure and trusted boot support
tor the platforms. Habanero is our first target.
This patch set adds the libstb and all its dependencies.
The first three patches add an initial libstb documentation
The following eleven patches add the libstb dependencies:
* ROM code driver
* I2C Nuvoton TPM 2.0 device driver
* TCG Software Stack implementation
* Event log manager implementation
The last patch adds the libstb. The libstb API is documented in libstb/stb.h
Claudio Carvalho (15):
doc/device-tree: Add ibm,secureboot.txt
doc/device-tree: Add tpm.txt
doc: Add initial secure and trusted boot documentation
include: Fix u8 type in chip.h
libc/string: Add memcpy_ci
libc/string: Add strnlen
asm: Add rom_entry.S
libstb: Add secure boot header structures
libstb: Add TSS and EventLogMgr for TPM 2.0
libstb: Add tpm interface
libstb/drivers: Add I2C nuvoton driver for TPM 2.0
libstb/drivers/tpm_i2c_nuvoton.c: Set I2C request timeout
libstb: Add rom interface
libstb/drivers: Add ROM code driver
Add libstb
Makefile.main | 3 +-
asm/Makefile.inc | 2 +-
asm/rom_entry.S | 52 ++
doc/device-tree/ibm,secureboot.txt | 42 ++
doc/device-tree/tpm.txt | 40 ++
doc/stb.txt | 147 +++++
include/chip.h | 6 +-
libc/include/string.h | 4 +-
libc/string/Makefile.inc | 9 +-
libc/string/memcpy_ci.c | 50 ++
libc/string/strnlen.c | 28 +
libstb/Makefile.inc | 14 +
libstb/container.c | 75 +++
libstb/container.h | 139 +++++
libstb/drivers/Makefile.inc | 11 +
libstb/drivers/romcode.c | 144 +++++
libstb/drivers/romcode.h | 24 +
libstb/drivers/tpm_i2c_nuvoton.c | 653 ++++++++++++++++++++++
libstb/drivers/tpm_i2c_nuvoton.h | 22 +
libstb/rom.c | 53 ++
libstb/rom.h | 44 ++
libstb/status_codes.h | 38 ++
libstb/stb.c | 333 +++++++++++
libstb/stb.h | 74 +++
libstb/tpm.c | 306 ++++++++++
libstb/tpm.h | 91 +++
libstb/tss/Makefile.inc | 13 +
libstb/tss/tpmLogMgr.C | 563 +++++++++++++++++++
libstb/tss/tpmLogMgr.H | 248 +++++++++
libstb/tss/trustedTypes.C | 926 +++++++++++++++++++++++++++++++
libstb/tss/trustedTypes.H | 470 ++++++++++++++++
libstb/tss/trustedbootCmds.C | 1016 ++++++++++++++++++++++++++++++++++
libstb/tss/trustedbootCmds.H | 177 ++++++
libstb/tss/trustedbootUtils.C | 22 +
libstb/tss/trustedbootUtils.H | 85 +++
libstb/tss/trustedboot_reasoncodes.H | 88 +++
36 files changed, 6002 insertions(+), 10 deletions(-)
create mode 100644 asm/rom_entry.S
create mode 100644 doc/device-tree/ibm,secureboot.txt
create mode 100644 doc/device-tree/tpm.txt
create mode 100644 doc/stb.txt
create mode 100644 libc/string/memcpy_ci.c
create mode 100644 libc/string/strnlen.c
create mode 100644 libstb/Makefile.inc
create mode 100644 libstb/container.c
create mode 100644 libstb/container.h
create mode 100644 libstb/drivers/Makefile.inc
create mode 100644 libstb/drivers/romcode.c
create mode 100644 libstb/drivers/romcode.h
create mode 100644 libstb/drivers/tpm_i2c_nuvoton.c
create mode 100644 libstb/drivers/tpm_i2c_nuvoton.h
create mode 100644 libstb/rom.c
create mode 100644 libstb/rom.h
create mode 100644 libstb/status_codes.h
create mode 100644 libstb/stb.c
create mode 100644 libstb/stb.h
create mode 100644 libstb/tpm.c
create mode 100644 libstb/tpm.h
create mode 100644 libstb/tss/Makefile.inc
create mode 100644 libstb/tss/tpmLogMgr.C
create mode 100644 libstb/tss/tpmLogMgr.H
create mode 100644 libstb/tss/trustedTypes.C
create mode 100644 libstb/tss/trustedTypes.H
create mode 100644 libstb/tss/trustedbootCmds.C
create mode 100644 libstb/tss/trustedbootCmds.H
create mode 100644 libstb/tss/trustedbootUtils.C
create mode 100644 libstb/tss/trustedbootUtils.H
create mode 100644 libstb/tss/trustedboot_reasoncodes.H
--
1.9.1
More information about the Skiboot
mailing list