]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: add a panic command
authorHeiko Stuebner <heiko.stuebner@theobroma-systems.com>
Mon, 29 Jun 2020 23:05:45 +0000 (01:05 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 8 Jul 2020 21:21:46 +0000 (17:21 -0400)
commit85ecfd1a128fa0235c34e14eccafb5aa9bf65554
tree768c8fb332e87b3c86ef23d6628d1c72e916f816
parentce6515ecee1fa060a7a4e79eafc8db5f86d259a0
cmd: add a panic command

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@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
cmd/Makefile
cmd/panic.c [new file with mode: 0644]