summaryrefslogtreecommitdiff
path: root/Makefile.mk
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2024-06-24 15:15:52 -0600
committerFelix Held <felix-coreboot@felixheld.de>2024-07-02 18:44:39 +0000
commit9f62ece0503449624931777f63f9d255fdc0c0f9 (patch)
tree753407a092b23cfc9fa7b55cc21a98b4afd8ccfa /Makefile.mk
parente52ccf2db09304e36c538bf0116e54fe484d96f6 (diff)
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 <gaumless@gmail.com> Change-Id: I01f98c9cf8375bca21ab87f9becf66a25402c758 Reviewed-on: https://review.coreboot.org/c/coreboot/+/83198 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'Makefile.mk')
-rw-r--r--Makefile.mk7
1 files changed, 7 insertions, 0 deletions
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