summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2017-12-18 23:13:18 +0000
committerchrome-bot <chrome-bot@chromium.org>2018-01-11 19:37:45 -0800
commit965c77f9d0f676c9964ca180720c08a15bd55745 (patch)
treed155c94a08dfbe7bbe58cb268e8a7ae9eb24f5c6 /Makefile
parent497981f14ac28370b6d97064e922001f996fda3e (diff)
downloadvboot-965c77f9d0f676c9964ca180720c08a15bd55745.tar.gz
Revert "Makefile: Build futility without utillib to extend arch support"
This reverts commit f59d2e41977032f8f3eac113358b93574fc27b4f. The change breaks 'make runtests'. More specifically, 'make runfutiltests'. Also, fix the duplicate FWLIB20 in LDLIBS when linking futility. BUG=None BRANCH=None TEST=make runtests (more specifically, make runfutiltests) Change-Id: Ia079924a814d98e1a3937b8de6ade7b001ff70ef Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/832848
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile47
1 files changed, 22 insertions, 25 deletions
diff --git a/Makefile b/Makefile
index 1bce0802..78af5a6a 100644
--- a/Makefile
+++ b/Makefile
@@ -435,25 +435,6 @@ BDBLIB_OBJS = ${BDBLIB_SRCS:%.c=${BUILD}/%.o}
ALL_OBJS += ${FWLIB_OBJS} ${FWLIB2X_OBJS} ${FWLIB20_OBJS} ${FWLIB21_OBJS} \
$(BDBLIB_OBJS}
-# Common files for all utilities.
-COMMON_SRCS = \
- host/lib/file_keys.c \
- host/lib/fmap.c \
- host/lib/host_common.c \
- host/lib/host_key.c \
- host/lib/host_key2.c \
- host/lib/host_keyblock.c \
- host/lib/host_misc.c \
- host/lib/util_misc.c \
- host/lib/host_signature.c \
- host/lib/host_signature2.c \
- host/lib/signature_digest.c \
- host/lib21/host_fw_preamble.c \
- host/lib21/host_key.c \
- host/lib21/host_keyblock.c \
- host/lib21/host_misc.c \
- host/lib21/host_signature.c
-
# Intermediate library for the vboot_reference utilities to link against.
UTILLIB = ${BUILD}/libvboot_util.a
@@ -461,7 +442,6 @@ UTILLIB = ${BUILD}/libvboot_util.a
UTILBDB = ${BUILD}/libvboot_utilbdb.a
UTILLIB_SRCS = \
- $(COMMON_SRCS) \
cgpt/cgpt_create.c \
cgpt/cgpt_add.c \
cgpt/cgpt_boot.c \
@@ -471,7 +451,23 @@ UTILLIB_SRCS = \
cgpt/cgpt_common.c \
futility/dump_kernel_config_lib.c \
host/arch/${ARCH}/lib/crossystem_arch.c \
- host/lib/crossystem.c
+ host/lib/crossystem.c \
+ host/lib/file_keys.c \
+ host/lib/fmap.c \
+ host/lib/host_common.c \
+ host/lib/host_key.c \
+ host/lib/host_key2.c \
+ host/lib/host_keyblock.c \
+ host/lib/host_misc.c \
+ host/lib/util_misc.c \
+ host/lib/host_signature.c \
+ host/lib/host_signature2.c \
+ host/lib/signature_digest.c \
+ host/lib21/host_fw_preamble.c \
+ host/lib21/host_key.c \
+ host/lib21/host_keyblock.c \
+ host/lib21/host_misc.c \
+ host/lib21/host_signature.c
UTILLIB_OBJS = ${UTILLIB_SRCS:%.c=${BUILD}/%.o}
ALL_OBJS += ${UTILLIB_OBJS}
@@ -662,7 +658,6 @@ FUTIL_SYMLINKS = \
vbutil_keyblock
FUTIL_STATIC_SRCS = \
- $(COMMON_SRCS) \
futility/futility.c \
futility/cmd_dump_fmap.c \
futility/cmd_gbb_utility.c \
@@ -673,7 +668,6 @@ FUTIL_STATIC_SRCS = \
FUTIL_SRCS = \
${FUTIL_STATIC_SRCS} \
- futility/dump_kernel_config_lib.c \
futility/cmd_bdb.c \
futility/cmd_create.c \
futility/cmd_dump_kernel_config.c \
@@ -682,7 +676,10 @@ FUTIL_SRCS = \
futility/cmd_show.c \
futility/cmd_sign.c \
futility/cmd_validate_rec_mrc.c \
+ futility/cmd_vbutil_firmware.c \
futility/cmd_vbutil_kernel.c \
+ futility/cmd_vbutil_key.c \
+ futility/cmd_vbutil_keyblock.c \
futility/file_type.c \
futility/file_type_bios.c \
futility/file_type_rwsig.c \
@@ -1118,12 +1115,12 @@ signing_install: ${SIGNING_SCRIPTS} ${SIGNING_SCRIPTS_DEV} ${SIGNING_COMMON}
futil: ${FUTIL_STATIC_BIN} ${FUTIL_BIN}
${FUTIL_STATIC_BIN}: LDLIBS += ${CRYPTO_STATIC_LIBS} -lpthread
-${FUTIL_STATIC_BIN}: ${FUTIL_STATIC_OBJS} ${FWLIB} ${FWLIB21}
+${FUTIL_STATIC_BIN}: ${FUTIL_STATIC_OBJS} ${UTILLIB}
@${PRINTF} " LD $(subst ${BUILD}/,,$@)\n"
${Q}${LD} -o $@ ${CFLAGS} ${LDFLAGS} -static $^ ${LDLIBS}
${FUTIL_BIN}: LDLIBS += ${CRYPTO_LIBS}
-${FUTIL_BIN}: ${FUTIL_OBJS} ${UTILBDB} ${FWLIB} ${FWLIB21}
+${FUTIL_BIN}: ${FUTIL_OBJS} ${UTILLIB} ${FWLIB20} ${UTILBDB}
@${PRINTF} " LD $(subst ${BUILD}/,,$@)\n"
${Q}${LD} -o $@ ${CFLAGS} ${LDFLAGS} $^ ${LDLIBS}