drivers/wifi: Remove unnecessary data structure copy
[coreboot2.git] / util / futility / Makefile.mk
bloba7bcee50d38e82a20ca766eb3b590d6afe34bd3c
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) \
12 CC="$(HOSTCC)" \
13 WERROR="-Werror -Wno-deprecated-declarations" \
14 PKG_CONFIG="$(HOSTPKGCONFIG)" \
15 V=$(V) \
16 USE_FLASHROM=0 \
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)
25 mkdir -p $(dir $@)
26 cp $< $@.tmp
27 mv $@.tmp $@