Martin L Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/83198?usp=email )
Change subject: Makefiles: Add site_local-target to run early in the build ......................................................................
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 --- M Makefile M Makefile.mk 2 files changed, 8 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/98/83198/1
diff --git a/Makefile b/Makefile index fddcc5c..c8f5fdf 100644 --- a/Makefile +++ b/Makefile @@ -217,8 +217,7 @@
# 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 16b6539..19f74a2 100644 --- a/Makefile.mk +++ b/Makefile.mk @@ -90,6 +90,13 @@ .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