summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2014-11-19 16:15:57 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-12-15 22:46:21 +0000
commit91ca05cf3ac251c196397de8dc2d0cb8c91abd4c (patch)
tree8c295942d2e49073e61af3eb334de5441f802d11 /Makefile.rules
parent98a485bf439c6eeb83b90edb37dcf3c2e2e1213f (diff)
downloadchrome-ec-91ca05cf3ac251c196397de8dc2d0cb8c91abd4c.tar.gz
ryu_sh_loader: Add board directory for load image
Ryu sensor hub has asymectric RO/RW images. The first one is very limited (not i2c master, no sensor drivers, gesture recognition). Image size is alter to offer more space for the RW firmware image, compiled with ryu_sh board. To write RO image and basic RW image: flashrom -V -p ec:type=sh,block=0x800 --fast-verify -w /tmp/ryu_sh_loader/ec.bin To write the expected RW image: flashrom -V -p ec:type=sh,block=0x800 --fast-verify -w -i EC_RW:/tmp/ryu_sh/ec.bin BRANCH=ToT BUG=chrome-os-partner:33908 CQ-DEPEND=CL:231970,CL:233233 TEST=load on Ryu, confirmed limited operation. Change-Id: Ib976e2b048935adfb9b2b072c071db5be2bc1c09 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/231984 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules
index a0bd355202..d92df2a63f 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -80,7 +80,8 @@ proj-%:
@echo "======= building $*"; \
$(MAKE) --no-print-directory BOARD=$* V=$(V)
-dis-y = $(out)/$(PROJECT).RO.dis $(out)/$(PROJECT).RW.dis
+dis-y = $(out)/$(PROJECT).RW.dis
+dis-$(CONFIG_FW_INCLUDE_RO) += $(out)/$(PROJECT).RO.dis
dis: $(dis-y)
hex-y = $(out)/$(PROJECT).RO.hex $(out)/$(PROJECT).RW.hex
@@ -159,7 +160,9 @@ $(out)/%.bin: $(out)/%.obj
$(out)/%.spi.bin: $(out)/%.bin
$(call quiet,pack_package,PACK )
-flat-y = $(out)/$(PROJECT).RO.flat $(out)/$(PROJECT).RW.flat
+flat-y = $(out)/$(PROJECT).RW.flat
+flat-$(CONFIG_FW_INCLUDE_RO) += $(out)/$(PROJECT).RO.flat
+
deps += $(out)/firmware_image.lds.d $(flat-y:%.flat=%.lds.d)
$(out)/%.obj: common/firmware_image.S $(out)/firmware_image.lds $(flat-y)