[Skiboot] [PATCH v2 00/14] libstb: simplify the initialization of cvc drivers

Claudio Carvalho cclaudio at linux.vnet.ibm.com
Thu Aug 31 17:24:31 AEST 2017


v2:

 - new patch: remove macros used to force secure-mode and trusted-mode

v1:

This series moves the initialization of container-verification-code drivers to
stb.c with the intent to simplify the current initialization process and also
the addition of new drivers in the future.

Claudio Carvalho (14):
  libstb/stb.c: remove macros used to force secure-mode and trusted-mode
  core/flash: extern function to get the name of a PNOR partition
  libstb/stb.c: change sb_verify() to use flash_lookup_resource_name()
  libstb/stb.c: change tb_measure() to use flash_lookup_resource_name()
  libstb: rename rom_driver_ops struct to container_verification_code
  libstb: rename drivers/romcode.* to cvc/c1vc.*
  libstb: rename drivers/sw_driver.* to cvc/c1vc_mbedtls.*
  libstb: move drivers/sha512.* to mbedtls/sha512.*
  libstb: clean up the force-secure-mode and force-trusted-mode from
    nvram
  libstb: move cvc initialization to stb.c
  libstb/stb.c: free cvc allocated memory
  libstb: check container version before using it
  libstb/stb.c: fix trustedboot abort
  libstb/stb.c: fix log messages

 asm/Makefile.inc            |   2 +-
 asm/c1vc_entry.S            |  51 +++++
 asm/rom_entry.S             |  52 -----
 core/flash.c                |  10 +
 include/skiboot.h           |   1 +
 libstb/Makefile.inc         |   6 +-
 libstb/container.c          |  47 ++++-
 libstb/container.h          |  11 +-
 libstb/cvc/Makefile.inc     |  11 +
 libstb/cvc/c1vc.c           |  69 +++++++
 libstb/cvc/c1vc.h           |  31 +++
 libstb/cvc/c1vc_mbedtls.c   |  46 +++++
 libstb/cvc/c1vc_mbedtls.h   |  34 ++++
 libstb/drivers/Makefile.inc |   2 +-
 libstb/drivers/romcode.c    | 138 -------------
 libstb/drivers/romcode.h    |  24 ---
 libstb/drivers/sha512.c     | 480 --------------------------------------------
 libstb/drivers/sha512.h     | 141 -------------
 libstb/drivers/sw_driver.c  |  76 -------
 libstb/drivers/sw_driver.h  |  24 ---
 libstb/mbedtls/Makefile.inc |  11 +
 libstb/mbedtls/sha512.c     | 480 ++++++++++++++++++++++++++++++++++++++++++++
 libstb/mbedtls/sha512.h     | 141 +++++++++++++
 libstb/rom.c                |  55 -----
 libstb/rom.h                |  43 ----
 libstb/stb.c                | 407 +++++++++++++++++++++++--------------
 26 files changed, 1197 insertions(+), 1196 deletions(-)
 create mode 100644 asm/c1vc_entry.S
 delete mode 100644 asm/rom_entry.S
 create mode 100644 libstb/cvc/Makefile.inc
 create mode 100644 libstb/cvc/c1vc.c
 create mode 100644 libstb/cvc/c1vc.h
 create mode 100644 libstb/cvc/c1vc_mbedtls.c
 create mode 100644 libstb/cvc/c1vc_mbedtls.h
 delete mode 100644 libstb/drivers/romcode.c
 delete mode 100644 libstb/drivers/romcode.h
 delete mode 100644 libstb/drivers/sha512.c
 delete mode 100644 libstb/drivers/sha512.h
 delete mode 100644 libstb/drivers/sw_driver.c
 delete mode 100644 libstb/drivers/sw_driver.h
 create mode 100644 libstb/mbedtls/Makefile.inc
 create mode 100644 libstb/mbedtls/sha512.c
 create mode 100644 libstb/mbedtls/sha512.h
 delete mode 100644 libstb/rom.c
 delete mode 100644 libstb/rom.h

-- 
2.7.4



More information about the Skiboot mailing list