Config.in.kernel 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. config ADK_KERNEL_EXPERIMENTAL
  4. bool
  5. default y
  6. config ADK_KERNEL_STAGING
  7. bool
  8. config ADK_KERNEL_RESET_CONTROLLER
  9. bool
  10. config ADK_KERNEL_BLK_DEV_INITRD
  11. bool
  12. config ADK_KERNEL_BLK_DEV_RAM
  13. bool
  14. config ADK_KERNEL_INITRAMFS_COMPRESSION_NONE
  15. bool
  16. config ADK_KERNEL_INITRAMFS_COMPRESSION_XZ
  17. bool
  18. select ADK_HOST_NEED_XZ
  19. config ADK_KERNEL_INITRAMFS_COMPRESSION_LZ4
  20. bool
  21. select ADK_HOST_NEED_LZ4
  22. config ADK_KERNEL_INITRAMFS_COMPRESSION_LZMA
  23. bool
  24. select ADK_HOST_NEED_LZMA
  25. config ADK_KERNEL_INITRAMFS_COMPRESSION_LZO
  26. bool
  27. select ADK_HOST_NEED_LZOP
  28. config ADK_KERNEL_INITRAMFS_COMPRESSION_BZIP2
  29. bool
  30. select ADK_HOST_NEED_BZIP2
  31. config ADK_KERNEL_INITRAMFS_COMPRESSION_GZIP
  32. bool
  33. config ADK_KERNEL_RD_GZIP
  34. bool
  35. config ADK_KERNEL_KERNEL_GZIP
  36. bool
  37. config ADK_KERNEL_RD_BZIP2
  38. bool
  39. config ADK_KERNEL_KERNEL_BZIP2
  40. bool
  41. config ADK_KERNEL_RD_LZ4
  42. bool
  43. config ADK_KERNEL_KERNEL_LZ4
  44. bool
  45. config ADK_KERNEL_RD_LZMA
  46. bool
  47. config ADK_KERNEL_KERNEL_LZMA
  48. bool
  49. config ADK_KERNEL_RD_LZO
  50. bool
  51. config ADK_KERNEL_KERNEL_LZO
  52. bool
  53. config ADK_KERNEL_RD_XZ
  54. bool
  55. config ADK_KERNEL_KERNEL_XZ
  56. bool
  57. config ADK_KERNEL_INITRAMFS_SOURCE
  58. string
  59. default ""
  60. config ADK_KERNEL_NETWORK_FILESYSTEMS
  61. bool
  62. config ADK_KERNEL_IP_PNP
  63. bool
  64. config ADK_KERNEL_IP_PNP_DHCP
  65. bool
  66. config ADK_KERNEL_ROOT_NFS
  67. bool
  68. config ADK_KERNEL_NFS_COMMON
  69. bool
  70. config ADK_KERNEL_64BIT
  71. bool
  72. default y if ADK_LINUX_64
  73. config ADK_KERNEL_CPU_MIPS64
  74. bool
  75. config ADK_KERNEL_CPU_MIPS64_R1
  76. bool
  77. config ADK_KERNEL_CPU_MIPS64_R2
  78. bool
  79. # ARM specific
  80. config ADK_KERNEL_AEABI
  81. bool
  82. default y if ADK_TARGET_ARCH_ARM
  83. config ADK_KERNEL_ARM_THUMB
  84. bool
  85. config ADK_KERNEL_THUMB2_KERNEL
  86. bool
  87. # endianess
  88. config ADK_KERNEL_CPU_BIG_ENDIAN
  89. bool
  90. default y if ADK_TARGET_BIG_ENDIAN
  91. config ADK_KERNEL_CPU_LITTLE_ENDIAN
  92. bool
  93. default y if ADK_TARGET_LITTLE_ENDIAN
  94. choice
  95. prompt "Kernel compression"
  96. default ADK_KERNEL_COMP_GZIP if ADK_TARGET_BOARD_BCM28XX
  97. default ADK_KERNEL_COMP_XZ if ADK_TARGET_KERNEL_WITH_COMPRESSION
  98. default ADK_KERNEL_COMPRESS_NONE
  99. config ADK_KERNEL_COMP_XZ
  100. bool "use XZ compression"
  101. select ADK_KERNEL_RD_XZ
  102. select ADK_KERNEL_KERNEL_XZ
  103. select ADK_KERNEL_INITRAMFS_COMPRESSION_XZ
  104. depends on ADK_TARGET_KERNEL_WITH_COMPRESSION
  105. config ADK_KERNEL_COMP_LZ4
  106. bool "use LZ4 compression"
  107. select ADK_KERNEL_RD_LZ4
  108. select ADK_KERNEL_KERNEL_LZ4
  109. select ADK_KERNEL_INITRAMFS_COMPRESSION_LZ4
  110. depends on ADK_TARGET_ARCH_X86 || ADK_TARGET_ARCH_ARM
  111. depends on ADK_TARGET_KERNEL_WITH_COMPRESSION
  112. config ADK_KERNEL_COMP_LZMA
  113. bool "use LZMA compression"
  114. select ADK_KERNEL_RD_LZMA
  115. select ADK_KERNEL_KERNEL_LZMA
  116. select ADK_KERNEL_INITRAMFS_COMPRESSION_LZMA
  117. depends on ADK_TARGET_KERNEL_WITH_COMPRESSION
  118. config ADK_KERNEL_COMP_LZO
  119. bool "use LZO compression"
  120. select ADK_KERNEL_RD_LZO
  121. select ADK_KERNEL_KERNEL_LZO
  122. select ADK_KERNEL_INITRAMFS_COMPRESSION_LZO
  123. depends on ADK_TARGET_KERNEL_WITH_COMPRESSION
  124. config ADK_KERNEL_COMP_BZIP2
  125. bool "use BZIP2 compression"
  126. select ADK_KERNEL_RD_BZIP2
  127. select ADK_KERNEL_KERNEL_BZIP2
  128. select ADK_KERNEL_INITRAMFS_COMPRESSION_BZIP2
  129. depends on ADK_TARGET_KERNEL_WITH_COMPRESSION
  130. config ADK_KERNEL_COMP_GZIP
  131. bool "use GZIP compression"
  132. select ADK_KERNEL_RD_GZIP
  133. select ADK_KERNEL_KERNEL_GZIP
  134. select ADK_KERNEL_INITRAMFS_COMPRESSION_GZIP
  135. depends on ADK_TARGET_KERNEL_WITH_COMPRESSION
  136. config ADK_KERNEL_COMPRESS_NONE
  137. bool "use no compression"
  138. select ADK_KERNEL_INITRAMFS_COMPRESSION_NONE
  139. endchoice
  140. menu "Kernel options"
  141. config ADK_KERNEL_DEVTMPFS
  142. bool
  143. config ADK_KERNEL_DEVTMPFS_MOUNT
  144. bool
  145. config ADK_KERNEL_UEVENT_HELPER
  146. bool
  147. depends on ADK_RUNTIME_DEV_MDEV
  148. default y if ADK_RUNTIME_DEV_MDEV
  149. config ADK_KERNEL_UEVENT_HELPER_PATH
  150. string
  151. default "/sbin/mdev"
  152. depends on ADK_RUNTIME_DEV_MDEV
  153. config ADK_KERNEL_BINFMT_ELF
  154. bool
  155. default y if ADK_TARGET_BINFMT_ELF
  156. config ADK_KERNEL_BINFMT_ELF_FDPIC
  157. bool
  158. default y if ADK_TARGET_BINFMT_FDPIC
  159. config ADK_KERNEL_BINFMT_FLAT
  160. bool
  161. default y if ADK_TARGET_BINFMT_FLAT
  162. config ADK_KERNEL_MMU
  163. bool
  164. config ADK_KERNEL_VFP
  165. bool
  166. default y if ADK_TARGET_CPU_WITH_FPU_VFP
  167. config ADK_KERNEL_VFPv3
  168. bool
  169. select ADK_KERNEL_VFP
  170. default y if ADK_TARGET_CPU_WITH_FPU_VFPV3 || ADK_TARGET_CPU_WITH_FPU_VFPV4
  171. config ADK_KERNEL_NEON
  172. bool
  173. default y if ADK_TARGET_ARCH_ARM_WITH_NEON
  174. config ADK_KERNEL_KERNEL_MODE_NEON
  175. bool
  176. default y if ADK_TARGET_ARCH_ARM_WITH_NEON
  177. choice
  178. prompt "preemptive mode"
  179. config ADK_KERNEL_PREEMPT_NONE
  180. bool "No Forced Preemption (Server)"
  181. help
  182. No Forced Preemption (Server)
  183. config ADK_KERNEL_PREEMPT_VOLUNTARY
  184. bool "Voluntary Kernel Preemption (Desktop)"
  185. select ADK_KERNEL_HIGH_RES_TIMERS
  186. help
  187. Voluntary Kernel Preemption (Desktop)
  188. config ADK_KERNEL_PREEMPT__LL
  189. bool "Preemptible Kernel (Low-Latency Desktop)"
  190. select ADK_KERNEL_HIGH_RES_TIMERS
  191. help
  192. Preemptible Kernel (Low-Latency Desktop)
  193. config ADK_KERNEL_PREEMPT_RTB
  194. bool "Preemptible Kernel (Basic RealTime)"
  195. select ADK_KERNEL_HIGH_RES_TIMERS
  196. depends on ADK_TARGET_KERNEL_VERSION_4_1
  197. help
  198. Preemptible Kernel (Basic RT)
  199. config ADK_KERNEL_PREEMPT_RT_FULL
  200. bool "Fully Preemptible Kernel (RealTime)"
  201. select ADK_KERNEL_HIGH_RES_TIMERS
  202. depends on ADK_TARGET_KERNEL_VERSION_4_1
  203. help
  204. Fully Preemptible Kernel (RealTime)
  205. https://www.kernel.org/pub/linux/kernel/projects/rt/
  206. endchoice
  207. config ADK_KERNEL_HIGH_RES_TIMERS
  208. bool "Enable high resolution timers"
  209. choice
  210. prompt "tick configuration"
  211. config ADK_KERNEL_NO_HZ_IDLE
  212. bool "no HZ IDLE, dynamic tick"
  213. config ADK_KERNEL_NO_HZ_FULL
  214. bool "no HZ FULL, dynamic tick"
  215. config ADK_KERNEL_HZ_PERIODIC
  216. bool "periodic tick"
  217. endchoice
  218. choice
  219. prompt "HZ"
  220. depends on ADK_KERNEL_HZ_PERIODIC
  221. config ADK_KERNEL_HZ_100
  222. bool "100 HZ"
  223. config ADK_KERNEL_HZ_500
  224. bool "500 HZ"
  225. config ADK_KERNEL_HZ_1000
  226. bool "1000 HZ"
  227. endchoice
  228. config ADK_TARGET_NO_CMDLINE
  229. bool "Do not builtin any kernel cmdline"
  230. help
  231. No kernel command line modifictaion is done.
  232. config ADK_KERNEL_SMP
  233. bool "Enable symmetric multi processing"
  234. depends on ADK_TARGET_WITH_SMP
  235. default y if ADK_TARGET_WITH_SMP
  236. default n
  237. help
  238. Enable symmetric multi processing support.
  239. config ADK_KERNEL_HIGHMEM
  240. bool "Enable high memory"
  241. default y if ADK_TARGET_SYSTEM_IBM_X40
  242. default y if ADK_TARGET_SYSTEM_RASPBERRY_PI2
  243. default y if ADK_TARGET_MODEL_CUBOX_I4PRO
  244. default y if ADK_TARGET_MODEL_CUBOX_I2ULTRA
  245. default y if ADK_TARGET_MODEL_CUBOX_I2EX
  246. default n
  247. help
  248. Enable high memory support.
  249. config ADK_KERNEL_CC_OPTIMIZE_FOR_SIZE
  250. bool "Optimize for size"
  251. # does not boot in qemu-microblaze
  252. depends on !ADK_TARGET_ARCH_MICROBLAZE
  253. default y
  254. choice
  255. prompt "Page size"
  256. depends on ADK_TARGET_ARCH_MIPS64
  257. default ADK_KERNEL_PAGE_SIZE_16KB if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
  258. default ADK_KERNEL_PAGE_SIZE_4KB
  259. config ADK_KERNEL_PAGE_SIZE_4KB
  260. bool "4kB"
  261. config ADK_KERNEL_PAGE_SIZE_16KB
  262. bool "16kB"
  263. config ADK_KERNEL_PAGE_SIZE_64KB
  264. bool "64kB"
  265. endchoice
  266. endmenu