From 9f62ece0503449624931777f63f9d255fdc0c0f9 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Mon, 24 Jun 2024 15:15:52 -0600 Subject: Makefiles: Add site_local-target to run early in the build This double-colon target doesn't do anything unless it's implemented by another makefile. It's intended to be used only by the site-local makefile to allow it to run any necessary steps before the actual coreboot build begins. Signed-off-by: Martin Roth Change-Id: I01f98c9cf8375bca21ab87f9becf66a25402c758 Reviewed-on: https://review.coreboot.org/c/coreboot/+/83198 Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier Reviewed-by: Felix Held --- Makefile.mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile.mk') diff --git a/Makefile.mk b/Makefile.mk index a16089d6d2..bae34e0c79 100644 --- a/Makefile.mk +++ b/Makefile.mk @@ -90,6 +90,13 @@ show_coreboot: | files_added .PHONY: show_notices show_notices:: | show_coreboot +# This rule allows the site-local makefile to run before starting the actual +# coreboot build. It should not be used in the regular coreboot makefiles. +# Note: This gets run after the immediate makefile code like updating the +# submodules, but before any other targets. +.PHONY: site-local-target +site-local-target:: + ####################################################################### # our phony targets PHONY+= clean-abuild coreboot check-style build_complete -- cgit v1.2.3