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 uboot and can take an optional message. Signed-off-by: Heiko Stuebner <heiko.stuebner@...>
Patch-Comment
cmd/Makefile | 1 + cmd/panic.c | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 cmd/panic.c
Statistics
- 23 lines added
- 0 lines removed