1 ## SPDX-License-Identifier: GPL-2.0-only
2 additional-dirs
+= $(objutil
)/futility
4 VBOOT_FUTILITY
= $(VBOOT_HOST_BUILD
)/futility
/futility
6 HOSTPKGCONFIG ?
= pkg-config
8 $(VBOOT_FUTILITY
): | check-openssl-presence
9 @printf
" MAKE $(subst $(objutil)/,,$(@))\n"
10 unset CFLAGS LDFLAGS
; $(MAKE
) -C
$(VBOOT_SOURCE
) \
11 BUILD
=$(VBOOT_HOST_BUILD
) \
13 WERROR
="-Werror -Wno-deprecated-declarations" \
14 PKG_CONFIG
="$(HOSTPKGCONFIG)" \
19 .PHONY
: check-openssl-presence
20 check-openssl-presence
:
21 @
$(HOSTPKGCONFIG
) --exists libcrypto || \
22 (echo
"Error: Ensure that pkg-config and openssl's libcrypto, including header files, are installed."; exit
1)
24 $(objutil
)/futility
/futility
: $(VBOOT_FUTILITY
)