[coreboot-gerrit] New patch to review for coreboot: build system: Add another post-processing step

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Tue Feb 2 18:02:16 CET 2016


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/13557

-gerrit

commit 6b25e37db12e8f2bccfc282986beb0a62acba354
Author: Patrick Georgi <pgeorgi at chromium.org>
Date:   Tue Feb 2 17:38:45 2016 +0100

    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 at chromium.org>
---
 Makefile.inc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile.inc b/Makefile.inc
index d2b19f7..f5df811 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



More information about the coreboot-gerrit mailing list