From 27367a07c923c778941a5c1a0635e1694d51030a Mon Sep 17 00:00:00 2001 From: icarus sparry Date: Mon, 10 Nov 2014 14:34:21 -0800 Subject: Strago: Automated build to generate ec.spi.bin. Add another variable PROJECT_EXTRA which chips and boards can use to add additional prerequisites to the default all target Add rules for creating ec.spi.bin to package the ec firmware for strago BUG=None BRANCH=None TEST=Tested on Braswell Ref Design Board Signed-off-by: Divya Jyothi Signed-off-by: icarus sparry Change-Id: I4fb9f1275dc5bc2987b6abf5d45b0baf363c0d7a Reviewed-on: https://chromium-review.googlesource.com/226305 Reviewed-by: Vic Yang Reviewed-by: Icarus W Sparry Commit-Queue: Icarus W Sparry Tested-by: Icarus W Sparry Reviewed-by: Sheng-liang Song --- Makefile.rules | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile.rules') diff --git a/Makefile.rules b/Makefile.rules index 3a1b415ad3..2c6cd7b4cd 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -151,6 +151,10 @@ $(out)/%.bin: $(out)/%.obj $(call quiet,copyrw-y,COPY_RW)) $(call quiet,mv_from_tmp,MV ) +# Beware of ec.spi.spi.bin. +$(out)/%.spi.bin: $(out)/%.bin + $(call quiet,pack_package,PACK ) + flat-y = $(out)/$(PROJECT).RO.flat $(out)/$(PROJECT).RW.flat $(out)/%.obj: common/firmware_image.S $(out)/firmware_image.lds $(flat-y) -- cgit v1.2.1