Kconfig.debug 3.0 KB

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