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)
commit84748044c8834a4c7f100d10cd141fff8386ea0c
treeeffe8d6920a1f10a5f93f4fcfd49086f3473b423
parent9f939d982c6630f60a70c8eff1ba5f123968bddf
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)
src/xorimage.c