diff options
author | Randall Spangler <rspangler@chromium.org> | 2017-01-17 16:36:34 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-01-18 19:17:50 -0800 |
commit | e02a19a6c26259c40d655665e990cc4dbee46dc1 (patch) | |
tree | 3ccc6662a7bd9c6b6724181e37aac499569911a1 /Makefile | |
parent | 62461d719ff658512a9595cfc1e67e2a127bd1fc (diff) | |
download | vboot-e02a19a6c26259c40d655665e990cc4dbee46dc1.tar.gz |
vboot: fix compiling with DEBUG=1
If FOR_TEST is defined, 2common.h defines VB2_DEBUG() to be printf();
it should include stdio.h as well.
The HOSTLIB extern linktest links against the vboot1 stub functions,
but not the vboot2 stub functions, so it couldn't find vb2ex_printf().
BUG=chromium:682058
BRANCH=none
TEST=DEBUG=1 make runtests; DEBUG=1 emerge-reef vboot_reference depthcharge
Change-Id: Ibf981a70ca4087ce3d86b02d76e03063b2cfc9e5
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/429310
Commit-Ready: Shelley Chen <shchen@chromium.org>
Reviewed-by: Shelley Chen <shchen@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -493,6 +493,7 @@ HOSTLIB_SRCS = \ cgpt/cgpt_create.c \ cgpt/cgpt_prioritize.c \ firmware/2lib/2crc8.c \ + firmware/2lib/2stub.c \ firmware/lib/cgptlib/cgptlib_internal.c \ firmware/lib/cgptlib/crc32.c \ firmware/lib/gpt_misc.c \ |