Kconfig 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. # For a description of the syntax of this configuration file,
  2. # see Documentation/kbuild/kconfig-language.txt.
  3. #
  4. mainmenu "Linux/SPARC Kernel Configuration"
  5. config 64BIT
  6. bool "64-bit kernel" if ARCH = "sparc"
  7. default ARCH = "sparc64"
  8. help
  9. SPARC is a family of RISC microprocessors designed and marketed by
  10. Sun Microsystems, incorporated. They are very widely found in Sun
  11. workstations and clones.
  12. Say yes to build a 64-bit kernel - formerly known as sparc64
  13. Say no to build a 32-bit kernel - formerly known as sparc
  14. config SPARC
  15. bool
  16. default y
  17. select HAVE_IDE
  18. select HAVE_OPROFILE
  19. select HAVE_ARCH_KGDB if !SMP || SPARC64
  20. select HAVE_ARCH_TRACEHOOK
  21. select ARCH_WANT_OPTIONAL_GPIOLIB
  22. select RTC_CLASS
  23. select RTC_DRV_M48T59
  24. config SPARC32
  25. def_bool !64BIT
  26. config SPARC64
  27. def_bool 64BIT
  28. select ARCH_SUPPORTS_MSI
  29. select HAVE_FUNCTION_TRACER
  30. select HAVE_KRETPROBES
  31. select HAVE_KPROBES
  32. select HAVE_LMB
  33. select HAVE_SYSCALL_WRAPPERS
  34. select HAVE_DYNAMIC_FTRACE
  35. select HAVE_FTRACE_MCOUNT_RECORD
  36. select USE_GENERIC_SMP_HELPERS if SMP
  37. select RTC_DRV_CMOS
  38. select RTC_DRV_BQ4802
  39. select RTC_DRV_SUN4V
  40. select RTC_DRV_STARFIRE
  41. config ARCH_DEFCONFIG
  42. string
  43. default "arch/sparc/configs/sparc32_defconfig" if SPARC32
  44. default "arch/sparc/configs/sparc64_defconfig" if SPARC64
  45. # CONFIG_BITS can be used at source level to get 32/64 bits
  46. config BITS
  47. int
  48. default 32 if SPARC32
  49. default 64 if SPARC64
  50. config GENERIC_TIME
  51. bool
  52. default y if SPARC64
  53. config GENERIC_CMOS_UPDATE
  54. bool
  55. default y if SPARC64
  56. config GENERIC_CLOCKEVENTS
  57. bool
  58. default y if SPARC64
  59. config IOMMU_HELPER
  60. bool
  61. default y if SPARC64
  62. config QUICKLIST
  63. bool
  64. default y if SPARC64
  65. config STACKTRACE_SUPPORT
  66. bool
  67. default y if SPARC64
  68. config LOCKDEP_SUPPORT
  69. bool
  70. default y if SPARC64
  71. config HAVE_LATENCYTOP_SUPPORT
  72. bool
  73. default y if SPARC64
  74. config AUDIT_ARCH
  75. bool
  76. default y
  77. config HAVE_SETUP_PER_CPU_AREA
  78. def_bool y if SPARC64
  79. config GENERIC_HARDIRQS_NO__DO_IRQ
  80. bool
  81. def_bool y if SPARC64
  82. config MMU
  83. bool
  84. default y
  85. config HIGHMEM
  86. bool
  87. default y if SPARC32
  88. config ZONE_DMA
  89. bool
  90. default y if SPARC32
  91. config GENERIC_ISA_DMA
  92. bool
  93. default y if SPARC32
  94. config GENERIC_GPIO
  95. bool
  96. help
  97. Generic GPIO API support
  98. config ARCH_NO_VIRT_TO_BUS
  99. def_bool y
  100. config OF
  101. def_bool y
  102. config ARCH_SUPPORTS_DEBUG_PAGEALLOC
  103. def_bool y if SPARC64
  104. source "init/Kconfig"
  105. source "kernel/Kconfig.freezer"
  106. menu "Processor type and features"
  107. config SMP
  108. bool "Symmetric multi-processing support (does not work on sun4/sun4c)"
  109. ---help---
  110. This enables support for systems with more than one CPU. If you have
  111. a system with only one CPU, say N. If you have a system with more
  112. than one CPU, say Y.
  113. If you say N here, the kernel will run on single and multiprocessor
  114. machines, but will use only one CPU of a multiprocessor machine. If
  115. you say Y here, the kernel will run on many, but not all,
  116. singleprocessor machines. On a singleprocessor machine, the kernel
  117. will run faster if you say N here.
  118. People using multiprocessor machines who say Y here should also say
  119. Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
  120. Management" code will be disabled if you say Y here.
  121. See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
  122. available at <http://www.tldp.org/docs.html#howto>.
  123. If you don't know what to do here, say N.
  124. config NR_CPUS
  125. int "Maximum number of CPUs"
  126. depends on SMP
  127. range 2 32 if SPARC32
  128. range 2 1024 if SPARC64
  129. default 32 if SPARC32
  130. default 64 if SPARC64
  131. source kernel/Kconfig.hz
  132. config RWSEM_GENERIC_SPINLOCK
  133. bool
  134. default y if SPARC32
  135. config RWSEM_XCHGADD_ALGORITHM
  136. bool
  137. default y if SPARC64
  138. config GENERIC_FIND_NEXT_BIT
  139. bool
  140. default y
  141. config GENERIC_HWEIGHT
  142. bool
  143. default y if !ULTRA_HAS_POPULATION_COUNT
  144. config GENERIC_CALIBRATE_DELAY
  145. bool
  146. default y
  147. config ARCH_MAY_HAVE_PC_FDC
  148. bool
  149. default y
  150. config EMULATED_CMPXCHG
  151. bool
  152. default y if SPARC32
  153. help
  154. Sparc32 does not have a CAS instruction like sparc64. cmpxchg()
  155. is emulated, and therefore it is not completely atomic.
  156. # Makefile helpers
  157. config SPARC32_SMP
  158. bool
  159. default y
  160. depends on SPARC32 && SMP
  161. config SPARC64_SMP
  162. bool
  163. default y
  164. depends on SPARC64 && SMP
  165. choice
  166. prompt "Kernel page size" if SPARC64
  167. default SPARC64_PAGE_SIZE_8KB
  168. config SPARC64_PAGE_SIZE_8KB
  169. bool "8KB"
  170. help
  171. This lets you select the page size of the kernel.
  172. 8KB and 64KB work quite well, since SPARC ELF sections
  173. provide for up to 64KB alignment.
  174. If you don't know what to do, choose 8KB.
  175. config SPARC64_PAGE_SIZE_64KB
  176. bool "64KB"
  177. endchoice
  178. config SECCOMP
  179. bool "Enable seccomp to safely compute untrusted bytecode"
  180. depends on SPARC64 && PROC_FS
  181. default y
  182. help
  183. This kernel feature is useful for number crunching applications
  184. that may need to compute untrusted bytecode during their
  185. execution. By using pipes or other transports made available to
  186. the process as file descriptors supporting the read/write
  187. syscalls, it's possible to isolate those applications in
  188. their own address space using seccomp. Once seccomp is
  189. enabled via /proc/<pid>/seccomp, it cannot be disabled
  190. and the task is only allowed to execute a few safe syscalls
  191. defined by each seccomp mode.
  192. If unsure, say Y. Only embedded should say N here.
  193. config HOTPLUG_CPU
  194. bool "Support for hot-pluggable CPUs"
  195. depends on SPARC64 && SMP
  196. select HOTPLUG
  197. help
  198. Say Y here to experiment with turning CPUs off and on. CPUs
  199. can be controlled through /sys/devices/system/cpu/cpu#.
  200. Say N if you want to disable CPU hotplug.
  201. config GENERIC_HARDIRQS
  202. bool
  203. default y if SPARC64
  204. source "kernel/time/Kconfig"
  205. if SPARC64
  206. source "drivers/cpufreq/Kconfig"
  207. config US3_FREQ
  208. tristate "UltraSPARC-III CPU Frequency driver"
  209. depends on CPU_FREQ
  210. select CPU_FREQ_TABLE
  211. help
  212. This adds the CPUFreq driver for UltraSPARC-III processors.
  213. For details, take a look at <file:Documentation/cpu-freq>.
  214. If in doubt, say N.
  215. config US2E_FREQ
  216. tristate "UltraSPARC-IIe CPU Frequency driver"
  217. depends on CPU_FREQ
  218. select CPU_FREQ_TABLE
  219. help
  220. This adds the CPUFreq driver for UltraSPARC-IIe processors.
  221. For details, take a look at <file:Documentation/cpu-freq>.
  222. If in doubt, say N.
  223. endif
  224. config US3_MC
  225. tristate "UltraSPARC-III Memory Controller driver"
  226. depends on SPARC64
  227. default y
  228. help
  229. This adds a driver for the UltraSPARC-III memory controller.
  230. Loading this driver allows exact mnemonic strings to be
  231. printed in the event of a memory error, so that the faulty DIMM
  232. on the motherboard can be matched to the error.
  233. If in doubt, say Y, as this information can be very useful.
  234. # Global things across all Sun machines.
  235. config GENERIC_LOCKBREAK
  236. bool
  237. default y
  238. depends on SPARC64 && SMP && PREEMPT
  239. choice
  240. prompt "SPARC64 Huge TLB Page Size"
  241. depends on SPARC64 && HUGETLB_PAGE
  242. default HUGETLB_PAGE_SIZE_4MB
  243. config HUGETLB_PAGE_SIZE_4MB
  244. bool "4MB"
  245. config HUGETLB_PAGE_SIZE_512K
  246. bool "512K"
  247. config HUGETLB_PAGE_SIZE_64K
  248. depends on !SPARC64_PAGE_SIZE_64KB
  249. bool "64K"
  250. endchoice
  251. config NUMA
  252. bool "NUMA support"
  253. depends on SPARC64 && SMP
  254. config NODES_SHIFT
  255. int
  256. default "4"
  257. depends on NEED_MULTIPLE_NODES
  258. # Some NUMA nodes have memory ranges that span
  259. # other nodes. Even though a pfn is valid and
  260. # between a node's start and end pfns, it may not
  261. # reside on that node. See memmap_init_zone()
  262. # for details.
  263. config NODES_SPAN_OTHER_NODES
  264. def_bool y
  265. depends on NEED_MULTIPLE_NODES
  266. config ARCH_POPULATES_NODE_MAP
  267. def_bool y if SPARC64
  268. config ARCH_SELECT_MEMORY_MODEL
  269. def_bool y if SPARC64
  270. config ARCH_SPARSEMEM_ENABLE
  271. def_bool y if SPARC64
  272. select SPARSEMEM_VMEMMAP_ENABLE
  273. config ARCH_SPARSEMEM_DEFAULT
  274. def_bool y if SPARC64
  275. source "mm/Kconfig"
  276. config SCHED_SMT
  277. bool "SMT (Hyperthreading) scheduler support"
  278. depends on SPARC64 && SMP
  279. default y
  280. help
  281. SMT scheduler support improves the CPU scheduler's decision making
  282. when dealing with SPARC cpus at a cost of slightly increased overhead
  283. in some places. If unsure say N here.
  284. config SCHED_MC
  285. bool "Multi-core scheduler support"
  286. depends on SPARC64 && SMP
  287. default y
  288. help
  289. Multi-core scheduler support improves the CPU scheduler's decision
  290. making when dealing with multi-core CPU chips at a cost of slightly
  291. increased overhead in some places. If unsure say N here.
  292. if SPARC64
  293. source "kernel/Kconfig.preempt"
  294. endif
  295. config CMDLINE_BOOL
  296. bool "Default bootloader kernel arguments"
  297. depends on SPARC64
  298. config CMDLINE
  299. string "Initial kernel command string"
  300. depends on CMDLINE_BOOL
  301. default "console=ttyS0,9600 root=/dev/sda1"
  302. help
  303. Say Y here if you want to be able to pass default arguments to
  304. the kernel. This will be overridden by the bootloader, if you
  305. use one (such as SILO). This is most useful if you want to boot
  306. a kernel from TFTP, and want default options to be available
  307. with having them passed on the command line.
  308. NOTE: This option WILL override the PROM bootargs setting!
  309. config SUN_PM
  310. bool
  311. default y if SPARC32
  312. help
  313. Enable power management and CPU standby features on supported
  314. SPARC platforms.
  315. config SPARC_LED
  316. tristate "Sun4m LED driver"
  317. depends on SPARC32
  318. help
  319. This driver toggles the front-panel LED on sun4m systems
  320. in a user-specifiable manner. Its state can be probed
  321. by reading /proc/led and its blinking mode can be changed
  322. via writes to /proc/led
  323. config SERIAL_CONSOLE
  324. bool
  325. depends on SPARC32
  326. default y
  327. ---help---
  328. If you say Y here, it will be possible to use a serial port as the
  329. system console (the system console is the device which receives all
  330. kernel messages and warnings and which allows logins in single user
  331. mode). This could be useful if some terminal or printer is connected
  332. to that serial port.
  333. Even if you say Y here, the currently visible virtual console
  334. (/dev/tty0) will still be used as the system console by default, but
  335. you can alter that using a kernel command line option such as
  336. "console=ttyS1". (Try "man bootparam" or see the documentation of
  337. your boot loader (silo) about how to pass options to the kernel at
  338. boot time.)
  339. If you don't have a graphics card installed and you say Y here, the
  340. kernel will automatically use the first serial line, /dev/ttyS0, as
  341. system console.
  342. If unsure, say N.
  343. endmenu
  344. menu "Bus options (PCI etc.)"
  345. config SBUS
  346. bool
  347. default y
  348. config SBUSCHAR
  349. bool
  350. default y
  351. config SUN_LDOMS
  352. bool "Sun Logical Domains support"
  353. depends on SPARC64
  354. help
  355. Say Y here is you want to support virtual devices via
  356. Logical Domains.
  357. config PCI
  358. bool "Support for PCI and PS/2 keyboard/mouse"
  359. help
  360. Find out whether your system includes a PCI bus. PCI is the name of
  361. a bus system, i.e. the way the CPU talks to the other stuff inside
  362. your box. If you say Y here, the kernel will include drivers and
  363. infrastructure code to support PCI bus devices.
  364. CONFIG_PCI is needed for all JavaStation's (including MrCoffee),
  365. CP-1200, JavaEngine-1, Corona, Red October, and Serengeti SGSC.
  366. All of these platforms are extremely obscure, so say N if unsure.
  367. config PCI_DOMAINS
  368. def_bool PCI if SPARC64
  369. config PCI_SYSCALL
  370. def_bool PCI
  371. source "drivers/pci/Kconfig"
  372. source "drivers/pcmcia/Kconfig"
  373. config SUN_OPENPROMFS
  374. tristate "Openprom tree appears in /proc/openprom"
  375. help
  376. If you say Y, the OpenPROM device tree will be available as a
  377. virtual file system, which you can mount to /proc/openprom by "mount
  378. -t openpromfs none /proc/openprom".
  379. To compile the /proc/openprom support as a module, choose M here: the
  380. module will be called openpromfs.
  381. Only choose N if you know in advance that you will not need to modify
  382. OpenPROM settings on the running system.
  383. # Makefile helpers
  384. config SPARC32_PCI
  385. bool
  386. default y
  387. depends on SPARC32 && PCI
  388. config SPARC64_PCI
  389. bool
  390. default y
  391. depends on SPARC64 && PCI
  392. endmenu
  393. menu "Executable file formats"
  394. source "fs/Kconfig.binfmt"
  395. config COMPAT
  396. bool
  397. depends on SPARC64
  398. default y
  399. select COMPAT_BINFMT_ELF
  400. config SYSVIPC_COMPAT
  401. bool
  402. depends on COMPAT && SYSVIPC
  403. default y
  404. endmenu
  405. source "net/Kconfig"
  406. source "drivers/Kconfig"
  407. source "drivers/sbus/char/Kconfig"
  408. source "fs/Kconfig"
  409. source "arch/sparc/Kconfig.debug"
  410. source "security/Kconfig"
  411. source "crypto/Kconfig"
  412. source "lib/Kconfig"