diff options
author | Tom Wai-Hong Tam <waihong@chromium.org> | 2011-06-30 09:30:06 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:39:44 -0700 |
commit | e2f2aafe61758c95ba0860f058d31e898db9f465 (patch) | |
tree | 25e4039c7780d3a898bb0eaa6d3ab2ed11342f16 /lib/vbexport | |
parent | e4b9d7343be2734b14d9d4f76395269e27f7c0e7 (diff) |
CHROMIUM: Add the VbExIsShutdownRequested function and will implement it later.
It now always returns no shutdown requested, in order to quickly have
a workable firmware. Will implement the real behavior later.
BUG=chromium-os:16543
TEST=build chromeos_seaboard_vboot withour error
Change-Id: I6da3c0051b6233ef139fa17cab361af7abf7c953
Reviewed-on: http://gerrit.chromium.org/gerrit/3430
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Diffstat (limited to 'lib/vbexport')
-rw-r--r-- | lib/vbexport/Makefile | 1 | ||||
-rw-r--r-- | lib/vbexport/misc.c | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/lib/vbexport/Makefile b/lib/vbexport/Makefile index c33ca39596..dd06bf0323 100644 --- a/lib/vbexport/Makefile +++ b/lib/vbexport/Makefile @@ -16,6 +16,7 @@ COBJS-$(CONFIG_VBOOT_WRAPPER) += boot_device.o COBJS-$(CONFIG_VBOOT_WRAPPER) += display.o COBJS-$(CONFIG_VBOOT_WRAPPER) += keyboard.o COBJS-$(CONFIG_VBOOT_WRAPPER) += load_firmware.o +COBJS-$(CONFIG_VBOOT_WRAPPER) += misc.o COBJS-$(CONFIG_VBOOT_WRAPPER) += nvstorage.o COBJS-$(CONFIG_VBOOT_WRAPPER) += tlcl_stub.o COBJS-$(CONFIG_VBOOT_WRAPPER) += utility.o diff --git a/lib/vbexport/misc.c b/lib/vbexport/misc.c new file mode 100644 index 0000000000..301e63dcea --- /dev/null +++ b/lib/vbexport/misc.c @@ -0,0 +1,23 @@ +/* + * 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> + +uint32_t VbExIsShutdownRequested(void) +{ + /* + * TODO(waihong@chromium.org) Detect the power button pressed or + * the lib closed. + */ + return 0; +} |