Kconfig 12 KB

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