blob: 75ed1be8a49e80f87c7dd503e9c50c7d4d331aca [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001menu "Kernel hacking"
2
3source "lib/Kconfig.debug"
4
5config SH_STANDARD_BIOS
6 bool "Use LinuxSH standard BIOS"
7 help
8 Say Y here if your target has the gdb-sh-stub
9 package from www.m17n.org (or any conforming standard LinuxSH BIOS)
10 in FLASH or EPROM. The kernel will use standard BIOS calls during
11 boot for various housekeeping tasks (including calls to read and
12 write characters to a system console, get a MAC address from an
13 on-board Ethernet interface, and shut down the hardware). Note this
14 does not work with machines with an existing operating system in
15 mask ROM and no flash (WindowsCE machines fall in this category).
16 If unsure, say N.
17
18config EARLY_SCIF_CONSOLE
19 bool "Use early SCIF console"
Paul Mundtcad82442006-01-16 22:14:19 -080020 depends on CPU_SH4 || CPU_SH2A && !SH_STANDARD_BIOS
Linus Torvalds1da177e2005-04-16 15:20:36 -070021
22config EARLY_PRINTK
23 bool "Early printk support"
24 depends on SH_STANDARD_BIOS || EARLY_SCIF_CONSOLE
25 help
26 Say Y here to redirect kernel printk messages to the serial port
27 used by the SH-IPL bootloader, starting very early in the boot
28 process and ending when the kernel's serial console is initialised.
29 This option is only useful porting the kernel to a new machine,
30 when the kernel may crash or hang before the serial console is
31 initialised. If unsure, say N.
32
33config KGDB
34 bool "Include KGDB kernel debugger"
Paul Mundt2549b322006-09-27 16:22:33 +090035 select FRAME_POINTER
Linus Torvalds1da177e2005-04-16 15:20:36 -070036 help
37 Include in-kernel hooks for kgdb, the Linux kernel source level
38 debugger. See <http://kgdb.sourceforge.net/> for more information.
39 Unless you are intending to debug the kernel, say N here.
40
41menu "KGDB configuration options"
42 depends on KGDB
43
44config MORE_COMPILE_OPTIONS
45 bool "Add any additional compile options"
46 help
47 If you want to add additional CFLAGS to the kernel build, enable this
48 option and then enter what you would like to add in the next question.
49 Note however that -g is already appended with the selection of KGDB.
50
51config COMPILE_OPTIONS
52 string "Additional compile arguments"
53 depends on MORE_COMPILE_OPTIONS
54
55config KGDB_NMI
56 bool "Enter KGDB on NMI"
57 default n
58
59config KGDB_THREAD
60 bool "Include KGDB thread support"
61 default y
62
63config SH_KGDB_CONSOLE
64 bool "Console messages through GDB"
65 default n
66
67config KGDB_SYSRQ
68 bool "Allow SysRq 'G' to enter KGDB"
69 default y
70
71config KGDB_KERNEL_ASSERTS
72 bool "Include KGDB kernel assertions"
73 default n
74
75comment "Serial port setup"
76
77config KGDB_DEFPORT
78 int "Port number (ttySCn)"
79 default "1"
80
81config KGDB_DEFBAUD
82 int "Baud rate"
83 default "115200"
84
85choice
86 prompt "Parity"
87 depends on KGDB
88 default KGDB_DEFPARITY_N
89
90config KGDB_DEFPARITY_N
91 bool "None"
92
93config KGDB_DEFPARITY_E
94 bool "Even"
95
96config KGDB_DEFPARITY_O
97 bool "Odd"
98
99endchoice
100
101choice
102 prompt "Data bits"
103 depends on KGDB
104 default KGDB_DEFBITS_8
105
106config KGDB_DEFBITS_8
107 bool "8"
108
109config KGDB_DEFBITS_7
110 bool "7"
111
112endchoice
113
114endmenu
115
Linus Torvalds1da177e2005-04-16 15:20:36 -0700116endmenu