aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firmware/.gitignore1
-rw-r--r--firmware/Makefile10
-rw-r--r--firmware/ihex2fw.c (renamed from scripts/ihex2fw.c)0
-rw-r--r--scripts/.gitignore1
-rw-r--r--scripts/Makefile3
5 files changed, 8 insertions, 7 deletions
diff --git a/firmware/.gitignore b/firmware/.gitignore
index f89a21fffbf1..d9c69017bc9a 100644
--- a/firmware/.gitignore
+++ b/firmware/.gitignore
@@ -3,3 +3,4 @@
3*.bin 3*.bin
4*.csp 4*.csp
5*.dsp 5*.dsp
6ihex2fw
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
120quiet_cmd_ihex2fw = IHEX2FW $@ 120quiet_cmd_ihex2fw = IHEX2FW $@
121 cmd_ihex2fw = $(objtree)/scripts/ihex2fw $< $@ 121 cmd_ihex2fw = $(objtree)/$(obj)/ihex2fw $< $@
122 122
123quiet_cmd_h16tofw = H16TOFW $@ 123quiet_cmd_h16tofw = H16TOFW $@
124 cmd_h16tofw = $(objtree)/scripts/ihex2fw -w $< $@ 124 cmd_h16tofw = $(objtree)/$(obj)/ihex2fw -w $< $@
125 125
126quiet_cmd_fwbin = MK_FW $@ 126quiet_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.
207obj-n := dummy 207obj-n := dummy
208
209hostprogs-y := ihex2fw
diff --git a/scripts/ihex2fw.c b/firmware/ihex2fw.c
index 8f7fdaa9e010..8f7fdaa9e010 100644
--- a/scripts/ihex2fw.c
+++ b/firmware/ihex2fw.c
diff --git a/scripts/.gitignore b/scripts/.gitignore
index 09e2406f3b78..b939fbd01195 100644
--- a/scripts/.gitignore
+++ b/scripts/.gitignore
@@ -1,7 +1,6 @@
1# 1#
2# Generated files 2# Generated files
3# 3#
4ihex2fw
5conmakehash 4conmakehash
6kallsyms 5kallsyms
7pnmtologo 6pnmtologo
diff --git a/scripts/Makefile b/scripts/Makefile
index 035182e16afb..aafdf064feef 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -2,12 +2,11 @@
2# scripts contains sources for various helper programs used throughout 2# scripts contains sources for various helper programs used throughout
3# the kernel for the build process. 3# the kernel for the build process.
4# --------------------------------------------------------------------------- 4# ---------------------------------------------------------------------------
5# ihex2fw: Parser/loader for IHEX formatted data
6# kallsyms: Find all symbols in vmlinux 5# kallsyms: Find all symbols in vmlinux
7# pnmttologo: Convert pnm files to logo files 6# pnmttologo: Convert pnm files to logo files
7# conmakehash: Create chartable
8# conmakehash: Create arrays for initializing the kernel console tables 8# conmakehash: Create arrays for initializing the kernel console tables
9 9
10hostprogs-y := ihex2fw
11hostprogs-$(CONFIG_KALLSYMS) += kallsyms 10hostprogs-$(CONFIG_KALLSYMS) += kallsyms
12hostprogs-$(CONFIG_LOGO) += pnmtologo 11hostprogs-$(CONFIG_LOGO) += pnmtologo
13hostprogs-$(CONFIG_VT) += conmakehash 12hostprogs-$(CONFIG_VT) += conmakehash