build system: Add another post-processing step
files_added is for rules that need to run after all CBFS processing is finished, such as SoC-specific postprocessing of the image, or for vboot, to sign the RW regions (that contain CBFS that shouldn't change afterwards.) Change-Id: I830aa0c93429f4971cd68e4358faba5c206c0038 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: https://review.coreboot.org/13557 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
b09a5696a6
commit
4505787724
|
@ -46,7 +46,7 @@ export objgenerated := $(obj)/generated
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
# root rule to resolve if in build mode (ie. configuration exists)
|
# root rule to resolve if in build mode (ie. configuration exists)
|
||||||
real-target: $(obj)/config.h coreboot build_complete
|
real-target: $(obj)/config.h coreboot files_added
|
||||||
coreboot: build-dirs $(obj)/coreboot.rom $(obj)/cbfstool $(obj)/rmodtool
|
coreboot: build-dirs $(obj)/coreboot.rom $(obj)/cbfstool $(obj)/rmodtool
|
||||||
|
|
||||||
# This target can be used in site local to run scripts or additional
|
# This target can be used in site local to run scripts or additional
|
||||||
|
@ -56,6 +56,10 @@ build_complete:: coreboot
|
||||||
printf "\nBuilt %s (%s)\n" $(CONFIG_MAINBOARD_DIR) \
|
printf "\nBuilt %s (%s)\n" $(CONFIG_MAINBOARD_DIR) \
|
||||||
$(CONFIG_MAINBOARD_PART_NUMBER)
|
$(CONFIG_MAINBOARD_PART_NUMBER)
|
||||||
|
|
||||||
|
# This target can be used to run rules after all files were added to CBFS,
|
||||||
|
# for example to process FMAP regions or the entire image.
|
||||||
|
files_added:: build_complete
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
# our phony targets
|
# our phony targets
|
||||||
PHONY+= clean-abuild coreboot lint lint-stable build-dirs build_complete
|
PHONY+= clean-abuild coreboot lint lint-stable build-dirs build_complete
|
||||||
|
|
Loading…
Reference in New Issue