diff options
author | Ayrton Munoz <ayrton@google.com> | 2022-10-25 18:47:12 -0400 |
---|---|---|
committer | Ayrton Munoz <ayrton@google.com> | 2022-10-25 18:50:32 -0400 |
commit | 594829858f864c5350d0481a478b3f0570a32ded (patch) | |
tree | 284be7d368f3060f8f9727955f9cfdf964146fec /lib | |
parent | a78f34bbcf1e95915c2471ab0bda106cacbbf63d (diff) | |
download | common-594829858f864c5350d0481a478b3f0570a32ded.tar.gz |
lib/console: Conditionally compile panic_shell_start
Bug: 230134581
Change-Id: I90a71ed2ccfae048a754d43099dbcbee69913b5b
Diffstat (limited to 'lib')
-rw-r--r-- | lib/console/console.c | 2 | ||||
-rw-r--r-- | lib/debug/debug.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/console/console.c b/lib/console/console.c index 41c6e9c4..06c62170 100644 --- a/lib/console/console.c +++ b/lib/console/console.c @@ -892,6 +892,7 @@ done: buffer[pos] = 0; } +#if ENABLE_PANIC_SHELL void panic_shell_start(void) { dprintf(INFO, "entering panic shell loop\n"); @@ -933,6 +934,7 @@ void panic_shell_start(void) command->cmd_callback(argc, args); } } +#endif #if LK_DEBUGLEVEL > 1 static int cmd_test(int argc, const cmd_args *argv) diff --git a/lib/debug/debug.c b/lib/debug/debug.c index a6e609a1..46d43588 100644 --- a/lib/debug/debug.c +++ b/lib/debug/debug.c @@ -28,6 +28,7 @@ #include <printf.h> #include <stdio.h> #include <lib/backtrace/backtrace.h> +#include <lib/io.h> #include <list.h> #include <arch/ops.h> #include <platform.h> @@ -104,6 +105,7 @@ static ssize_t __panic_stdio_write(io_handle_t *io, const char *s, size_t len) return len; } +#if ENABLE_PANIC_SHELL FILE *get_panic_fd(void) { static const io_handle_hooks_t panic_hooks = { @@ -120,6 +122,7 @@ FILE *get_panic_fd(void) return &panic_fd; } +#endif void hexdump(const void *ptr, size_t len) { |