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>
This commit is contained in:
Martin Roth 2024-06-24 15:15:52 -06:00 committed by Felix Held
parent e52ccf2db0
commit 9f62ece050
2 changed files with 8 additions and 2 deletions

View File

@ -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:

View File

@ -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