diff options
author | Yunlian Jiang <yunlian@google.com> | 2015-06-09 16:21:56 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-06-11 18:27:24 +0000 |
commit | 637ff03502f3511d90e8d79cc1c52b3be01d6cd3 (patch) | |
tree | 8398811b813ebc297c9a3774d5bff560b2d64ef1 /firmware/stub | |
parent | d7f0f93fa878e6dd7435adbe034e1fc7474f94b0 (diff) | |
download | vboot-637ff03502f3511d90e8d79cc1c52b3be01d6cd3.tar.gz |
vboot_reference: fix unittest when building with clang.
When linking vboot_api_kernel4_tests, there are two VbBootNormal()
available, the gcc chooses the one in vboot_api_kernel4_tests.c and
the test passes, the clang chooses the one in vboot_api_kernel.c and
make the unittest fail. This CL makes the one in vboot_api_kernel.c
a weak symbol so that clang can choose the one in
vboot_api_kernel4_tests.c
BUG=chromium:498469
BRANCH=none
TEST=CC=x86_64-cros-linux-gnu-clang FEATURES='test'
emerge-amd64-generic vboot_reference
Change-Id: Ibcb78ee055fc9485dbc2bcc1d1cf98144a1a3b64
Reviewed-on: https://chromium-review.googlesource.com/276504
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Queue: Yunlian Jiang <yunlian@chromium.org>
Tested-by: Yunlian Jiang <yunlian@chromium.org>
Diffstat (limited to 'firmware/stub')
-rw-r--r-- | firmware/stub/vboot_api_stub_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/stub/vboot_api_stub_init.c b/firmware/stub/vboot_api_stub_init.c index 9e4f6370..34387837 100644 --- a/firmware/stub/vboot_api_stub_init.c +++ b/firmware/stub/vboot_api_stub_init.c @@ -61,7 +61,7 @@ uint64_t VbExGetTimer(void) return (uint64_t)tv.tv_sec * 1000000 + (uint64_t)tv.tv_usec; } -VbError_t VbExNvStorageRead(uint8_t *buf) +VbError_t test_mockable VbExNvStorageRead(uint8_t *buf) { return VBERROR_SUCCESS; } |