summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--Makefile.mk7
2 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bc6fabc2e5..cc73900bda 100644
--- a/Makefile
+++ b/Makefile
@@ -222,8 +222,7 @@ endif
# The primary target needs to be here before we include the
# other files
-
-real-all: real-target
+real-all: site-local-target real-target
# must come rather early
.SECONDARY:
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