summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2014-10-07 13:18:19 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-10-31 22:32:50 +0000
commit86c7e2e90a7fd86b5f5b9e422fdbe968d30670da (patch)
tree366820de9e95fec03b142651dc3961ee9482f430 /Makefile.rules
parent327bfe2e587b0e2e127ac9659bec6f7bb7a310ed (diff)
downloadchrome-ec-86c7e2e90a7fd86b5f5b9e422fdbe968d30670da.tar.gz
Add initial support for cr50 SoC
The serial console works. Nothing else is implemented yet. BUG=none BRANCH=ToT TEST=make buildall -j To build, make BOARD=cr50 hex Testing the result requires a development board. I have one. It works with HW revision m3.dist_20140918_094011 Change-Id: I718d93572d315d13e96ef6f296c3c2796e928e66 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/226268 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 4a19e0a3b3..205c89a983 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -41,6 +41,7 @@ cmd_flat_to_obj = $(CC) -T $(out)/firmware_image.lds -nostdlib $(CPPFLAGS) \
-Wl,--build-id=none -o $@ $<
cmd_elf_to_flat = $(OBJCOPY) -O binary $^ $@
cmd_elf_to_dis = $(OBJDUMP) -D $< > $@
+cmd_elf_to_hex = $(OBJCOPY) -O ihex $^ $@
cmd_elf = $(LD) $(objs) $(LDFLAGS) -o $@ -T $< -Map $(out)/$*.map
cmd_exe = $(CC) $(objs) $(HOST_TEST_LDFLAGS) -o $@
cmd_c_to_o = $(CC) $(CFLAGS) -MMD -MF $@.d -c $< -o $@
@@ -81,6 +82,9 @@ proj-%:
dis-y = $(out)/$(PROJECT).RO.dis $(out)/$(PROJECT).RW.dis
dis: $(dis-y)
+hex-y = $(out)/$(PROJECT).RO.hex $(out)/$(PROJECT).RW.hex
+hex: $(hex-y)
+
utils: $(build-utils) $(host-utils)
# On board test binaries
@@ -157,6 +161,9 @@ $(out)/%.dis: $(out)/%.elf
$(out)/%.flat: $(out)/%.elf
$(call quiet,elf_to_flat,OBJCOPY)
+$(out)/%.hex: $(out)/%.elf
+ $(call quiet,elf_to_hex,OBJCOPY)
+
$(out)/%.elf: $(out)/%.lds $(objs)
$(call quiet,elf,LD )