git.openpandora.org
/
pandora-u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
stackprot: Make our test a bit more complex
[pandora-u-boot.git]
/
cmd
/
terminal.c
diff --git
a/cmd/terminal.c
b/cmd/terminal.c
index
733701e
..
9e32a41
100644
(file)
--- a/
cmd/terminal.c
+++ b/
cmd/terminal.c
@@
-25,7
+25,9
@@
int do_terminal(struct cmd_tbl *cmd, int flag, int argc, char *const argv[])
if (!dev)
return -1;
- serial_reinit_all();
+ if (IS_ENABLED(CONFIG_SERIAL))
+ serial_reinit_all();
+
printf("Entering terminal mode for port %s\n", dev->name);
puts("Use '~.' to leave the terminal and get back to u-boot\n");