diff mbox series

[v2,2/2] lib: Allow hexdump to be used in SPL

Message ID 20200912111330.v2.2.I16c8d3df6d96f3485c94555ab7c5cd7510db6038@changeid
State Accepted
Delegated to: Tom Rini
Headers show
Series [v2,1/2] log: Allow LOG_DEBUG to always enable log output | expand

Commit Message

Simon Glass Sept. 12, 2020, 5:13 p.m. UTC
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>
---

Changes in v2:
- Leave the Makefile alone as the logic is in the C file

 lib/Kconfig | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Tom Rini Oct. 12, 2020, 1:14 a.m. UTC | #1
On Sat, Sep 12, 2020 at 11:13:35AM -0600, Simon Glass wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/lib/Kconfig b/lib/Kconfig
index 8efb154f734..37aae73a266 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -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