From 4505787724616221a42a6cf81f89383d732a9cb3 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Tue, 2 Feb 2016 17:38:45 +0100 Subject: 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 Reviewed-on: https://review.coreboot.org/13557 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- Makefile.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile.inc') diff --git a/Makefile.inc b/Makefile.inc index 3c4b899dc7..fb0d888a8e 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -46,7 +46,7 @@ export objgenerated := $(obj)/generated ####################################################################### # 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 # 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) \ $(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 PHONY+= clean-abuild coreboot lint lint-stable build-dirs build_complete -- cgit v1.2.3