Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 2 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 3 | config EARLY_PRINTK |
| 4 | def_bool DEBUG_OCD |
| 5 | help |
| 6 | Write kernel log output directly into the ocd or to a serial port. |
| 7 | |
| 8 | This is useful for kernel debugging when your machine crashes very |
| 9 | early before the console code is initialized. For normal operation |
| 10 | it is not recommended because it looks ugly and doesn't cooperate |
| 11 | with klogd/syslogd or the X server. You should normally N here, |
| 12 | unless you want to debug such a crash. |
| 13 | |
GuanXuetao | 790edb6 | 2011-02-26 18:24:56 +0800 | [diff] [blame] | 14 | # These options are only for real kernel hackers who want to get their hands dirty. |
| 15 | config DEBUG_LL |
| 16 | bool "Kernel low-level debugging functions" |
| 17 | depends on DEBUG_KERNEL |
| 18 | help |
| 19 | Say Y here to include definitions of printascii, printch, printhex |
| 20 | in the kernel. This is helpful if you are debugging code that |
| 21 | executes before the console is initialized. |
| 22 | |
| 23 | config DEBUG_OCD |
| 24 | bool "Kernel low-level debugging via On-Chip-Debugger" |
| 25 | depends on DEBUG_LL |
| 26 | default y |
| 27 | help |
| 28 | Say Y here if you want the debug print routines to direct their |
| 29 | output to the UniCore On-Chip-Debugger channel using CP #1. |