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