PageRenderTime 52ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/boot/uboot/Config.in

https://gitlab.com/ThinFoil/buildroot
Autoconf | 382 lines | 305 code | 77 blank | 0 comment | 44 complexity | 5624df5e0864e8e1422b9829c51034ae MD5 | raw file
  1. config BR2_TARGET_UBOOT
  2. bool "U-Boot"
  3. help
  4. Build "Das U-Boot" Boot Monitor
  5. if BR2_TARGET_UBOOT
  6. choice
  7. prompt "Build system"
  8. default BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
  9. config BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
  10. bool "Legacy"
  11. help
  12. Select this option if you use an old U-Boot (older than 2015.04),
  13. so that we use the old build system.
  14. config BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
  15. bool "Kconfig"
  16. help
  17. Select this option if you use a recent U-Boot version (2015.04 or
  18. newer), so that we use the Kconfig build system.
  19. endchoice
  20. if BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
  21. config BR2_TARGET_UBOOT_BOARDNAME
  22. string "U-Boot board name"
  23. help
  24. One of U-Boot supported boards to be built.
  25. This will be suffixed with _config to meet U-Boot standard naming.
  26. See boards.cfg in U-Boot source code for the list of available
  27. configurations.
  28. endif
  29. choice
  30. prompt "U-Boot Version"
  31. help
  32. Select the specific U-Boot version you want to use
  33. config BR2_TARGET_UBOOT_LATEST_VERSION
  34. bool "2016.09"
  35. config BR2_TARGET_UBOOT_CUSTOM_VERSION
  36. bool "Custom version"
  37. help
  38. This option allows to use a specific official versions
  39. config BR2_TARGET_UBOOT_CUSTOM_TARBALL
  40. bool "Custom tarball"
  41. config BR2_TARGET_UBOOT_CUSTOM_GIT
  42. bool "Custom Git repository"
  43. config BR2_TARGET_UBOOT_CUSTOM_HG
  44. bool "Custom Mercurial repository"
  45. config BR2_TARGET_UBOOT_CUSTOM_SVN
  46. bool "Custom Subversion repository"
  47. endchoice
  48. config BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE
  49. string "U-Boot version"
  50. depends on BR2_TARGET_UBOOT_CUSTOM_VERSION
  51. config BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION
  52. string "URL of custom U-Boot tarball"
  53. depends on BR2_TARGET_UBOOT_CUSTOM_TARBALL
  54. if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG || BR2_TARGET_UBOOT_CUSTOM_SVN
  55. config BR2_TARGET_UBOOT_CUSTOM_REPO_URL
  56. string "URL of custom repository"
  57. default BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL \
  58. if BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL != "" # legacy
  59. config BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION
  60. string "Custom repository version"
  61. default BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION \
  62. if BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION != "" # legacy
  63. help
  64. Revision to use in the typical format used by Git/Mercurial/Subversion
  65. E.G. a sha id, a tag, branch, ..
  66. endif
  67. config BR2_TARGET_UBOOT_VERSION
  68. string
  69. default "2016.09" if BR2_TARGET_UBOOT_LATEST_VERSION
  70. default BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE \
  71. if BR2_TARGET_UBOOT_CUSTOM_VERSION
  72. default "custom" if BR2_TARGET_UBOOT_CUSTOM_TARBALL
  73. default BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION \
  74. if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG || BR2_TARGET_UBOOT_CUSTOM_SVN
  75. config BR2_TARGET_UBOOT_PATCH
  76. string "Custom U-Boot patches"
  77. help
  78. A space-separated list of patches to apply to U-Boot.
  79. Each patch can be described as an URL, a local file path,
  80. or a directory. In the case of a directory, all files
  81. matching *.patch in the directory will be applied.
  82. Most users may leave this empty
  83. if BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
  84. choice
  85. prompt "U-Boot configuration"
  86. default BR2_TARGET_UBOOT_USE_DEFCONFIG
  87. config BR2_TARGET_UBOOT_USE_DEFCONFIG
  88. bool "Using an in-tree board defconfig file"
  89. config BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG
  90. bool "Using a custom board (def)config file"
  91. endchoice
  92. config BR2_TARGET_UBOOT_BOARD_DEFCONFIG
  93. string "Board defconfig"
  94. depends on BR2_TARGET_UBOOT_USE_DEFCONFIG
  95. help
  96. Name of the board for which U-Boot should be built, without
  97. the _defconfig suffix.
  98. config BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE
  99. string "Configuration file path"
  100. depends on BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG
  101. help
  102. Path to the U-Boot configuration file.
  103. endif
  104. config BR2_TARGET_UBOOT_NEEDS_DTC
  105. bool "U-Boot needs dtc"
  106. select BR2_PACKAGE_HOST_DTC
  107. help
  108. Select this option if your U-Boot board configuration
  109. requires the Device Tree compiler to be available.
  110. menu "U-Boot binary format"
  111. config BR2_TARGET_UBOOT_FORMAT_AIS
  112. bool "u-boot.ais"
  113. help
  114. AIS (Application Image Script) is a format defined by TI.
  115. It is required to load code/data on OMAP-L1 processors.
  116. u-boot.ais contains U-Boot with the SPL support.
  117. config BR2_TARGET_UBOOT_FORMAT_BIN
  118. bool "u-boot.bin"
  119. default y
  120. config BR2_TARGET_UBOOT_FORMAT_DTB_IMG
  121. bool "u-boot-dtb.img"
  122. config BR2_TARGET_UBOOT_FORMAT_IMG
  123. bool "u-boot.img"
  124. config BR2_TARGET_UBOOT_FORMAT_IMX
  125. bool "u-boot.imx"
  126. config BR2_TARGET_UBOOT_FORMAT_NAND_BIN
  127. bool "u-boot-nand.bin"
  128. config BR2_TARGET_UBOOT_FORMAT_KWB
  129. depends on BR2_arm
  130. bool "u-boot.kwb (Marvell)"
  131. config BR2_TARGET_UBOOT_FORMAT_LDR
  132. depends on BR2_bfin
  133. bool "u-boot.ldr"
  134. config BR2_TARGET_UBOOT_FORMAT_ELF
  135. bool "u-boot.elf"
  136. config BR2_TARGET_UBOOT_FORMAT_SB
  137. depends on BR2_arm
  138. bool "u-boot.sb (Freescale i.MX28)"
  139. config BR2_TARGET_UBOOT_FORMAT_SD
  140. depends on BR2_arm
  141. bool "u-boot.sd (Freescale i.MX28)"
  142. help
  143. This is Freescale i.MX28 SB format, with a header for booting
  144. from an SD card.
  145. U-boot includes an mxsboot tool to generate this format,
  146. starting from 2011.12.
  147. See doc/README.mxs (or doc/README.mx28_common before 2013.07)
  148. config BR2_TARGET_UBOOT_FORMAT_NAND
  149. depends on BR2_arm
  150. bool "u-boot.nand (Freescale i.MX28)"
  151. help
  152. This is Freescale i.MX28 BootStream format (.sb), with a header
  153. for booting from a NAND flash.
  154. U-boot includes an mxsboot tool to generate this format,
  155. starting from 2011.12.
  156. There are two possibilities when preparing an image writable to
  157. NAND flash:
  158. 1) The NAND was not written at all yet or the BCB (Boot Control
  159. Blocks) is broken. In this case, the NAND image 'u-boot.nand'
  160. needs to written.
  161. 2) The NAND flash was already written with a good BCB. This
  162. applies after 'u-boot.nand' was correctly written. There is no
  163. need to write the BCB again. In this case, the bootloader can be
  164. upgraded by writing 'u-boot.sb'.
  165. To satisfy both cases, the 'u-boot.nand' image obtained from
  166. mxsboot as well as the U-Boot make target 'u-boot.sb' are copied
  167. to the binaries directory.
  168. See doc/README.mxs (or doc/README.mx28_common before 2013.07)
  169. if BR2_TARGET_UBOOT_FORMAT_NAND
  170. config BR2_TARGET_UBOOT_FORMAT_NAND_PAGE_SIZE
  171. int "NAND page size"
  172. default 2048
  173. help
  174. The NAND page size of the targets NAND flash in bytes as a
  175. decimal integer value.
  176. The value provided here is passed to the -w option of mxsboot.
  177. config BR2_TARGET_UBOOT_FORMAT_NAND_OOB_SIZE
  178. int "NAND OOB size"
  179. default 64
  180. help
  181. The NAND OOB size of the targets NAND flash in bytes as a
  182. decimal integer value.
  183. The value provided here is passed to the -o option of mxsboot.
  184. config BR2_TARGET_UBOOT_FORMAT_NAND_ERASE_SIZE
  185. int "NAND erase size"
  186. default 131072
  187. help
  188. The NAND eraseblock size of the targets NAND flash in bytes as
  189. a decimal integer value.
  190. The value provided here is passed to the -e option of mxsboot.
  191. endif
  192. config BR2_TARGET_UBOOT_FORMAT_CUSTOM
  193. bool "Custom (specify below)"
  194. help
  195. On some platforms, the standard U-Boot binary is not called
  196. u-boot.bin, but u-boot<something>.bin. If this is your case,
  197. you should select this option and specify the correct name(s)
  198. in BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME.
  199. config BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME
  200. string "U-Boot binary format: custom names"
  201. depends on BR2_TARGET_UBOOT_FORMAT_CUSTOM
  202. help
  203. In case the U-Boot binary for the target platform is not among
  204. the default names, one or more custom names can be listed here.
  205. Use space to separate multiple names.
  206. Example:
  207. u-boot_magic.bin
  208. endmenu
  209. config BR2_TARGET_UBOOT_OMAP_IFT
  210. depends on BR2_TARGET_UBOOT_FORMAT_BIN
  211. depends on BR2_arm || BR2_armeb
  212. select BR2_PACKAGE_HOST_OMAP_U_BOOT_UTILS
  213. bool "produce a .ift signed image (OMAP)"
  214. help
  215. Use gpsign to produce an image of u-boot.bin signed with
  216. a Configuration Header for booting on OMAP processors.
  217. This allows U-Boot to boot without the need for an
  218. intermediate bootloader (e.g. x-loader) if it is written
  219. on the first sector of the boot medium.
  220. This only works for some media, such as NAND. Check your
  221. chip documentation for details. You might also want to
  222. read the documentation of gpsign, the tool that generates
  223. the .ift image, at:
  224. https://github.com/nmenon/omap-u-boot-utils/blob/master/README
  225. if BR2_TARGET_UBOOT_OMAP_IFT
  226. config BR2_TARGET_UBOOT_OMAP_IFT_CONFIG
  227. string "gpsign Configuration Header config file"
  228. help
  229. The Configuration Header (CH) config file defines the
  230. desired content of the CH for the signed image.
  231. It usually contains external RAM settings and
  232. possibly other external devices initialization.
  233. The omap-u-boot-utils software contains example
  234. configuration files for some boards:
  235. https://github.com/nmenon/omap-u-boot-utils/tree/master/configs
  236. endif
  237. config BR2_TARGET_UBOOT_SPL
  238. bool "Install U-Boot SPL binary image"
  239. depends on !BR2_TARGET_XLOADER
  240. help
  241. Install the U-Boot SPL binary image to the images
  242. directory.
  243. SPL is a first stage bootloader loaded into internal
  244. memory in charge of enabling and configuring the
  245. external memory (DDR), and load the u-boot program
  246. into DDR.
  247. config BR2_TARGET_UBOOT_SPL_NAME
  248. string "U-Boot SPL binary image name"
  249. default "spl/u-boot-spl.bin"
  250. depends on BR2_TARGET_UBOOT_SPL
  251. help
  252. A space-separated list of SPL binaries, generated during
  253. u-boot build. For most platform it is spl/u-boot-spl.bin
  254. but not always. It is MLO on OMAP for example.
  255. config BR2_TARGET_UBOOT_ZYNQ_IMAGE
  256. bool "Generate image for Xilinx Zynq"
  257. depends on BR2_arm
  258. depends on BR2_TARGET_UBOOT_SPL
  259. depends on BR2_TARGET_UBOOT_FORMAT_DTB_IMG
  260. help
  261. Generate the BOOT.BIN file from U-Boot's SPL. The image
  262. boots the Xilinx Zynq chip without any FPGA bitstream.
  263. A bitstream can be loaded by the U-Boot. The SPL searchs
  264. for u-boot-dtb.img file so this U-Boot format is required
  265. to be set.
  266. config BR2_TARGET_UBOOT_ALTERA_SOCFPGA_IMAGE_CRC
  267. bool "CRC SPL image for Altera SoC FPGA"
  268. depends on BR2_arm
  269. depends on BR2_TARGET_UBOOT_SPL
  270. help
  271. Generate SPL image fixed by the mkpimage tool to enable
  272. booting on the Altera SoC FPGA based platforms.
  273. menuconfig BR2_TARGET_UBOOT_ENVIMAGE
  274. bool "Environment image"
  275. help
  276. Generate a valid binary environment image from a text file
  277. describing the key=value pairs of the environment.
  278. The environment image will be called uboot-env.bin.
  279. if BR2_TARGET_UBOOT_ENVIMAGE
  280. config BR2_TARGET_UBOOT_ENVIMAGE_SOURCE
  281. string "Source files for environment"
  282. help
  283. Text files describing the environment. Files should have
  284. lines of the form var=value, one per line. Blank lines and
  285. lines starting with a # are ignored.
  286. Multiple source files are concatenated in the order listed.
  287. config BR2_TARGET_UBOOT_ENVIMAGE_SIZE
  288. string "Size of environment"
  289. help
  290. Size of envronment, can be prefixed with 0x for hexadecimal
  291. values.
  292. config BR2_TARGET_UBOOT_ENVIMAGE_REDUNDANT
  293. bool "Environment has two copies"
  294. help
  295. Some platforms define in their U-Boot configuration that the
  296. U-Boot environment should be duplicated in two locations (for
  297. extra safety). Check your U-Boot configuration for the
  298. CONFIG_ENV_ADDR_REDUND and CONFIG_ENV_SIZE_REDUND settings to
  299. see if this is the case for your platform.
  300. If it is the case, then you should enable this option to
  301. ensure that the U-Boot environment image generated by
  302. Buildroot is compatible with the "redundant environment"
  303. mechanism of U-Boot.
  304. endif # BR2_TARGET_UBOOT_ENVIMAGE
  305. endif # BR2_TARGET_UBOOT