firmware-utils: add hex pattern mode for xorimage
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Sat, 8 Dec 2018 06:07:52 +0000 (15:07 +0900)
committerChristian Lamparter <chunkeey@gmail.com>
Mon, 24 Dec 2018 18:18:07 +0000 (19:18 +0100)
commit9145f5209fc33a019a652ce87832f48fa50aefc8
tree51b00e98e6178f2ea262f2c08a3733f22c554fea
parent10a54e144252be25106f36ad75f924b7b3c53255
firmware-utils: add hex pattern mode for xorimage

This commit adds "hex pattern mode" to xorimage. This mode allows xor
with a hexadecimal pattern that cannot be expressed with ASCII
charactors.

usage (example):
  xorimage -i firmware.bin -o firmware.bin.new -p 6A57190601121E4C -x

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com> (fix checkpatch)
tools/firmware-utils/src/xorimage.c