summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2016-09-14 12:55:20 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-10-01 00:01:13 -0700
commit8130e503414f16b9e4c5395b3acad69ad34b7baf (patch)
tree132c33a9ecf65cfdebbf1de3bccd12a485421a0c /Makefile
parent3b44f30597e6ff86ddd8fd9e77ea278b935b15ea (diff)
downloadvboot-8130e503414f16b9e4c5395b3acad69ad34b7baf.tar.gz
bdb: Add bdb_extend
bdb_extend prints out secrets derived from the given BDS based on the given BDB. BUG=chromium:649555 BRANCH=none TEST=make runtests. Ran bdb_extend -s bds.bin -b bdb.bin (with/without -m) Change-Id: I8d9f73468992dad4cb93a422c0eae0977be9a16f Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/385539
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 08e07367..575db232 100644
--- a/Makefile
+++ b/Makefile
@@ -381,6 +381,7 @@ BDBLIB_SRCS = \
firmware/bdb/misc.c \
firmware/bdb/rsa.c \
firmware/bdb/secrets.c \
+ firmware/bdb/sha.c \
firmware/bdb/stub.c \
firmware/bdb/nvm.c
@@ -610,6 +611,7 @@ endif
# TODO: Do we still need eficompress and efidecompress for anything?
ifeq (${MINIMAL},)
UTIL_NAMES += \
+ utility/bdb_extend \
utility/bmpblk_font \
utility/bmpblk_utility \
utility/eficompress \
@@ -1249,6 +1251,11 @@ ${BUILD}/utility/dumpRSAPublicKey: LDLIBS += ${CRYPTO_LIBS}
${BUILD}/utility/pad_digest_utility: LDLIBS += ${CRYPTO_LIBS}
${BUILD}/utility/signature_digest_utility: LDLIBS += ${CRYPTO_LIBS}
+${BUILD}/utility/bdb_extend: ${FWLIB2X} ${UTILBDB}
+${BUILD}/utility/bdb_extend.o: INCLUDES += -Ifirmware/bdb
+${BUILD}/utility/bdb_extend: LDLIBS += ${CRYPTO_LIBS}
+${BUILD}/utility/bdb_extend: LIBS += ${UTILBDB} ${FWLIB2X}
+
${BUILD}/host/linktest/main: LDLIBS += ${CRYPTO_LIBS}
${BUILD}/tests/vboot_common2_tests: LDLIBS += ${CRYPTO_LIBS}
${BUILD}/tests/vboot_common3_tests: LDLIBS += ${CRYPTO_LIBS}