Kconfig 12 KB

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