Config.in 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  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 "2015.07"
  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. endchoice
  46. config BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE
  47. string "U-Boot version"
  48. depends on BR2_TARGET_UBOOT_CUSTOM_VERSION
  49. config BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION
  50. string "URL of custom U-Boot tarball"
  51. depends on BR2_TARGET_UBOOT_CUSTOM_TARBALL
  52. if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG
  53. config BR2_TARGET_UBOOT_CUSTOM_REPO_URL
  54. string "URL of custom repository"
  55. default BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL \
  56. if BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL != "" # legacy
  57. config BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION
  58. string "Custom repository version"
  59. default BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION \
  60. if BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION != "" # legacy
  61. help
  62. Revision to use in the typical format used by Git/Mercurial
  63. E.G. a sha id, a tag, branch, ..
  64. endif
  65. config BR2_TARGET_UBOOT_VERSION
  66. string
  67. default "2015.07" if BR2_TARGET_UBOOT_LATEST_VERSION
  68. default BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE \
  69. if BR2_TARGET_UBOOT_CUSTOM_VERSION
  70. default "custom" if BR2_TARGET_UBOOT_CUSTOM_TARBALL
  71. default BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION \
  72. if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG
  73. config BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR
  74. string "custom patch dir"
  75. depends on BR2_DEPRECATED_SINCE_2015_05
  76. help
  77. If your board requires custom patches, add the path to the
  78. directory containing the patches here. The patches must be
  79. named uboot-<something>.patch.
  80. Most users may leave this empty
  81. NOTE: Use BR2_TARGET_UBOOT_PATCH instead.
  82. config BR2_TARGET_UBOOT_PATCH
  83. string "Custom U-Boot patches"
  84. help
  85. A space-separated list of patches to apply to U-Boot.
  86. Each patch can be described as an URL, a local file path,
  87. or a directory. In the case of a directory, all files
  88. matching *.patch in the directory will be applied.
  89. Most users may leave this empty
  90. if BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
  91. choice
  92. prompt "U-Boot configuration"
  93. default BR2_TARGET_UBOOT_USE_DEFCONFIG
  94. config BR2_TARGET_UBOOT_USE_DEFCONFIG
  95. bool "Using an in-tree board defconfig file"
  96. config BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG
  97. bool "Using a custom board (def)config file"
  98. endchoice
  99. config BR2_TARGET_UBOOT_BOARD_DEFCONFIG
  100. string "Board defconfig"
  101. depends on BR2_TARGET_UBOOT_USE_DEFCONFIG
  102. help
  103. Name of the board for which U-Boot should be built, without
  104. the _defconfig suffix.
  105. config BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE
  106. string "Configuration file path"
  107. depends on BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG
  108. help
  109. Path to the U-Boot configuration file.
  110. endif
  111. choice
  112. prompt "U-Boot binary format"
  113. default BR2_TARGET_UBOOT_FORMAT_BIN
  114. config BR2_TARGET_UBOOT_FORMAT_AIS
  115. bool "u-boot.ais"
  116. help
  117. AIS (Application Image Script) is a format defined by TI.
  118. It is required to load code/data on OMAP-L1 processors.
  119. u-boot.ais contains U-Boot with the SPL support.
  120. config BR2_TARGET_UBOOT_FORMAT_BIN
  121. bool "u-boot.bin"
  122. config BR2_TARGET_UBOOT_FORMAT_DTB_IMG
  123. bool "u-boot-dtb.img"
  124. config BR2_TARGET_UBOOT_FORMAT_IMG
  125. bool "u-boot.img"
  126. config BR2_TARGET_UBOOT_FORMAT_IMX
  127. bool "u-boot.imx"
  128. config BR2_TARGET_UBOOT_FORMAT_NAND_BIN
  129. bool "u-boot-nand.bin"
  130. config BR2_TARGET_UBOOT_FORMAT_KWB
  131. depends on BR2_arm
  132. bool "u-boot.kwb (Marvell)"
  133. config BR2_TARGET_UBOOT_FORMAT_LDR
  134. depends on BR2_bfin
  135. bool "u-boot.ldr"
  136. config BR2_TARGET_UBOOT_FORMAT_ELF
  137. bool "u-boot.elf"
  138. config BR2_TARGET_UBOOT_FORMAT_SB
  139. depends on BR2_arm
  140. bool "u-boot.sb (Freescale i.MX28)"
  141. config BR2_TARGET_UBOOT_FORMAT_SD
  142. depends on BR2_arm
  143. bool "u-boot.sd (Freescale i.MX28)"
  144. help
  145. This is Freescale i.MX28 SB format, with a header for booting
  146. from an SD card.
  147. U-boot includes an mxsboot tool to generate this format,
  148. starting from 2011.12.
  149. See doc/README.mxs (or doc/README.mx28_common before 2013.07)
  150. config BR2_TARGET_UBOOT_FORMAT_NAND
  151. depends on BR2_arm
  152. bool "u-boot.nand (Freescale i.MX28)"
  153. help
  154. This is Freescale i.MX28 BootStream format (.sb), with a header
  155. for booting from a NAND flash.
  156. U-boot includes an mxsboot tool to generate this format,
  157. starting from 2011.12.
  158. There are two possibilities when preparing an image writable to
  159. NAND flash:
  160. 1) The NAND was not written at all yet or the BCB (Boot Control
  161. Blocks) is broken. In this case, the NAND image 'u-boot.nand'
  162. needs to written.
  163. 2) The NAND flash was already written with a good BCB. This
  164. applies after 'u-boot.nand' was correctly written. There is no
  165. need to write the BCB again. In this case, the bootloader can be
  166. upgraded by writing 'u-boot.sb'.
  167. To satisfy both cases, the 'u-boot.nand' image obtained from
  168. mxsboot as well as the U-Boot make target 'u-boot.sb' are copied
  169. to the binaries directory.
  170. See doc/README.mxs (or doc/README.mx28_common before 2013.07)
  171. if BR2_TARGET_UBOOT_FORMAT_NAND
  172. config BR2_TARGET_UBOOT_FORMAT_NAND_PAGE_SIZE
  173. int "NAND page size"
  174. default 2048
  175. help
  176. The NAND page size of the targets NAND flash in bytes as a
  177. decimal integer value.
  178. The value provided here is passed to the -w option of mxsboot.
  179. config BR2_TARGET_UBOOT_FORMAT_NAND_OOB_SIZE
  180. int "NAND OOB size"
  181. default 64
  182. help
  183. The NAND OOB size of the targets NAND flash in bytes as a
  184. decimal integer value.
  185. The value provided here is passed to the -o option of mxsboot.
  186. config BR2_TARGET_UBOOT_FORMAT_NAND_ERASE_SIZE
  187. int "NAND erase size"
  188. default 131072
  189. help
  190. The NAND eraseblock size of the targets NAND flash in bytes as
  191. a decimal integer value.
  192. The value provided here is passed to the -e option of mxsboot.
  193. endif
  194. config BR2_TARGET_UBOOT_FORMAT_CUSTOM
  195. bool "Custom (specify below)"
  196. help
  197. On some platforms, the standard U-Boot binary is not called
  198. u-boot.bin, but u-boot<something>.bin. If this is your case,
  199. you should select this option and specify the correct name
  200. in BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME.
  201. endchoice
  202. config BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME
  203. string "U-Boot binary format: custom name"
  204. depends on BR2_TARGET_UBOOT_FORMAT_CUSTOM
  205. help
  206. Specify the correct name of the output binary created by
  207. U-Boot, if it is not one of the default names. For example:
  208. u-boot_magic.bin
  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. This is the name of the SPL binary, 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. menuconfig BR2_TARGET_UBOOT_ENVIMAGE
  267. bool "Environment image"
  268. help
  269. Generate a valid binary environment image from a text file
  270. describing the key=value pairs of the environment.
  271. The environment image will be called uboot-env.bin.
  272. if BR2_TARGET_UBOOT_ENVIMAGE
  273. config BR2_TARGET_UBOOT_ENVIMAGE_SOURCE
  274. string "Source file for environment"
  275. help
  276. Text file describing the environment.
  277. config BR2_TARGET_UBOOT_ENVIMAGE_SIZE
  278. string "Size of environment"
  279. help
  280. Size of envronment, can be prefixed with 0x for hexadecimal
  281. values.
  282. config BR2_TARGET_UBOOT_ENVIMAGE_REDUNDANT
  283. bool "Environment has two copies"
  284. help
  285. Some platforms define in their U-Boot configuration that the
  286. U-Boot environment should be duplicated in two locations (for
  287. extra safety). Check your U-Boot configuration for the
  288. CONFIG_ENV_ADDR_REDUND and CONFIG_ENV_SIZE_REDUND settings to
  289. see if this is the case for your platform.
  290. If it is the case, then you should enable this option to
  291. ensure that the U-Boot environment image generated by
  292. Buildroot is compatible with the "redundant environment"
  293. mechanism of U-Boot.
  294. endif # BR2_TARGET_UBOOT_ENVIMAGE
  295. endif # BR2_TARGET_UBOOT