Kconfig 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. config CREATE_ARCH_SYMLINK
  2. bool
  3. config HAVE_ARCH_IOREMAP
  4. bool
  5. config NEEDS_MANUAL_RELOC
  6. bool
  7. config LINKER_LIST_ALIGN
  8. int
  9. default 32 if SANDBOX
  10. default 8 if ARM64 || X86
  11. default 4
  12. help
  13. Force the each linker list to be aligned to this boundary. This
  14. is required if ll_entry_get() is used, since otherwise the linker
  15. may add padding into the table, thus breaking it.
  16. See linker_lists.rst for full details.
  17. choice
  18. prompt "Architecture select"
  19. default SANDBOX
  20. config ARC
  21. bool "ARC architecture"
  22. select ARC_TIMER
  23. select CLK
  24. select DM
  25. select HAVE_PRIVATE_LIBGCC
  26. select SUPPORT_OF_CONTROL
  27. select TIMER
  28. config ARM
  29. bool "ARM architecture"
  30. select ARCH_SUPPORTS_LTO
  31. select CREATE_ARCH_SYMLINK
  32. select HAVE_PRIVATE_LIBGCC if !ARM64
  33. select SUPPORT_OF_CONTROL
  34. config M68K
  35. bool "M68000 architecture"
  36. select HAVE_PRIVATE_LIBGCC
  37. select NEEDS_MANUAL_RELOC
  38. select SYS_BOOT_GET_CMDLINE
  39. select SYS_BOOT_GET_KBD
  40. select SUPPORT_OF_CONTROL
  41. config MICROBLAZE
  42. bool "MicroBlaze architecture"
  43. select NEEDS_MANUAL_RELOC
  44. select SUPPORT_OF_CONTROL
  45. imply CMD_IRQ
  46. config MIPS
  47. bool "MIPS architecture"
  48. select HAVE_ARCH_IOREMAP
  49. select HAVE_PRIVATE_LIBGCC
  50. select SUPPORT_OF_CONTROL
  51. config NDS32
  52. bool "NDS32 architecture"
  53. select SUPPORT_OF_CONTROL
  54. config NIOS2
  55. bool "Nios II architecture"
  56. select CPU
  57. select DM
  58. select OF_CONTROL
  59. select SUPPORT_OF_CONTROL
  60. imply CMD_DM
  61. config PPC
  62. bool "PowerPC architecture"
  63. select HAVE_PRIVATE_LIBGCC
  64. select SUPPORT_OF_CONTROL
  65. select SYS_BOOT_GET_CMDLINE
  66. select SYS_BOOT_GET_KBD
  67. config RISCV
  68. bool "RISC-V architecture"
  69. select CREATE_ARCH_SYMLINK
  70. select SUPPORT_OF_CONTROL
  71. select OF_CONTROL
  72. select DM
  73. imply DM_SERIAL
  74. imply DM_ETH
  75. imply DM_MMC
  76. imply DM_SPI
  77. imply DM_SPI_FLASH
  78. imply BLK
  79. imply CLK
  80. imply MTD
  81. imply TIMER
  82. imply CMD_DM
  83. imply SPL_DM
  84. imply SPL_OF_CONTROL
  85. imply SPL_LIBCOMMON_SUPPORT
  86. imply SPL_LIBGENERIC_SUPPORT
  87. imply SPL_SERIAL_SUPPORT
  88. imply SPL_TIMER
  89. config SANDBOX
  90. bool "Sandbox"
  91. select ARCH_SUPPORTS_LTO
  92. select BOARD_LATE_INIT
  93. select BZIP2
  94. select CMD_POWEROFF
  95. select DM
  96. select DM_GPIO
  97. select DM_I2C
  98. select DM_KEYBOARD
  99. select DM_MMC
  100. select DM_SERIAL
  101. select DM_SPI
  102. select DM_SPI_FLASH
  103. select GZIP_COMPRESSED
  104. select HAVE_BLOCK_DEVICE
  105. select LZO
  106. select OF_BOARD_SETUP
  107. select PCI_ENDPOINT
  108. select SPI
  109. select SUPPORT_OF_CONTROL
  110. select SYSRESET_CMD_POWEROFF
  111. select IRQ
  112. select SUPPORT_EXTENSION_SCAN
  113. imply BITREVERSE
  114. select BLOBLIST
  115. imply LTO
  116. imply CMD_DM
  117. imply CMD_EXCEPTION
  118. imply CMD_GETTIME
  119. imply CMD_HASH
  120. imply CMD_IO
  121. imply CMD_IOTRACE
  122. imply CMD_LZMADEC
  123. imply CMD_SATA
  124. imply CMD_SF
  125. imply CMD_SF_TEST
  126. imply CRC32_VERIFY
  127. imply FAT_WRITE
  128. imply FIRMWARE
  129. imply HASH_VERIFY
  130. imply LZMA
  131. imply SCSI
  132. imply TEE
  133. imply AVB_VERIFY
  134. imply LIBAVB
  135. imply CMD_AVB
  136. imply SCP03
  137. imply CMD_SCP03
  138. imply UDP_FUNCTION_FASTBOOT
  139. imply VIRTIO_MMIO
  140. imply VIRTIO_PCI
  141. imply VIRTIO_SANDBOX
  142. imply VIRTIO_BLK
  143. imply VIRTIO_NET
  144. imply DM_SOUND
  145. imply PCI_SANDBOX_EP
  146. imply PCH
  147. imply PHYLIB
  148. imply DM_MDIO
  149. imply DM_MDIO_MUX
  150. imply ACPI_PMC
  151. imply ACPI_PMC_SANDBOX
  152. imply CMD_PMC
  153. imply CMD_CLONE
  154. imply SILENT_CONSOLE
  155. imply BOOTARGS_SUBST
  156. imply PHY_FIXED
  157. imply DM_DSA
  158. imply CMD_EXTENSION
  159. config SH
  160. bool "SuperH architecture"
  161. select HAVE_PRIVATE_LIBGCC
  162. select SUPPORT_OF_CONTROL
  163. config X86
  164. bool "x86 architecture"
  165. select SUPPORT_SPL
  166. select SUPPORT_TPL
  167. select CREATE_ARCH_SYMLINK
  168. select DM
  169. select HAVE_ARCH_IOMAP
  170. select HAVE_PRIVATE_LIBGCC
  171. select OF_CONTROL
  172. select PCI
  173. select SUPPORT_OF_CONTROL
  174. select TIMER
  175. select USE_PRIVATE_LIBGCC
  176. select X86_TSC_TIMER
  177. select IRQ
  178. imply HAS_ROM if X86_RESET_VECTOR
  179. imply BLK
  180. imply CMD_DM
  181. imply CMD_FPGA_LOADMK
  182. imply CMD_GETTIME
  183. imply CMD_IO
  184. imply CMD_IRQ
  185. imply CMD_PCI
  186. imply CMD_SF
  187. imply CMD_SF_TEST
  188. imply CMD_ZBOOT
  189. imply DM_ETH
  190. imply DM_GPIO
  191. imply DM_KEYBOARD
  192. imply DM_MMC
  193. imply DM_RTC
  194. imply DM_SCSI
  195. imply DM_SERIAL
  196. imply DM_SPI
  197. imply DM_SPI_FLASH
  198. imply DM_USB
  199. imply DM_VIDEO
  200. imply SYSRESET
  201. imply SPL_SYSRESET
  202. imply SYSRESET_X86
  203. imply USB_ETHER_ASIX
  204. imply USB_ETHER_SMSC95XX
  205. imply USB_HOST_ETHER
  206. imply PCH
  207. imply RTC_MC146818
  208. imply ACPIGEN if !QEMU
  209. imply SYSINFO if GENERATE_SMBIOS_TABLE
  210. imply SYSINFO_SMBIOS if GENERATE_SMBIOS_TABLE
  211. # Thing to enable for when SPL/TPL are enabled: SPL
  212. imply SPL_DM
  213. imply SPL_OF_LIBFDT
  214. imply SPL_DRIVERS_MISC
  215. imply SPL_GPIO
  216. imply SPL_PINCTRL
  217. imply SPL_LIBCOMMON_SUPPORT
  218. imply SPL_LIBGENERIC_SUPPORT
  219. imply SPL_SERIAL_SUPPORT
  220. imply SPL_SPI_FLASH_SUPPORT
  221. imply SPL_SPI_SUPPORT
  222. imply SPL_OF_CONTROL
  223. imply SPL_TIMER
  224. imply SPL_REGMAP
  225. imply SPL_SYSCON
  226. # TPL
  227. imply TPL_DM
  228. imply TPL_DRIVERS_MISC
  229. imply TPL_GPIO
  230. imply TPL_PINCTRL
  231. imply TPL_LIBCOMMON_SUPPORT
  232. imply TPL_LIBGENERIC_SUPPORT
  233. imply TPL_SERIAL_SUPPORT
  234. imply TPL_OF_CONTROL
  235. imply TPL_TIMER
  236. imply TPL_REGMAP
  237. imply TPL_SYSCON
  238. config XTENSA
  239. bool "Xtensa architecture"
  240. select CREATE_ARCH_SYMLINK
  241. select SUPPORT_OF_CONTROL
  242. endchoice
  243. config SYS_ARCH
  244. string
  245. help
  246. This option should contain the architecture name to build the
  247. appropriate arch/<CONFIG_SYS_ARCH> directory.
  248. All the architectures should specify this option correctly.
  249. config SYS_CPU
  250. string
  251. help
  252. This option should contain the CPU name to build the correct
  253. arch/<CONFIG_SYS_ARCH>/cpu/<CONFIG_SYS_CPU> directory.
  254. This is optional. For those targets without the CPU directory,
  255. leave this option empty.
  256. config SYS_SOC
  257. string
  258. help
  259. This option should contain the SoC name to build the directory
  260. arch/<CONFIG_SYS_ARCH>/cpu/<CONFIG_SYS_CPU>/<CONFIG_SYS_SOC>.
  261. This is optional. For those targets without the SoC directory,
  262. leave this option empty.
  263. config SYS_VENDOR
  264. string
  265. help
  266. This option should contain the vendor name of the target board.
  267. If it is set and
  268. board/<CONFIG_SYS_VENDOR>/common/Makefile exists, the vendor common
  269. directory is compiled.
  270. If CONFIG_SYS_BOARD is also set, the sources under
  271. board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD> directory are compiled.
  272. This is optional. For those targets without the vendor directory,
  273. leave this option empty.
  274. config SYS_BOARD
  275. string
  276. help
  277. This option should contain the name of the target board.
  278. If it is set, either board/<CONFIG_SYS_VENDOR>/<CONFIG_SYS_BOARD>
  279. or board/<CONFIG_SYS_BOARD> directory is compiled depending on
  280. whether CONFIG_SYS_VENDOR is set or not.
  281. This is optional. For those targets without the board directory,
  282. leave this option empty.
  283. config SYS_CONFIG_NAME
  284. string
  285. help
  286. This option should contain the base name of board header file.
  287. The header file include/configs/<CONFIG_SYS_CONFIG_NAME>.h
  288. should be included from include/config.h.
  289. config SYS_DISABLE_DCACHE_OPS
  290. bool
  291. help
  292. This option disables dcache flush and dcache invalidation
  293. operations. For example, on coherent systems where cache
  294. operatios are not required, enable this option to avoid them.
  295. Note that, its up to the individual architectures to implement
  296. this functionality.
  297. source "arch/arc/Kconfig"
  298. source "arch/arm/Kconfig"
  299. source "arch/m68k/Kconfig"
  300. source "arch/microblaze/Kconfig"
  301. source "arch/mips/Kconfig"
  302. source "arch/nds32/Kconfig"
  303. source "arch/nios2/Kconfig"
  304. source "arch/powerpc/Kconfig"
  305. source "arch/sandbox/Kconfig"
  306. source "arch/sh/Kconfig"
  307. source "arch/x86/Kconfig"
  308. source "arch/xtensa/Kconfig"
  309. source "arch/riscv/Kconfig"