]> git.baikalelectronics.ru Git - kernel.git/commit
ihex: Add support for long records to ihex2fw.c
authorDavid Woodhouse <dwmw2@infradead.org>
Thu, 26 Jun 2008 12:55:30 +0000 (13:55 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 10 Jul 2008 13:47:42 +0000 (14:47 +0100)
commitb9d586965593e359c7a9a2bdca05e3c8863fedac
treedcbb789ceaa239e5fd818a7018ad20aa79395b05
parentf1d27284a213332e6cda12ee20aeb29ac69ca24d
ihex: Add support for long records to ihex2fw.c

Some drivers could do with using records like Intel HEX, but with each
record being larger than 256 bytes. This has been possible in the binary
representation (struct ihex_binrec) in the kernel since the beginning --
at least of the the current version of history. But we haven't been able
to represent that in the .HEX files which get converted to .fw files.

This adds a '-w' option to ihex2fw to make it interpret the first _two_
bytes of each line as the record length, instead of only one byte. And
adds makefile rules for %.H16->%.fw which use that.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
firmware/Makefile
firmware/ihex2fw.c