aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2014-11-24 12:55:29 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-12-01 20:30:46 +0000
commit9328bbff521625e788396ef9c5b26b79e6d1a7cb (patch)
tree4f10606071aedebba7ac98fa0b91822e3a08682b /Makefile
parentfc73f087653ee67193a9f2b897433db2cd532f8c (diff)
downloadvboot_reference-9328bbff521625e788396ef9c5b26b79e6d1a7cb.tar.gz
vboot2: Add host lib function to create a vb2-style keyblock
Also add vb2_common_desc() helper function to return the description for an object starting with a common struct header. And use the new host lib function to create the keyblock for verifying the firmware lib. Add tests for everything new. BUG=chromium:423882 BRANCH=none TEST=VBOOT2=1 make runtests Change-Id: I1fadb3e249e771a692cc69b23620c6ddd46a48ac Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/231721 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index dbd89253..310eeb0f 100644
--- a/Makefile
+++ b/Makefile
@@ -377,6 +377,7 @@ UTILLIB_SRCS = \
ifneq (${VBOOT2},)
UTILLIB_SRCS += \
host/lib/host_key2.c \
+ host/lib/host_keyblock2.c \
host/lib/host_misc2.c \
host/lib/host_signature2.c \
@@ -639,6 +640,7 @@ TEST_NAMES += \
tests/vb2_common2_tests \
tests/vb2_common3_tests \
tests/vb2_host_key_tests \
+ tests/vb2_host_keyblock_tests \
tests/vb2_host_misc_tests \
tests/vb2_host_sig_tests \
tests/vb2_misc_tests \
@@ -999,6 +1001,7 @@ ${BUILD}/tests/vb2_common_tests: LDLIBS += ${CRYPTO_LIBS}
${BUILD}/tests/vb2_common2_tests: LDLIBS += ${CRYPTO_LIBS}
${BUILD}/tests/vb2_common3_tests: LDLIBS += ${CRYPTO_LIBS}
${BUILD}/tests/vb2_host_key_tests: LDLIBS += ${CRYPTO_LIBS}
+${BUILD}/tests/vb2_host_keyblock_tests: LDLIBS += ${CRYPTO_LIBS}
${BUILD}/tests/vb2_host_sig_tests: LDLIBS += ${CRYPTO_LIBS}
${BUILD}/tests/vboot_common2_tests: LDLIBS += ${CRYPTO_LIBS}
${BUILD}/tests/vboot_common3_tests: LDLIBS += ${CRYPTO_LIBS}
@@ -1180,6 +1183,7 @@ run2tests: test_setup
${RUNTEST} ${BUILD_RUN}/tests/vb2_common2_tests ${TEST_KEYS}
${RUNTEST} ${BUILD_RUN}/tests/vb2_common3_tests ${TEST_KEYS}
${RUNTEST} ${BUILD_RUN}/tests/vb2_host_key_tests ${TEST_KEYS}
+ ${RUNTEST} ${BUILD_RUN}/tests/vb2_host_keyblock_tests ${TEST_KEYS}
${RUNTEST} ${BUILD_RUN}/tests/vb2_host_misc_tests
${RUNTEST} ${BUILD_RUN}/tests/vb2_host_sig_tests ${TEST_KEYS}
${RUNTEST} ${BUILD_RUN}/tests/vb2_misc_tests