aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/Makefile
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-01-08 14:05:59 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-08 14:05:59 -0500
commit7f46b1343f723f98634a5dcee47856b2000079ed (patch)
treeed22b6298c8dd2f687890a0d79abcd1d273b5f81 /firmware/Makefile
parentb8c31da64165b8566fc6e1c9c826f76e7b98ff02 (diff)
parent9e42d0cf5020aaf217433cad1a224745241d212a (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'firmware/Makefile')
-rw-r--r--firmware/Makefile10
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
103quiet_cmd_ihex2fw = IHEX2FW $@ 103quiet_cmd_ihex2fw = IHEX2FW $@
104 cmd_ihex2fw = $(objtree)/$(obj)/ihex2fw $< $@ 104 cmd_ihex2fw = $(objtree)/scripts/ihex2fw $< $@
105 105
106quiet_cmd_h16tofw = H16TOFW $@ 106quiet_cmd_h16tofw = H16TOFW $@
107 cmd_h16tofw = $(objtree)/$(obj)/ihex2fw -w $< $@ 107 cmd_h16tofw = $(objtree)/scripts/ihex2fw -w $< $@
108 108
109quiet_cmd_fwbin = MK_FW $@ 109quiet_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.
190obj-n := dummy 190obj-n := dummy
191
192hostprogs-y := ihex2fw