## SECTION=bootloader menuconfig U_BOOT select BOOTLOADER prompt "U-Boot " bool if U_BOOT config U_BOOT_VERSION string default "2019.01" prompt "U-Boot version" help Enter the U-Boot version you want to build. Usually something like "2019.01". config U_BOOT_MD5 string prompt "U-Boot source md5" choice prompt "config system" default U_BOOT_CONFIGSYSTEM_LEGACY config U_BOOT_CONFIGSYSTEM_KCONFIG prompt "Kconfig" bool help U-Boot from version 2014.10 uses Kconfig for configuring a target. Use this if you want to configure U-Boot inside the BSP, e.g. with menuconfig. NOTE: if you just want to use a defconfig, you can still use the legacy config system by using the name of a defconfig file from the "configs" folder as config target. config U_BOOT_CONFIGSYSTEM_LEGACY prompt "legacy" bool help Select this if you use an old U-Boot prior 2014.10 or want to use a defconfig as config target. endchoice if U_BOOT_CONFIGSYSTEM_KCONFIG config U_BOOT_CONFIGFILE_KCONFIG prompt "config file" string default "u-boot.config" help This entry specifies the .config file used to compile U-Boot. endif if U_BOOT_CONFIGSYSTEM_LEGACY config U_BOOT_CONFIG prompt "U-Boot config target" string help The U-Boot make config target. Usually something like "yourbox_config". Before U-Boot 2014.10 that was something from the file "boards.cfg". With version 2014.10 U-Boot switched to Kconfig based build and configuration, and from there you could use some defconfig name as config target, e.g. "yourbox_defconfig", where that name is a file from the folder "configs". endif config U_BOOT_CUSTOM_MAKE_OPTS prompt "Custom make options" string help List of custom make options passed at build time. Can be used for example to pass a DEVICE_TREE= value. choice prompt "Generate environment image" default U_BOOT_ENV_IMAGE_NONE help U-Boot from version 2018.03 supports out-of-tree environment image generation. config U_BOOT_ENV_IMAGE_NONE prompt "none" bool help Don't generate an U-Boot environment image. config U_BOOT_ENV_IMAGE_DEFAULT prompt "default" bool help Use U-Boot's mkenvimage to compile a default U-Boot environment image for use in e.g. device manufacturing or development. config U_BOOT_ENV_IMAGE_CUSTOM prompt "custom" bool help Use U-Boot's mkenvimage to compile a custom U-Boot environment image based on the text file in U_BOOT_ENV_IMAGE_CUSTOM_SOURCE for use in e.g. device manufacturing or development. endchoice config U_BOOT_ENV_IMAGE_CUSTOM_SOURCE prompt "Custom environment source" string default "custom_env.config" depends on U_BOOT_ENV_IMAGE_CUSTOM help Text file in platform config directory describing the custom environment. The file should have lines in the form var=value, one per line. Blank lines and lines starting with a # are ignored. if !U_BOOT_ENV_IMAGE_NONE config U_BOOT_ENV_IMAGE_SIZE prompt "Environment image size" hex default 0x2000 help Enter the U-Boot environment size in hexadecimal for generation of image. A wrong size will typically cause crc error when used. Must match size defined in target config and "/etc/fw_env.config". config U_BOOT_ENV_IMAGE_REDUNDANT prompt "Environment image with redundant copy" bool help Use to generate a redundant environment in the image. Must match target config and "/etc/fw_env.config". endif config U_BOOT_BOOT_SCRIPT prompt "Compile U-Boot boot script" bool help Use U-Boot's mkimage to compile a U-Boot boot script and install it into the rootfs if U_BOOT_BOOT_SCRIPT config U_BOOT_BOOT_SCRIPT_ROOTFS_PATH string default "/boot/boot.scr.uimg" prompt "Installation path" help Target rootfs path where the U-Boot script should be located endif comment "target install" config U_BOOT_INSTALL_SREC prompt "install u-boot.srec" bool help Installing the U-Boot srec hexfile into platform image directory. config U_BOOT_INSTALL_ELF prompt "install u-boot.elf" bool help Installing the U-Boot ELF binary into platform image directory. config U_BOOT_INSTALL_SPL prompt "install SPL" bool help Installing the U-Boot SPL (Secondary Program Loader) binary into platform image directory. config U_BOOT_INSTALL_MLO prompt "install MLO" bool depends on !X_LOAD help Installing the U-Boot SPL ("MLO") binary needed for OMAP CPUs into platform image directory. if U_BOOT_INSTALL_MLO || U_BOOT_INSTALL_SPL config U_BOOT_INSTALL_U_BOOT_IMG prompt "install u-boot.img" bool help Installing the U-Boot image with header ("u-boot.img") which is executed by U-Boot SPL into platform image directory. endif config U_BOOT_INSTALL_U_BOOT_IMX prompt "install u-boot.imx" bool help Installing the U-Boot image with imx header (u-boot.imx) into platform image directory. Say yes if you are building for freescale i.MX SOCs and are not using SPL. config U_BOOT_INSTALL_U_BOOT_DTB_IMX prompt "install u-boot-dtb.imx" bool help Installing the U-Boot image with device tree support and imx header (u-boot-dtb.imx) into platform image directory. Say yes if you are building for freescale i.MX SOCs and are not using SPL. config U_BOOT_INSTALL_U_BOOT_DTB prompt "install u-boot-dtb.bin" bool help Installing the U-Boot binary concatenated with the device tree into platform image directory. config U_BOOT_INSTALL_U_BOOT_WITH_SPL_PBL prompt "install u-boot-with-spl-pbl.bin" bool help Installing the U-Boot binary which contains as well the SPL and PBL. Say yes if you are building for Layerscape SoCs config U_BOOT_INSTALL_U_BOOT_STM32 prompt "install u-boot.stm32" bool help Installing the U-Boot image with stm32 header (u-boot.stm32) into platform image directory. Say yes if you are building for STM32MP1 SOCs. endif