Config.in 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  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_KCONFIG if BR2_TARGET_UBOOT_LATEST_VERSION
  9. default BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
  10. config BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
  11. bool "Kconfig"
  12. help
  13. Select this option if you use a recent U-Boot version (2015.04
  14. or newer), so that we use the Kconfig build system.
  15. config BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
  16. bool "Legacy"
  17. help
  18. Select this option if you use an old U-Boot (older than
  19. 2015.04), so that we use the old build system.
  20. endchoice
  21. if BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY
  22. config BR2_TARGET_UBOOT_BOARDNAME
  23. string "U-Boot board name"
  24. help
  25. One of U-Boot supported boards to be built.
  26. This will be suffixed with _config to meet U-Boot standard
  27. naming. See boards.cfg in U-Boot source code for the list of
  28. available configurations.
  29. endif
  30. choice
  31. prompt "U-Boot Version"
  32. help
  33. Select the specific U-Boot version you want to use
  34. config BR2_TARGET_UBOOT_LATEST_VERSION
  35. bool "2018.09"
  36. config BR2_TARGET_UBOOT_CUSTOM_VERSION
  37. bool "Custom version"
  38. help
  39. This option allows to use a specific official versions
  40. config BR2_TARGET_UBOOT_CUSTOM_TARBALL
  41. bool "Custom tarball"
  42. config BR2_TARGET_UBOOT_CUSTOM_GIT
  43. bool "Custom Git repository"
  44. config BR2_TARGET_UBOOT_CUSTOM_HG
  45. bool "Custom Mercurial repository"
  46. config BR2_TARGET_UBOOT_CUSTOM_SVN
  47. bool "Custom Subversion repository"
  48. endchoice
  49. config BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE
  50. string "U-Boot version"
  51. depends on BR2_TARGET_UBOOT_CUSTOM_VERSION
  52. config BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION
  53. string "URL of custom U-Boot tarball"
  54. depends on BR2_TARGET_UBOOT_CUSTOM_TARBALL
  55. if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG || BR2_TARGET_UBOOT_CUSTOM_SVN
  56. config BR2_TARGET_UBOOT_CUSTOM_REPO_URL
  57. string "URL of custom repository"
  58. default BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL \
  59. if BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL != "" # legacy
  60. config BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION
  61. string "Custom repository version"
  62. default BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION \
  63. if BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION != "" # legacy
  64. help
  65. Revision to use in the typical format used by
  66. Git/Mercurial/Subversion E.G. a sha id, a tag, branch, ..
  67. endif
  68. config BR2_TARGET_UBOOT_VERSION
  69. string
  70. default "2018.09" if BR2_TARGET_UBOOT_LATEST_VERSION
  71. default BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE \
  72. if BR2_TARGET_UBOOT_CUSTOM_VERSION
  73. default "custom" if BR2_TARGET_UBOOT_CUSTOM_TARBALL
  74. default BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION \
  75. if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG || BR2_TARGET_UBOOT_CUSTOM_SVN
  76. config BR2_TARGET_UBOOT_PATCH
  77. string "Custom U-Boot patches"
  78. default BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR if BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR != "" # legacy
  79. help
  80. A space-separated list of patches to apply to U-Boot.
  81. Each patch can be described as an URL, a local file path,
  82. or a directory. In the case of a directory, all files
  83. matching *.patch in the directory will be applied.
  84. Most users may leave this empty
  85. if BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
  86. choice
  87. prompt "U-Boot configuration"
  88. default BR2_TARGET_UBOOT_USE_DEFCONFIG
  89. config BR2_TARGET_UBOOT_USE_DEFCONFIG
  90. bool "Using an in-tree board defconfig file"
  91. config BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG
  92. bool "Using a custom board (def)config file"
  93. endchoice
  94. config BR2_TARGET_UBOOT_BOARD_DEFCONFIG
  95. string "Board defconfig"
  96. depends on BR2_TARGET_UBOOT_USE_DEFCONFIG
  97. help
  98. Name of the board for which U-Boot should be built, without
  99. the _defconfig suffix.
  100. config BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE
  101. string "Configuration file path"
  102. depends on BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG
  103. help
  104. Path to the U-Boot configuration file.
  105. config BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES
  106. string "Additional configuration fragment files"
  107. help
  108. A space-separated list of configuration fragment files,
  109. that will be merged to the main U-Boot configuration file.
  110. endif
  111. config BR2_TARGET_UBOOT_NEEDS_DTC
  112. bool "U-Boot needs dtc"
  113. select BR2_PACKAGE_HOST_DTC
  114. help
  115. Select this option if your U-Boot board configuration
  116. requires the Device Tree compiler to be available.
  117. config BR2_TARGET_UBOOT_NEEDS_PYLIBFDT
  118. bool "U-Boot needs pylibfdt"
  119. help
  120. Select this option if your U-Boot board configuration
  121. requires the Python libfdt library to be available.
  122. config BR2_TARGET_UBOOT_NEEDS_OPENSSL
  123. bool "U-Boot needs OpenSSL"
  124. help
  125. Select this option if your U-Boot board configuration
  126. requires OpenSSL to be available on the host. This is
  127. typically the case when the board configuration has
  128. CONFIG_FIT_SIGNATURE enabled.
  129. config BR2_TARGET_UBOOT_NEEDS_LZOP
  130. bool "U-Boot needs lzop"
  131. help
  132. Select this option if your U-Boot board configuration
  133. requires lzop to be available on the host. This is typically
  134. the case when the board configuration has CONFIG_SPL_LZO
  135. enabled.
  136. config BR2_TARGET_UBOOT_NEEDS_ATF_BL31
  137. bool "U-Boot needs ATF BL31"
  138. depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE
  139. depends on !BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33
  140. select BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31
  141. help
  142. Some specific platforms (such as Allwinner A64/H5)
  143. encapsulate the BL31 part of ATF inside U-Boot. This option
  144. makes sure ATF gets built prior to U-Boot, and that the BL31
  145. variable pointing to ATF's BL31 binary, is passed during the
  146. Buildroot build.
  147. choice
  148. prompt "U-Boot ATF BL31 format"
  149. default BR2_TARGET_UBOOT_NEEDS_ATF_BL31_BIN
  150. depends on BR2_TARGET_UBOOT_NEEDS_ATF_BL31
  151. config BR2_TARGET_UBOOT_NEEDS_ATF_BL31_BIN
  152. bool "bl31.bin"
  153. config BR2_TARGET_UBOOT_NEEDS_ATF_BL31_ELF
  154. bool "bl31.elf"
  155. endchoice
  156. menu "U-Boot binary format"
  157. config BR2_TARGET_UBOOT_FORMAT_AIS
  158. bool "u-boot.ais"
  159. help
  160. AIS (Application Image Script) is a format defined by TI.
  161. It is required to load code/data on OMAP-L1 processors.
  162. u-boot.ais contains U-Boot with the SPL support.
  163. config BR2_TARGET_UBOOT_FORMAT_BIN
  164. bool "u-boot.bin"
  165. default y
  166. config BR2_TARGET_UBOOT_FORMAT_DTB_BIN
  167. bool "u-boot-dtb.bin"
  168. config BR2_TARGET_UBOOT_FORMAT_DTB_IMG
  169. bool "u-boot-dtb.img"
  170. config BR2_TARGET_UBOOT_FORMAT_DTB_IMX
  171. bool "u-boot-dtb.imx"
  172. config BR2_TARGET_UBOOT_FORMAT_IMG
  173. bool "u-boot.img"
  174. config BR2_TARGET_UBOOT_FORMAT_IMX
  175. bool "u-boot.imx"
  176. config BR2_TARGET_UBOOT_FORMAT_NAND_BIN
  177. bool "u-boot-nand.bin"
  178. config BR2_TARGET_UBOOT_FORMAT_KWB
  179. bool "u-boot.kwb (Marvell)"
  180. depends on BR2_arm
  181. config BR2_TARGET_UBOOT_FORMAT_ELF
  182. bool "u-boot.elf"
  183. config BR2_TARGET_UBOOT_FORMAT_SB
  184. bool "u-boot.sb (Freescale i.MX28)"
  185. depends on BR2_arm
  186. config BR2_TARGET_UBOOT_FORMAT_SD
  187. bool "u-boot.sd (Freescale i.MX28)"
  188. depends on BR2_arm
  189. help
  190. This is Freescale i.MX28 SB format, with a header for booting
  191. from an SD card.
  192. U-boot includes an mxsboot tool to generate this format,
  193. starting from 2011.12.
  194. See doc/README.mxs (or doc/README.mx28_common before 2013.07)
  195. config BR2_TARGET_UBOOT_FORMAT_NAND
  196. bool "u-boot.nand (Freescale i.MX28)"
  197. depends on BR2_arm
  198. help
  199. This is Freescale i.MX28 BootStream format (.sb), with a
  200. header for booting from a NAND flash.
  201. U-boot includes an mxsboot tool to generate this format,
  202. starting from 2011.12.
  203. There are two possibilities when preparing an image writable
  204. to NAND flash:
  205. 1) The NAND was not written at all yet or the BCB (Boot
  206. Control Blocks) is broken. In this case, the NAND image
  207. 'u-boot.nand' needs to written.
  208. 2) The NAND flash was already written with a good BCB. This
  209. applies after 'u-boot.nand' was correctly written. There is no
  210. need to write the BCB again. In this case, the bootloader can
  211. be upgraded by writing 'u-boot.sb'.
  212. To satisfy both cases, the 'u-boot.nand' image obtained from
  213. mxsboot as well as the U-Boot make target 'u-boot.sb' are
  214. copied to the binaries directory.
  215. See doc/README.mxs (or doc/README.mx28_common before 2013.07)
  216. if BR2_TARGET_UBOOT_FORMAT_NAND
  217. config BR2_TARGET_UBOOT_FORMAT_NAND_PAGE_SIZE
  218. int "NAND page size"
  219. default 2048
  220. help
  221. The NAND page size of the targets NAND flash in bytes as a
  222. decimal integer value.
  223. The value provided here is passed to the -w option of mxsboot.
  224. config BR2_TARGET_UBOOT_FORMAT_NAND_OOB_SIZE
  225. int "NAND OOB size"
  226. default 64
  227. help
  228. The NAND OOB size of the targets NAND flash in bytes as a
  229. decimal integer value.
  230. The value provided here is passed to the -o option of mxsboot.
  231. config BR2_TARGET_UBOOT_FORMAT_NAND_ERASE_SIZE
  232. int "NAND erase size"
  233. default 131072
  234. help
  235. The NAND eraseblock size of the targets NAND flash in bytes as
  236. a decimal integer value.
  237. The value provided here is passed to the -e option of mxsboot.
  238. endif
  239. config BR2_TARGET_UBOOT_FORMAT_CUSTOM
  240. bool "Custom (specify below)"
  241. help
  242. On some platforms, the standard U-Boot binary is not called
  243. u-boot.bin, but u-boot<something>.bin. If this is your case,
  244. you should select this option and specify the correct name(s)
  245. in BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME.
  246. config BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME
  247. string "U-Boot binary format: custom names"
  248. depends on BR2_TARGET_UBOOT_FORMAT_CUSTOM
  249. help
  250. In case the U-Boot binary for the target platform is not among
  251. the default names, one or more custom names can be listed
  252. here.
  253. Use space to separate multiple names.
  254. Example:
  255. u-boot_magic.bin
  256. endmenu
  257. config BR2_TARGET_UBOOT_OMAP_IFT
  258. bool "produce a .ift signed image (OMAP)"
  259. depends on BR2_TARGET_UBOOT_FORMAT_BIN
  260. depends on BR2_arm || BR2_armeb
  261. select BR2_PACKAGE_HOST_OMAP_U_BOOT_UTILS
  262. help
  263. Use gpsign to produce an image of u-boot.bin signed with
  264. a Configuration Header for booting on OMAP processors.
  265. This allows U-Boot to boot without the need for an
  266. intermediate bootloader (e.g. x-loader) if it is written
  267. on the first sector of the boot medium.
  268. This only works for some media, such as NAND. Check your
  269. chip documentation for details. You might also want to
  270. read the documentation of gpsign, the tool that generates
  271. the .ift image, at:
  272. https://github.com/nmenon/omap-u-boot-utils/blob/master/README
  273. if BR2_TARGET_UBOOT_OMAP_IFT
  274. config BR2_TARGET_UBOOT_OMAP_IFT_CONFIG
  275. string "gpsign Configuration Header config file"
  276. help
  277. The Configuration Header (CH) config file defines the
  278. desired content of the CH for the signed image.
  279. It usually contains external RAM settings and
  280. possibly other external devices initialization.
  281. The omap-u-boot-utils software contains example
  282. configuration files for some boards:
  283. https://github.com/nmenon/omap-u-boot-utils/tree/master/configs
  284. endif
  285. config BR2_TARGET_UBOOT_SPL
  286. bool "Install U-Boot SPL binary image"
  287. depends on !BR2_TARGET_XLOADER
  288. help
  289. Install the U-Boot SPL binary image to the images
  290. directory.
  291. SPL is a first stage bootloader loaded into internal
  292. memory in charge of enabling and configuring the
  293. external memory (DDR), and load the u-boot program
  294. into DDR.
  295. config BR2_TARGET_UBOOT_SPL_NAME
  296. string "U-Boot SPL/TPL binary image name(s)"
  297. default "spl/u-boot-spl.bin"
  298. depends on BR2_TARGET_UBOOT_SPL
  299. help
  300. A space-separated list of SPL/TPL binaries, generated during
  301. u-boot build. For most platform SPL name is spl/u-boot-spl.bin
  302. and TPL name is tpl/u-boot-tpl.bin but not always. SPL name is
  303. MLO on OMAP and SPL on i.MX6 for example.
  304. config BR2_TARGET_UBOOT_ZYNQ_IMAGE
  305. bool "Generate image for Xilinx Zynq"
  306. depends on BR2_arm
  307. depends on BR2_TARGET_UBOOT_SPL
  308. depends on BR2_TARGET_UBOOT_FORMAT_DTB_IMG
  309. help
  310. Generate the BOOT.BIN file from U-Boot's SPL. The image
  311. boots the Xilinx Zynq chip without any FPGA bitstream.
  312. A bitstream can be loaded by the U-Boot. The SPL searchs
  313. for u-boot-dtb.img file so this U-Boot format is required
  314. to be set.
  315. config BR2_TARGET_UBOOT_ZYNQMP
  316. bool "Boot on the Xilinx ZynqMP SoCs"
  317. depends on BR2_aarch64
  318. help
  319. Enable options specific to the Xilinx ZynqMP family of SoCs.
  320. if BR2_TARGET_UBOOT_ZYNQMP
  321. config BR2_TARGET_UBOOT_ZYNQMP_PMUFW
  322. string "PMU firmware location"
  323. depends on BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
  324. help
  325. Location of a PMU firmware binary.
  326. If not empty, instructs the U-Boot build process to generate
  327. a boot.bin (to be loaded by the ZynqMP boot ROM) containing
  328. both the U-Boot SPL and the PMU firmware in the
  329. Xilinx-specific boot format.
  330. The value can be an absolute or relative path, and will be
  331. used directly from where it is located, or an URI
  332. (e.g. http://...), and it will be downloaded and used from
  333. the download directory.
  334. If empty, the generated boot.bin will not contain a PMU
  335. firmware.
  336. This feature requires U-Boot >= 2018.07.
  337. config BR2_TARGET_UBOOT_ZYNQMP_PSU_INIT_FILE
  338. string "Custom psu_init_gpl file"
  339. depends on BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
  340. help
  341. On ZynqMP the booloader is responsible for some basic
  342. initializations, such as enabling peripherals and
  343. configuring pinmuxes. The psu_init_gpl.c file (and,
  344. optionally, psu_init_gpl.h) contains the code for such
  345. initializations.
  346. Although U-Boot contains psu_init_gpl.c files for some
  347. boards, each of them describes only one specific
  348. configuration. Users of a different board, or needing a
  349. different configuration, can generate custom files using the
  350. Xilinx development tools.
  351. Set this variable to the path to your psu_init_gpl.c file
  352. (e.g. "board/myboard/psu_init_gpl.c"). psu_init_gpl.h, if
  353. needed, should be in the same directory. U-Boot will build
  354. and link the user-provided file instead of the built-in one.
  355. Leave empty to use the files provided by U-Boot.
  356. This feature requires commit
  357. 6da4f67ad09cd8b311d77b2b04e557b7ef65b56c from upstream
  358. U-Boot, available from versions after 2018.07.
  359. endif
  360. config BR2_TARGET_UBOOT_ALTERA_SOCFPGA_IMAGE_CRC
  361. bool "CRC image for Altera SoC FPGA (mkpimage)"
  362. depends on BR2_arm
  363. depends on BR2_TARGET_UBOOT_SPL || BR2_TARGET_UBOOT_FORMAT_DTB_BIN
  364. help
  365. Pass the U-Boot image through the mkpimage tool to enable
  366. booting on the Altera SoC FPGA based platforms.
  367. On some platforms, it's the SPL that needs to be passed
  368. through mkpimage. On some other platforms there is no SPL
  369. because the internal SRAM is big enough to store the full
  370. U-Boot. In this case, it's directly the full U-Boot image
  371. that is passed through mkpimage.
  372. If BR2_TARGET_UBOOT_SPL is enabled then
  373. BR2_TARGET_UBOOT_SPL_NAME is converted by mkpimage using
  374. header version 0.
  375. Otherwise the full u-boot-dtb.bin is converted using
  376. mkpimage header version 1.
  377. In either case the resulting file will be given a .crc
  378. extension.
  379. menuconfig BR2_TARGET_UBOOT_ENVIMAGE
  380. bool "Environment image"
  381. help
  382. Generate a valid binary environment image from a text file
  383. describing the key=value pairs of the environment.
  384. The environment image will be called uboot-env.bin.
  385. if BR2_TARGET_UBOOT_ENVIMAGE
  386. config BR2_TARGET_UBOOT_ENVIMAGE_SOURCE
  387. string "Source files for environment"
  388. help
  389. Text files describing the environment. Files should have
  390. lines of the form var=value, one per line. Blank lines and
  391. lines starting with a # are ignored.
  392. Multiple source files are concatenated in the order listed.
  393. config BR2_TARGET_UBOOT_ENVIMAGE_SIZE
  394. string "Size of environment"
  395. help
  396. Size of envronment, can be prefixed with 0x for hexadecimal
  397. values.
  398. config BR2_TARGET_UBOOT_ENVIMAGE_REDUNDANT
  399. bool "Environment has two copies"
  400. help
  401. Some platforms define in their U-Boot configuration that the
  402. U-Boot environment should be duplicated in two locations (for
  403. extra safety). Check your U-Boot configuration for the
  404. CONFIG_ENV_ADDR_REDUND and CONFIG_ENV_SIZE_REDUND settings to
  405. see if this is the case for your platform.
  406. If it is the case, then you should enable this option to
  407. ensure that the U-Boot environment image generated by
  408. Buildroot is compatible with the "redundant environment"
  409. mechanism of U-Boot.
  410. endif # BR2_TARGET_UBOOT_ENVIMAGE
  411. config BR2_TARGET_UBOOT_BOOT_SCRIPT
  412. bool "Generate a U-Boot boot script"
  413. help
  414. Generate a U-Boot boot script, given a file listing U-Boot
  415. commands to be executed at boot time. The generated boot
  416. script will be called 'boot.scr'.
  417. if BR2_TARGET_UBOOT_BOOT_SCRIPT
  418. config BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE
  419. string "U-Boot boot script source"
  420. help
  421. Source file to generate the U-Boot boot script.
  422. endif
  423. if BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG
  424. config BR2_TARGET_UBOOT_CUSTOM_DTS_PATH
  425. string "Device Tree Source file paths"
  426. help
  427. Space-separated list of paths to device tree source files
  428. that will be copied to arch/ARCH/dts/ before starting the
  429. build.
  430. To use this device tree source file, the U-Boot configuration
  431. file must refer to it.
  432. endif
  433. endif # BR2_TARGET_UBOOT