On Wed, 24 Aug 2022 at 04:20, Roger Knecht <[email protected]> wrote: > > Add xxd command to print file content as hexdump to standard out > > Signed-off-by: Roger Knecht <[email protected]> > --- > The 'xxd' code has a lot in common with my ealier patch for 'cat'. > > Example: > ``` > => xxd mmc 0:1 hello > 00000000: 68 65 6c 6c 6f 20 77 6f 72 6c 64 0a 00 01 02 03 hello world..... > 00000010: 04 05 > ``` > > MAINTAINERS | 7 +++ > cmd/Kconfig | 5 ++ > cmd/Makefile | 1 + > cmd/xxd.c | 85 ++++++++++++++++++++++++++++++ > configs/sandbox64_defconfig | 1 + > configs/sandbox_defconfig | 1 + > doc/usage/cmd/xxd.rst | 50 ++++++++++++++++++ > test/py/tests/test_xxd/conftest.py | 35 ++++++++++++ > test/py/tests/test_xxd/test_xxd.py | 23 ++++++++ > 9 files changed, 208 insertions(+) > create mode 100644 cmd/xxd.c > create mode 100644 doc/usage/cmd/xxd.rst > create mode 100644 test/py/tests/test_xxd/conftest.py > create mode 100644 test/py/tests/test_xxd/test_xxd.py
Reviewed-by: Simon Glass <[email protected]>

