From 85ecfd1a128fa0235c34e14eccafb5aa9bf65554 Mon Sep 17 00:00:00 2001 From: Heiko Stuebner Date: Tue, 30 Jun 2020 01:05:45 +0200 Subject: 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 Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- cmd/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/Makefile') diff --git a/cmd/Makefile b/cmd/Makefile index 006075a048..7008dd42dc 100644 --- a/cmd/Makefile +++ b/cmd/Makefile @@ -8,6 +8,7 @@ ifndef CONFIG_SPL_BUILD obj-y += boot.o obj-$(CONFIG_CMD_BOOTM) += bootm.o obj-y += help.o +obj-y += panic.o obj-y += version.o # command -- cgit v1.2.1