summaryrefslogtreecommitdiffstats
path: root/src/include/usr/secureboot
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2017-01-19 09:06:32 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-01-25 11:47:26 -0500
commit2ed8b10f53407e38fdbeff8f839f474437ef06bf (patch)
tree5ab5df6a6316b250a7c6f6f2c469493b90f87373 /src/include/usr/secureboot
parent9fe6f884d176a13b432baaa986179ef6fa654f94 (diff)
downloadtalos-hostboot-2ed8b10f53407e38fdbeff8f839f474437ef06bf.tar.gz
talos-hostboot-2ed8b10f53407e38fdbeff8f839f474437ef06bf.zip
Support ring overrides for HCODE image
Allows data from the RINGOVD partition of PNOR to be applied to the HCODE/STOP image that is generated during boot and at runtime. Change-Id: I66665bb89af020fc1a249d89f42d541a06383309 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35128 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/secureboot')
-rw-r--r--src/include/usr/secureboot/service.H8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/usr/secureboot/service.H b/src/include/usr/secureboot/service.H
index dce836106..1c83d73c1 100644
--- a/src/include/usr/secureboot/service.H
+++ b/src/include/usr/secureboot/service.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2013,2016 */
+/* Contributors Listed Below - COPYRIGHT 2013,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -26,6 +26,7 @@
#define __SECUREBOOT_SERVICE_H
#include <errl/errlentry.H>
+#include <config.h>
typedef uint8_t SHA512_t[64];
/* From sha512.h: */
@@ -74,7 +75,12 @@ namespace SECUREBOOT
/** @brief Determines if Secureboot is enabled.
*/
+#if defined(CONFIG_SECUREBOOT) && !defined(__HOSTBOOT_RUNTIME)
bool enabled();
+#else
+ inline bool enabled() { return false; };
+#endif
+ //@fixme-RTC:163094-Remove RUNTIME check once the code is there
/** @brief Returns the state of the secure jumper as reported by the master
* processor.
OpenPOWER on IntegriCloud