scripts: xxdi.pl: add xxd -i compat mode
authorPetr Štetiar <[email protected]>
Tue, 30 Aug 2022 06:34:26 +0000 (08:34 +0200)
committerPetr Štetiar <[email protected]>
Tue, 6 Sep 2022 06:04:53 +0000 (08:04 +0200)
commit06e01e817ec6643a35beb9e6946689e9cc7d020a
tree7efd2931896e0428209a2830be31dc045381b133
parent8b278a76d90e3724815a5fde32be59f7796be1d8
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 <[email protected]>
Signed-off-by: Jo-Philipp Wich <[email protected]> [perl-fu]
scripts/xxdi.pl