diff options
author | Stefan Reinauer <reinauer@chromium.org> | 2011-12-16 16:03:07 -0800 |
---|---|---|
committer | Stefan Reinauer <reinauer@chromium.org> | 2011-12-16 16:08:59 -0800 |
commit | 0752c38eb7fdde34b5e1746fbc71fe151c1228f9 (patch) | |
tree | 87232c2da00d20c4e7d78f6faa3bf23d56a9b435 /lib | |
parent | c4db02fb9289235a0875c6226fe7fd3dd18adf55 (diff) |
Fix compilation of u-boot on non-coreboot platforms
https://gerrit.chromium.org/gerrit/#change,13110 assumed that the
coreboot specific enable_beep() and disable_beep() functions are
available on all ChromeOS platforms. However, at this point, only
the coreboot port implements them.
This CL fixes compilation on non-x86 / non-coreboot platforms.
BUG=none
TEST=build chromeos-u-boot for tegra2 kaen.
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Change-Id: I084a2c505ea29180f711328dc969ad99c413b7cf
Reviewed-on: https://gerrit.chromium.org/gerrit/13115
Reviewed-by: David James <davidjames@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Tested-by: Stefan Reinauer <reinauer@chromium.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vbexport/utility.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/vbexport/utility.c b/lib/vbexport/utility.c index 90a94be76b1..ace70b8a1cb 100644 --- a/lib/vbexport/utility.c +++ b/lib/vbexport/utility.c @@ -90,6 +90,7 @@ void VbExSleepMs(uint32_t msec) VbError_t VbExBeep(uint32_t msec, uint32_t frequency) { +#if defined(CONFIG_SYS_COREBOOT) if (frequency) enable_beep(); else @@ -101,6 +102,12 @@ VbError_t VbExBeep(uint32_t msec, uint32_t frequency) } return VBERROR_SUCCESS; +#else + /* TODO Implement it later. */ + VbExSleepMs(msec); + VBDEBUG("Beep!\n"); + return VBERROR_NO_SOUND; +#endif } int Memcmp(const void *src1, const void *src2, size_t n) |