scripts: xxdi.pl: add xxd -i compat mode
authorPetr Štetiar <ynezz@true.cz>
Tue, 30 Aug 2022 06:34:26 +0000 (08:34 +0200)
committerPetr Štetiar <ynezz@true.cz>
Wed, 21 Sep 2022 09:52:40 +0000 (11:52 +0200)
commit45a486bf934dc6ddbc71ed4b986a47883df12150
tree1a6cb4891cf5df21c06cdbb318152082af5025d3
parent70124b8579b1c43c9018352adf8e87e1246843c7
scripts: xxdi.pl: add xxd -i compat mode

So it can serve as a standalone drop in replacement for xxd utility used
currently mostly in U-Boot packages with `xxd -i` mode which outputs C
include file style, with aim for byte to byte identical output, so the
eventual difference in the generated output is easily spottable.

Fixes: #10555
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Jo-Philipp Wich <jo@mein.io> [perl-fu]
(cherry picked from commit 06e01e817ec6643a35beb9e6946689e9cc7d020a)
scripts/xxdi.pl