summaryrefslogtreecommitdiff
path: root/cmd/Makefile
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko.stuebner@theobroma-systems.com>2020-06-30 02:05:45 +0300
committerTom Rini <trini@konsulko.com>2020-07-09 00:21:46 +0300
commit85ecfd1a128fa0235c34e14eccafb5aa9bf65554 (patch)
tree768c8fb332e87b3c86ef23d6628d1c72e916f816 /cmd/Makefile
parentce6515ecee1fa060a7a4e79eafc8db5f86d259a0 (diff)
downloadu-boot-85ecfd1a128fa0235c34e14eccafb5aa9bf65554.tar.xz
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>
Diffstat (limited to 'cmd/Makefile')
-rw-r--r--cmd/Makefile1
1 files changed, 1 insertions, 0 deletions
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