d5f45d0a9e
Currently, all of the commands for building futility are printed as they are run. This change skips printing the check for libcrypto unless the check actually fails. This prevents the error from being displayed when there isn't actually a problem. Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: I9ef36c0b64f7cd69d19b8faabd165ef6651c838e Reviewed-on: https://review.coreboot.org/c/coreboot/+/62322 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
25 lines
702 B
Makefile
25 lines
702 B
Makefile
additional-dirs += $(objutil)/futility
|
|
|
|
VBOOT_FUTILITY = $(VBOOT_HOST_BUILD)/futility/futility
|
|
|
|
HOSTPKGCONFIG ?= pkg-config
|
|
|
|
$(VBOOT_FUTILITY): | check-openssl-presence
|
|
@printf " MAKE $(subst $(objutil)/,,$(@))\n"
|
|
unset CFLAGS LDFLAGS; $(MAKE) -C $(VBOOT_SOURCE) \
|
|
BUILD=$(VBOOT_HOST_BUILD) \
|
|
CC="$(HOSTCC)" \
|
|
PKG_CONFIG="$(HOSTPKGCONFIG)" \
|
|
V=$(V) \
|
|
USE_FLASHROM=0 \
|
|
$@
|
|
|
|
.PHONY: check-openssl-presence
|
|
check-openssl-presence:
|
|
@$(HOSTPKGCONFIG) --exists libcrypto || \
|
|
(echo "Error: Ensure that pkg-config and openssl's libcrypto, including header files, are installed."; exit 1)
|
|
|
|
$(objutil)/futility/futility: $(VBOOT_FUTILITY)
|
|
mkdir -p $(dir $@)
|
|
cp $< $@.tmp
|
|
mv $@.tmp $@
|