lib: Allow hexdump to be used in SPL
authorSimon Glass <sjg@chromium.org>
Sat, 12 Sep 2020 17:13:35 +0000 (11:13 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 10 Oct 2020 20:49:58 +0000 (16:49 -0400)
It is sometimes useful to output hex dumps in SPL. Add a config option to
allow this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
lib/Kconfig

index 8efb154..37aae73 100644 (file)
@@ -542,6 +542,14 @@ config HEXDUMP
        help
          This enables functions for printing dumps of binary data.
 
+config SPL_HEXDUMP
+       bool "Enable hexdump in SPL"
+       depends on HEXDUMP
+       default y
+       help
+         This enables functions for printing dumps of binary data in
+         SPL.
+
 config OF_LIBFDT
        bool "Enable the FDT library"
        default y if OF_CONTROL