Kconfig 12 KB

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