cmd: add a panic command
From: Heiko Stuebner <heiko.stuebner@...> Date: Fri, 26 Jun 2020 13:30:05 +0200
Commit-Message
Even in boot scripts it may be needed to "panic" when all options are exhausted and the device specification specifies hanging instead of resetting the board. So add a new panic command that just wraps around the core panic call in U-Boot and can take an optional message. Signed-off-by: Heiko Stuebner <heiko.stuebner@...> Reviewed-by: Simon Glass <sjg@...>
Patch-Comment
changes in v2: - add blank line before return (Simon) - fix U-Boot spelling (Simon) cmd/Makefile | 1 + cmd/panic.c | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 cmd/panic.c
Statistics
- 24 lines added
- 0 lines removed