diff options
| -rw-r--r-- | firmware/.gitignore | 1 | ||||
| -rw-r--r-- | firmware/Makefile | 10 | ||||
| -rw-r--r-- | firmware/ihex2fw.c (renamed from scripts/ihex2fw.c) | 0 | ||||
| -rw-r--r-- | scripts/.gitignore | 1 | ||||
| -rw-r--r-- | scripts/Makefile | 3 |
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 |
| 6 | ihex2fw | ||
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 | ||
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 | # |
| 4 | ihex2fw | ||
| 5 | conmakehash | 4 | conmakehash |
| 6 | kallsyms | 5 | kallsyms |
| 7 | pnmtologo | 6 | pnmtologo |
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 | ||
| 10 | hostprogs-y := ihex2fw | ||
| 11 | hostprogs-$(CONFIG_KALLSYMS) += kallsyms | 10 | hostprogs-$(CONFIG_KALLSYMS) += kallsyms |
| 12 | hostprogs-$(CONFIG_LOGO) += pnmtologo | 11 | hostprogs-$(CONFIG_LOGO) += pnmtologo |
| 13 | hostprogs-$(CONFIG_VT) += conmakehash | 12 | hostprogs-$(CONFIG_VT) += conmakehash |
