1
0

Config.in.kernel 7.0 KB

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