summaryrefslogtreecommitdiff
path: root/firmware/include/vb2_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/include/vb2_api.h')
-rw-r--r--firmware/include/vb2_api.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/include/vb2_api.h b/firmware/include/vb2_api.h
index d8746d01..2f63cc16 100644
--- a/firmware/include/vb2_api.h
+++ b/firmware/include/vb2_api.h
@@ -6,6 +6,10 @@
/* APIs between calling firmware and vboot_reference
*
* DO NOT INCLUDE THE HEADERS BELOW DIRECTLY! ONLY INCLUDE THIS FILE!
+ *
+ * Using vb2api.h as the single point of contact between calling firmware and
+ * vboot allows subsequent refactoring of vboot (renaming of headers, etc.)
+ * without churning other projects' source code.
*/
#ifndef VBOOT_VB2_API_H_
@@ -14,6 +18,11 @@
/* Standard APIs */
#include "../2lib/include/2api.h"
+/* SHA library */
+#ifdef NEED_VB2_SHA_LIBRARY
+#include "../2lib/include/2sha.h"
+#endif
+
/*
* Coreboot should not need access to vboot2 internals. But right now it does.
* At least this forces it to do so through a relatively narrow hole so vboot2