diff options
Diffstat (limited to 'firmware/Makefile')
-rw-r--r-- | firmware/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/Makefile b/firmware/Makefile index 9e780a331e10..40881a96be00 100644 --- a/firmware/Makefile +++ b/firmware/Makefile | |||
@@ -35,6 +35,9 @@ quiet_cmd_ihex = IHEX $@ | |||
35 | quiet_cmd_ihex2fw = IHEX2FW $@ | 35 | quiet_cmd_ihex2fw = IHEX2FW $@ |
36 | cmd_ihex2fw = $(objtree)/$(obj)/ihex2fw $< $@ | 36 | cmd_ihex2fw = $(objtree)/$(obj)/ihex2fw $< $@ |
37 | 37 | ||
38 | quiet_cmd_h16tofw = H16TOFW $@ | ||
39 | cmd_h16tofw = $(objtree)/$(obj)/ihex2fw -w $< $@ | ||
40 | |||
38 | quiet_cmd_fwbin = MK_FW $@ | 41 | quiet_cmd_fwbin = MK_FW $@ |
39 | cmd_fwbin = FWNAME="$(patsubst firmware/%.gen.S,%,$@)"; \ | 42 | cmd_fwbin = FWNAME="$(patsubst firmware/%.gen.S,%,$@)"; \ |
40 | FWSTR="$(subst /,_,$(subst .,_,$(subst -,_,$(patsubst \ | 43 | FWSTR="$(subst /,_,$(subst .,_,$(subst -,_,$(patsubst \ |
@@ -99,6 +102,10 @@ $(obj)/%: $(obj)/%.ihex | $(objtree)/$(obj)/$$(dir %) | |||
99 | $(obj)/%.fw: $(obj)/%.HEX $(obj)/ihex2fw | $(objtree)/$(obj)/$$(dir %) | 102 | $(obj)/%.fw: $(obj)/%.HEX $(obj)/ihex2fw | $(objtree)/$(obj)/$$(dir %) |
100 | $(call cmd,ihex2fw) | 103 | $(call cmd,ihex2fw) |
101 | 104 | ||
105 | # .H16 is our own modified form of Intel HEX, with 16-bit length for records. | ||
106 | $(obj)/%.fw: $(obj)/%.H16 $(obj)/ihex2fw | $(objtree)/$(obj)/$$(dir %) | ||
107 | $(call cmd,h16tofw) | ||
108 | |||
102 | $(firmware-dirs): | 109 | $(firmware-dirs): |
103 | $(call cmd,mkdir) | 110 | $(call cmd,mkdir) |
104 | 111 | ||