Config.in 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463
  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
  13. 2015.04), 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
  18. or 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
  26. naming. See boards.cfg in U-Boot source code for the list of
  27. available 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 "2018.03"
  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
  65. Git/Mercurial/Subversion E.G. a sha id, a tag, branch, ..
  66. endif
  67. config BR2_TARGET_UBOOT_VERSION
  68. string
  69. default "2018.03" 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. default BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR if BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR != "" # legacy
  78. help
  79. A space-separated list of patches to apply to U-Boot.
  80. Each patch can be described as an URL, a local file path,
  81. or a directory. In the case of a directory, all files
  82. matching *.patch in the directory will be applied.
  83. Most users may leave this empty
  84. if BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
  85. choice
  86. prompt "U-Boot configuration"
  87. default BR2_TARGET_UBOOT_USE_DEFCONFIG
  88. config BR2_TARGET_UBOOT_USE_DEFCONFIG
  89. bool "Using an in-tree board defconfig file"
  90. config BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG
  91. bool "Using a custom board (def)config file"
  92. endchoice
  93. config BR2_TARGET_UBOOT_BOARD_DEFCONFIG
  94. string "Board defconfig"
  95. depends on BR2_TARGET_UBOOT_USE_DEFCONFIG
  96. help
  97. Name of the board for which U-Boot should be built, without
  98. the _defconfig suffix.
  99. config BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE
  100. string "Configuration file path"
  101. depends on BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG
  102. help
  103. Path to the U-Boot configuration file.
  104. config BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES
  105. string "Additional configuration fragment files"
  106. help
  107. A space-separated list of configuration fragment files,
  108. that will be merged to the main U-Boot configuration file.
  109. endif
  110. config BR2_TARGET_UBOOT_NEEDS_DTC
  111. bool "U-Boot needs dtc"
  112. select BR2_PACKAGE_HOST_DTC
  113. help
  114. Select this option if your U-Boot board configuration
  115. requires the Device Tree compiler to be available.
  116. config BR2_TARGET_UBOOT_NEEDS_PYLIBFDT
  117. bool "U-Boot needs pylibfdt"
  118. help
  119. Select this option if your U-Boot board configuration
  120. requires the Python libfdt library to be available.
  121. config BR2_TARGET_UBOOT_NEEDS_OPENSSL
  122. bool "U-Boot needs OpenSSL"
  123. help
  124. Select this option if your U-Boot board configuration
  125. requires OpenSSL to be available on the host. This is
  126. typically the case when the board configuration has
  127. CONFIG_FIT_SIGNATURE enabled.
  128. config BR2_TARGET_UBOOT_NEEDS_ATF_BL31
  129. bool "U-Boot needs ATF BL31"
  130. depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE
  131. depends on !BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33
  132. select BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31
  133. help
  134. Some specific platforms (such as Allwinner A64/H5)
  135. encapsulate the BL31 part of ATF inside U-Boot. This option
  136. makes sure ATF gets built prior to U-Boot, and that the BL31
  137. variable pointing to ATF's BL31 binary, is passed during the
  138. Buildroot build.
  139. menu "U-Boot binary format"
  140. config BR2_TARGET_UBOOT_FORMAT_AIS
  141. bool "u-boot.ais"
  142. help
  143. AIS (Application Image Script) is a format defined by TI.
  144. It is required to load code/data on OMAP-L1 processors.
  145. u-boot.ais contains U-Boot with the SPL support.
  146. config BR2_TARGET_UBOOT_FORMAT_BIN
  147. bool "u-boot.bin"
  148. default y
  149. config BR2_TARGET_UBOOT_FORMAT_DTB_BIN
  150. bool "u-boot-dtb.bin"
  151. config BR2_TARGET_UBOOT_FORMAT_DTB_IMG
  152. bool "u-boot-dtb.img"
  153. config BR2_TARGET_UBOOT_FORMAT_IMG
  154. bool "u-boot.img"
  155. config BR2_TARGET_UBOOT_FORMAT_IMX
  156. bool "u-boot.imx"
  157. config BR2_TARGET_UBOOT_FORMAT_NAND_BIN
  158. bool "u-boot-nand.bin"
  159. config BR2_TARGET_UBOOT_FORMAT_KWB
  160. bool "u-boot.kwb (Marvell)"
  161. depends on BR2_arm
  162. config BR2_TARGET_UBOOT_FORMAT_ELF
  163. bool "u-boot.elf"
  164. config BR2_TARGET_UBOOT_FORMAT_SB
  165. bool "u-boot.sb (Freescale i.MX28)"
  166. depends on BR2_arm
  167. config BR2_TARGET_UBOOT_FORMAT_SD
  168. bool "u-boot.sd (Freescale i.MX28)"
  169. depends on BR2_arm
  170. help
  171. This is Freescale i.MX28 SB format, with a header for booting
  172. from an SD card.
  173. U-boot includes an mxsboot tool to generate this format,
  174. starting from 2011.12.
  175. See doc/README.mxs (or doc/README.mx28_common before 2013.07)
  176. config BR2_TARGET_UBOOT_FORMAT_NAND
  177. bool "u-boot.nand (Freescale i.MX28)"
  178. depends on BR2_arm
  179. help
  180. This is Freescale i.MX28 BootStream format (.sb), with a
  181. header for booting from a NAND flash.
  182. U-boot includes an mxsboot tool to generate this format,
  183. starting from 2011.12.
  184. There are two possibilities when preparing an image writable
  185. to NAND flash:
  186. 1) The NAND was not written at all yet or the BCB (Boot
  187. Control Blocks) is broken. In this case, the NAND image
  188. 'u-boot.nand' needs to written.
  189. 2) The NAND flash was already written with a good BCB. This
  190. applies after 'u-boot.nand' was correctly written. There is no
  191. need to write the BCB again. In this case, the bootloader can
  192. be upgraded by writing 'u-boot.sb'.
  193. To satisfy both cases, the 'u-boot.nand' image obtained from
  194. mxsboot as well as the U-Boot make target 'u-boot.sb' are
  195. copied to the binaries directory.
  196. See doc/README.mxs (or doc/README.mx28_common before 2013.07)
  197. if BR2_TARGET_UBOOT_FORMAT_NAND
  198. config BR2_TARGET_UBOOT_FORMAT_NAND_PAGE_SIZE
  199. int "NAND page size"
  200. default 2048
  201. help
  202. The NAND page size of the targets NAND flash in bytes as a
  203. decimal integer value.
  204. The value provided here is passed to the -w option of mxsboot.
  205. config BR2_TARGET_UBOOT_FORMAT_NAND_OOB_SIZE
  206. int "NAND OOB size"
  207. default 64
  208. help
  209. The NAND OOB size of the targets NAND flash in bytes as a
  210. decimal integer value.
  211. The value provided here is passed to the -o option of mxsboot.
  212. config BR2_TARGET_UBOOT_FORMAT_NAND_ERASE_SIZE
  213. int "NAND erase size"
  214. default 131072
  215. help
  216. The NAND eraseblock size of the targets NAND flash in bytes as
  217. a decimal integer value.
  218. The value provided here is passed to the -e option of mxsboot.
  219. endif
  220. config BR2_TARGET_UBOOT_FORMAT_CUSTOM
  221. bool "Custom (specify below)"
  222. help
  223. On some platforms, the standard U-Boot binary is not called
  224. u-boot.bin, but u-boot<something>.bin. If this is your case,
  225. you should select this option and specify the correct name(s)
  226. in BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME.
  227. config BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME
  228. string "U-Boot binary format: custom names"
  229. depends on BR2_TARGET_UBOOT_FORMAT_CUSTOM
  230. help
  231. In case the U-Boot binary for the target platform is not among
  232. the default names, one or more custom names can be listed
  233. here.
  234. Use space to separate multiple names.
  235. Example:
  236. u-boot_magic.bin
  237. endmenu
  238. config BR2_TARGET_UBOOT_OMAP_IFT
  239. bool "produce a .ift signed image (OMAP)"
  240. depends on BR2_TARGET_UBOOT_FORMAT_BIN
  241. depends on BR2_arm || BR2_armeb
  242. select BR2_PACKAGE_HOST_OMAP_U_BOOT_UTILS
  243. help
  244. Use gpsign to produce an image of u-boot.bin signed with
  245. a Configuration Header for booting on OMAP processors.
  246. This allows U-Boot to boot without the need for an
  247. intermediate bootloader (e.g. x-loader) if it is written
  248. on the first sector of the boot medium.
  249. This only works for some media, such as NAND. Check your
  250. chip documentation for details. You might also want to
  251. read the documentation of gpsign, the tool that generates
  252. the .ift image, at:
  253. https://github.com/nmenon/omap-u-boot-utils/blob/master/README
  254. if BR2_TARGET_UBOOT_OMAP_IFT
  255. config BR2_TARGET_UBOOT_OMAP_IFT_CONFIG
  256. string "gpsign Configuration Header config file"
  257. help
  258. The Configuration Header (CH) config file defines the
  259. desired content of the CH for the signed image.
  260. It usually contains external RAM settings and
  261. possibly other external devices initialization.
  262. The omap-u-boot-utils software contains example
  263. configuration files for some boards:
  264. https://github.com/nmenon/omap-u-boot-utils/tree/master/configs
  265. endif
  266. config BR2_TARGET_UBOOT_SPL
  267. bool "Install U-Boot SPL binary image"
  268. depends on !BR2_TARGET_XLOADER
  269. help
  270. Install the U-Boot SPL binary image to the images
  271. directory.
  272. SPL is a first stage bootloader loaded into internal
  273. memory in charge of enabling and configuring the
  274. external memory (DDR), and load the u-boot program
  275. into DDR.
  276. config BR2_TARGET_UBOOT_SPL_NAME
  277. string "U-Boot SPL/TPL binary image name(s)"
  278. default "spl/u-boot-spl.bin"
  279. depends on BR2_TARGET_UBOOT_SPL
  280. help
  281. A space-separated list of SPL/TPL binaries, generated during
  282. u-boot build. For most platform SPL name is spl/u-boot-spl.bin
  283. and TPL name is tpl/u-boot-tpl.bin but not always. SPL name is
  284. MLO on OMAP and SPL on i.MX6 for example.
  285. config BR2_TARGET_UBOOT_ZYNQ_IMAGE
  286. bool "Generate image for Xilinx Zynq"
  287. depends on BR2_arm
  288. depends on BR2_TARGET_UBOOT_SPL
  289. depends on BR2_TARGET_UBOOT_FORMAT_DTB_IMG
  290. help
  291. Generate the BOOT.BIN file from U-Boot's SPL. The image
  292. boots the Xilinx Zynq chip without any FPGA bitstream.
  293. A bitstream can be loaded by the U-Boot. The SPL searchs
  294. for u-boot-dtb.img file so this U-Boot format is required
  295. to be set.
  296. config BR2_TARGET_UBOOT_ALTERA_SOCFPGA_IMAGE_CRC
  297. bool "CRC image for Altera SoC FPGA (mkpimage)"
  298. depends on BR2_arm
  299. depends on BR2_TARGET_UBOOT_SPL || BR2_TARGET_UBOOT_FORMAT_DTB_BIN
  300. help
  301. Pass the U-Boot image through the mkpimage tool to enable
  302. booting on the Altera SoC FPGA based platforms.
  303. On some platforms, it's the SPL that needs to be passed
  304. through mkpimage. On some other platforms there is no SPL
  305. because the internal SRAM is big enough to store the full
  306. U-Boot. In this case, it's directly the full U-Boot image
  307. that is passed through mkpimage.
  308. If BR2_TARGET_UBOOT_SPL is enabled then
  309. BR2_TARGET_UBOOT_SPL_NAME is converted by mkpimage using
  310. header version 0.
  311. Otherwise the full u-boot-dtb.bin is converted using
  312. mkpimage header version 1.
  313. In either case the resulting file will be given a .crc
  314. extension.
  315. menuconfig BR2_TARGET_UBOOT_ENVIMAGE
  316. bool "Environment image"
  317. help
  318. Generate a valid binary environment image from a text file
  319. describing the key=value pairs of the environment.
  320. The environment image will be called uboot-env.bin.
  321. if BR2_TARGET_UBOOT_ENVIMAGE
  322. config BR2_TARGET_UBOOT_ENVIMAGE_SOURCE
  323. string "Source files for environment"
  324. help
  325. Text files describing the environment. Files should have
  326. lines of the form var=value, one per line. Blank lines and
  327. lines starting with a # are ignored.
  328. Multiple source files are concatenated in the order listed.
  329. config BR2_TARGET_UBOOT_ENVIMAGE_SIZE
  330. string "Size of environment"
  331. help
  332. Size of envronment, can be prefixed with 0x for hexadecimal
  333. values.
  334. config BR2_TARGET_UBOOT_ENVIMAGE_REDUNDANT
  335. bool "Environment has two copies"
  336. help
  337. Some platforms define in their U-Boot configuration that the
  338. U-Boot environment should be duplicated in two locations (for
  339. extra safety). Check your U-Boot configuration for the
  340. CONFIG_ENV_ADDR_REDUND and CONFIG_ENV_SIZE_REDUND settings to
  341. see if this is the case for your platform.
  342. If it is the case, then you should enable this option to
  343. ensure that the U-Boot environment image generated by
  344. Buildroot is compatible with the "redundant environment"
  345. mechanism of U-Boot.
  346. endif # BR2_TARGET_UBOOT_ENVIMAGE
  347. config BR2_TARGET_UBOOT_BOOT_SCRIPT
  348. bool "Generate a U-Boot boot script"
  349. help
  350. Generate a U-Boot boot script, given a file listing U-Boot
  351. commands to be executed at boot time. The generated boot
  352. script will be called 'boot.scr'.
  353. if BR2_TARGET_UBOOT_BOOT_SCRIPT
  354. config BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE
  355. string "U-Boot boot script source"
  356. help
  357. Source file to generate the U-Boot boot script.
  358. endif
  359. if BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
  360. config BR2_TARGET_UBOOT_CUSTOM_DTS_PATH
  361. string "Device Tree Source file paths"
  362. help
  363. Space-separated list of paths to device tree source files
  364. that will be copied to arch/ARCH/dts/ before starting the
  365. build.
  366. To use this device tree source file, the U-Boot configuration
  367. file must refer to it.
  368. endif
  369. endif # BR2_TARGET_UBOOT