coreboot-kgpe-d16/util/futility/Makefile.inc

25 lines
682 B
PHP
Raw Normal View History

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) \
$@
.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 $@