Config.in 11 KB

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