summaryrefslogtreecommitdiff
path: root/firmware/2lib/2stub.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2014-06-10 17:03:40 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-06-19 03:23:24 +0000
commitda2b49cf08a27551fd910626f669910a636378d4 (patch)
tree09ae3f54a80bf9dcb564db44f0f5da3d0d6398d7 /firmware/2lib/2stub.c
parent4521c1f19f3b3f6000bb437140b85389d38bf655 (diff)
downloadvboot-da2b49cf08a27551fd910626f669910a636378d4.tar.gz
vboot2: misc higher-level routines
I'm breaking the last chunk of vboot2 into smaller pieces as I add tests. This has a bunch of misc routines like the dev switch logic and GBB header parsing. BUG=chromium:370082 BRANCH=none TEST=make clean && VBOOT2=1 COV=1 make Change-Id: I0f67400d9b59ec21ed5cc155a9b774fd37eb559b Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/203374 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'firmware/2lib/2stub.c')
-rw-r--r--firmware/2lib/2stub.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/firmware/2lib/2stub.c b/firmware/2lib/2stub.c
new file mode 100644
index 00000000..a544a4fb
--- /dev/null
+++ b/firmware/2lib/2stub.c
@@ -0,0 +1,23 @@
+/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ *
+ * Stub API implementations which should be implemented by the caller.
+ */
+
+#include "2sysincludes.h"
+#include "2api.h"
+
+int vb2ex_tpm_clear_owner(struct vb2_context *ctx)
+{
+ return VB2_SUCCESS;
+}
+
+int vb2ex_read_resource(struct vb2_context *ctx,
+ enum vb2_resource_index index,
+ uint32_t offset,
+ void *buf,
+ uint32_t size)
+{
+ return VB2_SUCCESS;
+}