From 1f30b244b296a131f4eaf95962bab048f8b3d481 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Thu, 18 Jan 2024 18:46:58 -0700 Subject: util: Rename Makefiles from .inc to .mk The .inc suffix is confusing to various tools as it's not specific to Makefiles. This means that editors don't recognize the files, and don't open them with highlighting and any other specific editor functionality. This issue is also seen in the release notes generation script where Makefiles get renamed before running cloc. Signed-off-by: Martin Roth Change-Id: I434940ebb46853980596f7ad55d27a62c90280fa Reviewed-on: https://review.coreboot.org/c/coreboot/+/80123 Tested-by: build bot (Jenkins) Reviewed-by: Felix Singer Reviewed-by: Felix Held --- util/futility/Makefile.mk | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 util/futility/Makefile.mk (limited to 'util/futility/Makefile.mk') diff --git a/util/futility/Makefile.mk b/util/futility/Makefile.mk new file mode 100644 index 0000000000..a7bcee50d3 --- /dev/null +++ b/util/futility/Makefile.mk @@ -0,0 +1,27 @@ +## SPDX-License-Identifier: GPL-2.0-only +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)" \ + WERROR="-Werror -Wno-deprecated-declarations" \ + 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 $@ -- cgit v1.2.3