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:
parent
e52ccf2db0
commit
9f62ece050
3
Makefile
3
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:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user