Config.in 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  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.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. 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.07" 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. choice
  111. prompt "U-Boot binary format"
  112. default BR2_TARGET_UBOOT_FORMAT_BIN
  113. config BR2_TARGET_UBOOT_FORMAT_AIS
  114. bool "u-boot.ais"
  115. help
  116. AIS (Application Image Script) is a format defined by TI.
  117. It is required to load code/data on OMAP-L1 processors.
  118. u-boot.ais contains U-Boot with the SPL support.
  119. config BR2_TARGET_UBOOT_FORMAT_BIN
  120. bool "u-boot.bin"
  121. config BR2_TARGET_UBOOT_FORMAT_DTB_IMG
  122. bool "u-boot-dtb.img"
  123. config BR2_TARGET_UBOOT_FORMAT_IMG
  124. bool "u-boot.img"
  125. config BR2_TARGET_UBOOT_FORMAT_IMX
  126. bool "u-boot.imx"
  127. config BR2_TARGET_UBOOT_FORMAT_NAND_BIN
  128. bool "u-boot-nand.bin"
  129. config BR2_TARGET_UBOOT_FORMAT_KWB
  130. depends on BR2_arm
  131. bool "u-boot.kwb (Marvell)"
  132. config BR2_TARGET_UBOOT_FORMAT_LDR
  133. depends on BR2_bfin
  134. bool "u-boot.ldr"
  135. config BR2_TARGET_UBOOT_FORMAT_ELF
  136. bool "u-boot.elf"
  137. config BR2_TARGET_UBOOT_FORMAT_SB
  138. depends on BR2_arm
  139. bool "u-boot.sb (Freescale i.MX28)"
  140. config BR2_TARGET_UBOOT_FORMAT_SD
  141. depends on BR2_arm
  142. bool "u-boot.sd (Freescale i.MX28)"
  143. help
  144. This is Freescale i.MX28 SB format, with a header for booting
  145. from an SD card.
  146. U-boot includes an mxsboot tool to generate this format,
  147. starting from 2011.12.
  148. See doc/README.mxs (or doc/README.mx28_common before 2013.07)
  149. config BR2_TARGET_UBOOT_FORMAT_NAND
  150. depends on BR2_arm
  151. bool "u-boot.nand (Freescale i.MX28)"
  152. help
  153. This is Freescale i.MX28 BootStream format (.sb), with a header
  154. for booting from a NAND flash.
  155. U-boot includes an mxsboot tool to generate this format,
  156. starting from 2011.12.
  157. There are two possibilities when preparing an image writable to
  158. NAND flash:
  159. 1) The NAND was not written at all yet or the BCB (Boot Control
  160. Blocks) is broken. In this case, the NAND image 'u-boot.nand'
  161. needs to written.
  162. 2) The NAND flash was already written with a good BCB. This
  163. applies after 'u-boot.nand' was correctly written. There is no
  164. need to write the BCB again. In this case, the bootloader can be
  165. upgraded by writing 'u-boot.sb'.
  166. To satisfy both cases, the 'u-boot.nand' image obtained from
  167. mxsboot as well as the U-Boot make target 'u-boot.sb' are copied
  168. to the binaries directory.
  169. See doc/README.mxs (or doc/README.mx28_common before 2013.07)
  170. if BR2_TARGET_UBOOT_FORMAT_NAND
  171. config BR2_TARGET_UBOOT_FORMAT_NAND_PAGE_SIZE
  172. int "NAND page size"
  173. default 2048
  174. help
  175. The NAND page size of the targets NAND flash in bytes as a
  176. decimal integer value.
  177. The value provided here is passed to the -w option of mxsboot.
  178. config BR2_TARGET_UBOOT_FORMAT_NAND_OOB_SIZE
  179. int "NAND OOB size"
  180. default 64
  181. help
  182. The NAND OOB size of the targets NAND flash in bytes as a
  183. decimal integer value.
  184. The value provided here is passed to the -o option of mxsboot.
  185. config BR2_TARGET_UBOOT_FORMAT_NAND_ERASE_SIZE
  186. int "NAND erase size"
  187. default 131072
  188. help
  189. The NAND eraseblock size of the targets NAND flash in bytes as
  190. a decimal integer value.
  191. The value provided here is passed to the -e option of mxsboot.
  192. endif
  193. config BR2_TARGET_UBOOT_FORMAT_CUSTOM
  194. bool "Custom (specify below)"
  195. help
  196. On some platforms, the standard U-Boot binary is not called
  197. u-boot.bin, but u-boot<something>.bin. If this is your case,
  198. you should select this option and specify the correct name
  199. in BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME.
  200. endchoice
  201. config BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME
  202. string "U-Boot binary format: custom name"
  203. depends on BR2_TARGET_UBOOT_FORMAT_CUSTOM
  204. help
  205. Specify the correct name of the output binary created by
  206. U-Boot, if it is not one of the default names. For example:
  207. u-boot_magic.bin
  208. config BR2_TARGET_UBOOT_OMAP_IFT
  209. depends on BR2_TARGET_UBOOT_FORMAT_BIN
  210. depends on BR2_arm || BR2_armeb
  211. select BR2_PACKAGE_HOST_OMAP_U_BOOT_UTILS
  212. bool "produce a .ift signed image (OMAP)"
  213. help
  214. Use gpsign to produce an image of u-boot.bin signed with
  215. a Configuration Header for booting on OMAP processors.
  216. This allows U-Boot to boot without the need for an
  217. intermediate bootloader (e.g. x-loader) if it is written
  218. on the first sector of the boot medium.
  219. This only works for some media, such as NAND. Check your
  220. chip documentation for details. You might also want to
  221. read the documentation of gpsign, the tool that generates
  222. the .ift image, at:
  223. https://github.com/nmenon/omap-u-boot-utils/blob/master/README
  224. if BR2_TARGET_UBOOT_OMAP_IFT
  225. config BR2_TARGET_UBOOT_OMAP_IFT_CONFIG
  226. string "gpsign Configuration Header config file"
  227. help
  228. The Configuration Header (CH) config file defines the
  229. desired content of the CH for the signed image.
  230. It usually contains external RAM settings and
  231. possibly other external devices initialization.
  232. The omap-u-boot-utils software contains example
  233. configuration files for some boards:
  234. https://github.com/nmenon/omap-u-boot-utils/tree/master/configs
  235. endif
  236. config BR2_TARGET_UBOOT_SPL
  237. bool "Install U-Boot SPL binary image"
  238. depends on !BR2_TARGET_XLOADER
  239. help
  240. Install the U-Boot SPL binary image to the images
  241. directory.
  242. SPL is a first stage bootloader loaded into internal
  243. memory in charge of enabling and configuring the
  244. external memory (DDR), and load the u-boot program
  245. into DDR.
  246. config BR2_TARGET_UBOOT_SPL_NAME
  247. string "U-Boot SPL binary image name"
  248. default "spl/u-boot-spl.bin"
  249. depends on BR2_TARGET_UBOOT_SPL
  250. help
  251. A space-separated list of SPL binaries, generated during
  252. u-boot build. For most platform it is spl/u-boot-spl.bin
  253. but not always. It is MLO on OMAP for example.
  254. config BR2_TARGET_UBOOT_ZYNQ_IMAGE
  255. bool "Generate image for Xilinx Zynq"
  256. depends on BR2_arm
  257. depends on BR2_TARGET_UBOOT_SPL
  258. depends on BR2_TARGET_UBOOT_FORMAT_DTB_IMG
  259. help
  260. Generate the BOOT.BIN file from U-Boot's SPL. The image
  261. boots the Xilinx Zynq chip without any FPGA bitstream.
  262. A bitstream can be loaded by the U-Boot. The SPL searchs
  263. for u-boot-dtb.img file so this U-Boot format is required
  264. to be set.
  265. config BR2_TARGET_UBOOT_ALTERA_SOCFPGA_IMAGE_CRC
  266. bool "CRC SPL image for Altera SoC FPGA"
  267. depends on BR2_arm
  268. depends on BR2_TARGET_UBOOT_SPL
  269. help
  270. Generate SPL image fixed by the mkpimage tool to enable
  271. booting on the Altera SoC FPGA based platforms.
  272. menuconfig BR2_TARGET_UBOOT_ENVIMAGE
  273. bool "Environment image"
  274. help
  275. Generate a valid binary environment image from a text file
  276. describing the key=value pairs of the environment.
  277. The environment image will be called uboot-env.bin.
  278. if BR2_TARGET_UBOOT_ENVIMAGE
  279. config BR2_TARGET_UBOOT_ENVIMAGE_SOURCE
  280. string "Source files for environment"
  281. help
  282. Text files describing the environment. Files should have
  283. lines of the form var=value, one per line. Blank lines and
  284. lines starting with a # are ignored.
  285. Multiple source files are concatenated in the order listed.
  286. config BR2_TARGET_UBOOT_ENVIMAGE_SIZE
  287. string "Size of environment"
  288. help
  289. Size of envronment, can be prefixed with 0x for hexadecimal
  290. values.
  291. config BR2_TARGET_UBOOT_ENVIMAGE_REDUNDANT
  292. bool "Environment has two copies"
  293. help
  294. Some platforms define in their U-Boot configuration that the
  295. U-Boot environment should be duplicated in two locations (for
  296. extra safety). Check your U-Boot configuration for the
  297. CONFIG_ENV_ADDR_REDUND and CONFIG_ENV_SIZE_REDUND settings to
  298. see if this is the case for your platform.
  299. If it is the case, then you should enable this option to
  300. ensure that the U-Boot environment image generated by
  301. Buildroot is compatible with the "redundant environment"
  302. mechanism of U-Boot.
  303. endif # BR2_TARGET_UBOOT_ENVIMAGE
  304. endif # BR2_TARGET_UBOOT