diff options
Diffstat (limited to 'firmware/Makefile')
-rw-r--r-- | firmware/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/Makefile b/firmware/Makefile index 14fdd073c798..185c8dc0bcb2 100644 --- a/firmware/Makefile +++ b/firmware/Makefile | |||
@@ -118,10 +118,10 @@ quiet_cmd_ihex = IHEX $@ | |||
118 | cmd_ihex = $(OBJCOPY) -Iihex -Obinary $< $@ | 118 | cmd_ihex = $(OBJCOPY) -Iihex -Obinary $< $@ |
119 | 119 | ||
120 | quiet_cmd_ihex2fw = IHEX2FW $@ | 120 | quiet_cmd_ihex2fw = IHEX2FW $@ |
121 | cmd_ihex2fw = $(objtree)/scripts/ihex2fw $< $@ | 121 | cmd_ihex2fw = $(objtree)/$(obj)/ihex2fw $< $@ |
122 | 122 | ||
123 | quiet_cmd_h16tofw = H16TOFW $@ | 123 | quiet_cmd_h16tofw = H16TOFW $@ |
124 | cmd_h16tofw = $(objtree)/scripts/ihex2fw -w $< $@ | 124 | cmd_h16tofw = $(objtree)/$(obj)/ihex2fw -w $< $@ |
125 | 125 | ||
126 | quiet_cmd_fwbin = MK_FW $@ | 126 | quiet_cmd_fwbin = MK_FW $@ |
127 | cmd_fwbin = FWNAME="$(patsubst firmware/%.gen.S,%,$@)"; \ | 127 | cmd_fwbin = FWNAME="$(patsubst firmware/%.gen.S,%,$@)"; \ |
@@ -184,11 +184,11 @@ $(obj)/%: $(obj)/%.ihex | $(objtree)/$(obj)/$$(dir %) | |||
184 | # is actually meaningful, because the firmware has to be loaded in a certain | 184 | # is actually meaningful, because the firmware has to be loaded in a certain |
185 | # order rather than as a single binary blob. Thus, we convert them into our | 185 | # order rather than as a single binary blob. Thus, we convert them into our |
186 | # more compact binary representation of ihex records (<linux/ihex.h>) | 186 | # more compact binary representation of ihex records (<linux/ihex.h>) |
187 | $(obj)/%.fw: $(obj)/%.HEX | $(objtree)/$(obj)/$$(dir %) | 187 | $(obj)/%.fw: $(obj)/%.HEX $(obj)/ihex2fw | $(objtree)/$(obj)/$$(dir %) |
188 | $(call cmd,ihex2fw) | 188 | $(call cmd,ihex2fw) |
189 | 189 | ||
190 | # .H16 is our own modified form of Intel HEX, with 16-bit length for records. | 190 | # .H16 is our own modified form of Intel HEX, with 16-bit length for records. |
191 | $(obj)/%.fw: $(obj)/%.H16 | $(objtree)/$(obj)/$$(dir %) | 191 | $(obj)/%.fw: $(obj)/%.H16 $(obj)/ihex2fw | $(objtree)/$(obj)/$$(dir %) |
192 | $(call cmd,h16tofw) | 192 | $(call cmd,h16tofw) |
193 | 193 | ||
194 | $(firmware-dirs): | 194 | $(firmware-dirs): |
@@ -205,3 +205,5 @@ targets := $(fw-shipped-) $(patsubst $(obj)/%,%, \ | |||
205 | # Without this, built-in.o won't be created when it's empty, and the | 205 | # Without this, built-in.o won't be created when it's empty, and the |
206 | # final vmlinux link will fail. | 206 | # final vmlinux link will fail. |
207 | obj-n := dummy | 207 | obj-n := dummy |
208 | |||
209 | hostprogs-y := ihex2fw | ||