[Buildroot] [PATCH v2 1/4] boot/uboot: introduce BR2_TARGET_UBOOT_FORMAT_DTB

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Jul 18 20:13:41 UTC 2021


On Tue, 15 Jun 2021 22:03:39 -0700
Drew Fustini <drew at beagleboard.org> wrote:

> If U-Boot CONFIG_OF_SEPARATE is defined [1], then the device tree will
> be built and placed in a u-boot.dtb file alongside u-boot.bin.
> 
> When BR2_TARGET_UBOOT_FORMAT_DTB is enabled, buildroot will copy
> u-boot.dtb to $(BINARIES_DIR).
> 
> This is useful for RISC-V platforms that want to build OpenSBI with an
> external DTB by using FW_FDT_PATH [2].
> 
> [1] https://github.com/u-boot/u-boot/blob/master/doc/README.fdt-control
> [2] https://github.com/riscv/opensbi/blob/master/docs/firmware/fw.md
> 
> Reviewed-by: Alistair Francis <alistair.francis at wdc.com>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> Signed-off-by: Drew Fustini <drew at beagleboard.org>
> ---
>  boot/uboot/Config.in | 3 +++
>  boot/uboot/uboot.mk  | 4 ++++
>  2 files changed, 7 insertions(+)

This new option is not exactly another U-Boot format, u-boot.dtb does
not include the U-Boot code itself. But oh well, your solution is very
simple, and fits well with what already exists, so I've applied.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list