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