summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSonny Rao <sonnyrao@chromium.org>2011-11-23 00:53:24 +0000
committerStefan Reinauer <reinauer@chromium.org>2012-01-05 15:54:23 -0800
commit6dc550383dc0bd0f1141f651b1bfa51efece1150 (patch)
tree274215c6295c44eae67ff238dff24e5bebc616eb
parent485c6f7f2307b3b48338f7127f1b67e76fbce0f3 (diff)
downloadvboot-6dc550383dc0bd0f1141f651b1bfa51efece1150.tar.gz
Fix crossystem on amd64 boards
Since x86 and amd64 boards use the same firmware and are otherwise identical use the same implementation for crossystem on both BUG=chromium-os:21386 TEST=emerge-x86-generic ; test crossystem works on Samsung Series 5 TEST=emerge-amd64-generic ; test crossystem works on Samsung Series 5 TEST=run unit tests on build machine with: RUNTESTS=1 make Reviewed-on: https://gerrit.chromium.org/gerrit/12059 Tested-by: Sonny Rao <sonnyrao@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org> Commit-Ready: Sonny Rao <sonnyrao@chromium.org> (cherry picked from commit 5fffeee4124ec2a27baace5e5b8e473a18f32f16) Change-Id: I94091731f766a7ddbc25d4aa088b18ef54a932b7 Reviewed-on: https://gerrit.chromium.org/gerrit/13722 Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Tested-by: Stefan Reinauer <reinauer@chromium.org>
l---------[-rw-r--r--]host/arch/amd64/lib/crossystem_arch.c58
1 files changed, 1 insertions, 57 deletions
diff --git a/host/arch/amd64/lib/crossystem_arch.c b/host/arch/amd64/lib/crossystem_arch.c
index 08ae723a..1f5d6522 100644..120000
--- a/host/arch/amd64/lib/crossystem_arch.c
+++ b/host/arch/amd64/lib/crossystem_arch.c
@@ -1,57 +1 @@
-/* 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;
-}
+../../x86/lib/crossystem_arch.c \ No newline at end of file