summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2011-04-07 10:37:44 -0700
committerRandall Spangler <rspangler@chromium.org>2011-04-07 10:37:44 -0700
commit52a5b946aabb49c7bfa127490ec4d872a14335e6 (patch)
tree24c9e1af973461f1732f3825df730d9c07506b9f
parenteb59195473246f8ff3076950f3c3b8d3564d433d (diff)
downloadvboot-52a5b946aabb49c7bfa127490ec4d872a14335e6.tar.gz
Add dummy crossystem_arch implementation for amd64 (host)
Change-Id: Ia87cdd9551af1d592ece641c2abcc02db73869e1 R=piman@chromium.org,jrbarnette@chromium.org BUG=none TEST=sudo emerge vboot_reference TBR=jrbarnette@chromium.org
-rw-r--r--host/arch/amd64/lib/crossystem_arch.c57
1 files changed, 57 insertions, 0 deletions
diff --git a/host/arch/amd64/lib/crossystem_arch.c b/host/arch/amd64/lib/crossystem_arch.c
new file mode 100644
index 00000000..08ae723a
--- /dev/null
+++ b/host/arch/amd64/lib/crossystem_arch.c
@@ -0,0 +1,57 @@
+/* Copyright (c) 2011 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.
+ */
+/* crossystem is only valid on devices, not on the host, but since
+ * it's part of the host library, we need a dummy implementation (all
+ * functions return errors) */
+
+#include <stdio.h>
+#include <string.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#include <ctype.h>
+
+#include "host_common.h"
+
+#include "crossystem.h"
+#include "crossystem_arch.h"
+#include "utility.h"
+#include "vboot_common.h"
+#include "vboot_nvstorage.h"
+#include "vboot_struct.h"
+
+int VbReadNvStorage(VbNvContext* vnc) {
+ return -1;
+}
+
+
+int VbWriteNvStorage(VbNvContext* vnc) {
+ return -1;
+}
+
+
+VbSharedDataHeader* VbSharedDataRead(void) {
+ return NULL;
+}
+
+
+int VbGetArchPropertyInt(const char* name) {
+ return -1;
+}
+
+
+const char* VbGetArchPropertyString(const char* name, char* dest, int size) {
+ return NULL;
+}
+
+
+int VbSetArchPropertyInt(const char* name, int value) {
+ return -1;
+}
+
+
+int VbSetArchPropertyString(const char* name, const char* value) {
+ return -1;
+}