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>
Fri, 16 Sep 2022 16:50:46 +0000 (18:50 +0200)
commit542447b93e4263ee717caf5881a6b3f542b2176b
treec801f09f89f4745fbe703657488eea513a7bb16a
parent4c795af58b06b23a8caddf219c56ce021a590fdb
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