diff options
author | Gabe Black <gabeblack@chromium.org> | 2011-07-25 16:32:28 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:59:13 -0700 |
commit | 5f4d437d8364a3c65c8bcabdb9fd07d56edb39b7 (patch) | |
tree | 78745f1c6502e7318551c5d3401c0533ec369710 /board/chromebook-x86 | |
parent | 27a2701c0a86405a4fbea0c272454b1e684e4673 (diff) |
Add stub implementations for the vbexport functions that access NV storage
These are now board specific functions which need x86 specific
implementations.
BUG=chrome-os-partner:4552
TEST=Built and booted u-boot on an Alex.
Change-Id: I0d3365559df19128fc2b900c4e0b3380b4fbe51c
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: http://gerrit.chromium.org/gerrit/4772
Tested-by: Gabe Black <gabeblack@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/chromebook-x86')
-rw-r--r-- | board/chromebook-x86/vbexport/Makefile | 30 | ||||
-rw-r--r-- | board/chromebook-x86/vbexport/nvstorage.c | 28 |
2 files changed, 58 insertions, 0 deletions
diff --git a/board/chromebook-x86/vbexport/Makefile b/board/chromebook-x86/vbexport/Makefile new file mode 100644 index 00000000000..327f0b2e41b --- /dev/null +++ b/board/chromebook-x86/vbexport/Makefile @@ -0,0 +1,30 @@ +# +# 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. +# +# Alternatively, this software may be distributed under the terms of the +# GNU General Public License ("GPL") version 2 as published by the Free +# Software Foundation. +# + +include $(TOPDIR)/config.mk + +LIB = $(obj)libvbexport_board.a + +COBJS-$(CONFIG_CHROMEOS_VBEXPORT) += nvstorage.o + +COBJS := $(COBJS-y) +OBJS := $(addprefix $(obj),$(COBJS)) + +$(LIB): $(obj).depend $(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) + +######################################################################### + +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +######################################################################### diff --git a/board/chromebook-x86/vbexport/nvstorage.c b/board/chromebook-x86/vbexport/nvstorage.c new file mode 100644 index 00000000000..bf9dfc0cd13 --- /dev/null +++ b/board/chromebook-x86/vbexport/nvstorage.c @@ -0,0 +1,28 @@ +/* + * 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. + * + * Alternatively, this software may be distributed under the terms of the + * GNU General Public License ("GPL") version 2 as published by the Free + * Software Foundation. + */ + +#include <common.h> + +/* Import the header files from vboot_reference. */ +#include <vboot_api.h> + +#define PREFIX "nvstorage: " + +VbError_t VbExNvStorageRead(uint8_t* buf) +{ + printf("VbExNvStorageRead used but not implemented.\n"); + return 1; +} + +VbError_t VbExNvStorageWrite(const uint8_t* buf) +{ + printf("VbExNvStorageWrite used but not implemented.\n"); + return 1; +} |