diff options
Diffstat (limited to 'firmware/Makefile')
-rw-r--r-- | firmware/Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/firmware/Makefile b/firmware/Makefile index aae5129fa892..ea1d28f9b44c 100644 --- a/firmware/Makefile +++ b/firmware/Makefile | |||
@@ -101,10 +101,10 @@ quiet_cmd_ihex = IHEX $@ | |||
101 | cmd_ihex = $(OBJCOPY) -Iihex -Obinary $< $@ | 101 | cmd_ihex = $(OBJCOPY) -Iihex -Obinary $< $@ |
102 | 102 | ||
103 | quiet_cmd_ihex2fw = IHEX2FW $@ | 103 | quiet_cmd_ihex2fw = IHEX2FW $@ |
104 | cmd_ihex2fw = $(objtree)/$(obj)/ihex2fw $< $@ | 104 | cmd_ihex2fw = $(objtree)/scripts/ihex2fw $< $@ |
105 | 105 | ||
106 | quiet_cmd_h16tofw = H16TOFW $@ | 106 | quiet_cmd_h16tofw = H16TOFW $@ |
107 | cmd_h16tofw = $(objtree)/$(obj)/ihex2fw -w $< $@ | 107 | cmd_h16tofw = $(objtree)/scripts/ihex2fw -w $< $@ |
108 | 108 | ||
109 | quiet_cmd_fwbin = MK_FW $@ | 109 | quiet_cmd_fwbin = MK_FW $@ |
110 | cmd_fwbin = FWNAME="$(patsubst firmware/%.gen.S,%,$@)"; \ | 110 | cmd_fwbin = FWNAME="$(patsubst firmware/%.gen.S,%,$@)"; \ |
@@ -167,11 +167,11 @@ $(obj)/%: $(obj)/%.ihex | $(objtree)/$(obj)/$$(dir %) | |||
167 | # is actually meaningful, because the firmware has to be loaded in a certain | 167 | # is actually meaningful, because the firmware has to be loaded in a certain |
168 | # order rather than as a single binary blob. Thus, we convert them into our | 168 | # order rather than as a single binary blob. Thus, we convert them into our |
169 | # more compact binary representation of ihex records (<linux/ihex.h>) | 169 | # more compact binary representation of ihex records (<linux/ihex.h>) |
170 | $(obj)/%.fw: $(obj)/%.HEX $(obj)/ihex2fw | $(objtree)/$(obj)/$$(dir %) | 170 | $(obj)/%.fw: $(obj)/%.HEX | $(objtree)/$(obj)/$$(dir %) |
171 | $(call cmd,ihex2fw) | 171 | $(call cmd,ihex2fw) |
172 | 172 | ||
173 | # .H16 is our own modified form of Intel HEX, with 16-bit length for records. | 173 | # .H16 is our own modified form of Intel HEX, with 16-bit length for records. |
174 | $(obj)/%.fw: $(obj)/%.H16 $(obj)/ihex2fw | $(objtree)/$(obj)/$$(dir %) | 174 | $(obj)/%.fw: $(obj)/%.H16 | $(objtree)/$(obj)/$$(dir %) |
175 | $(call cmd,h16tofw) | 175 | $(call cmd,h16tofw) |
176 | 176 | ||
177 | $(firmware-dirs): | 177 | $(firmware-dirs): |
@@ -188,5 +188,3 @@ targets := $(fw-shipped-) $(patsubst $(obj)/%,%, \ | |||
188 | # Without this, built-in.o won't be created when it's empty, and the | 188 | # Without this, built-in.o won't be created when it's empty, and the |
189 | # final vmlinux link will fail. | 189 | # final vmlinux link will fail. |
190 | obj-n := dummy | 190 | obj-n := dummy |
191 | |||
192 | hostprogs-y := ihex2fw | ||