boot/opensbi: introduce BR2_TARGET_OPENSBI_FW_FDT_PATH
authorDrew Fustini <drew@beagleboard.org>
Wed, 16 Jun 2021 05:03:41 +0000 (22:03 -0700)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 18 Jul 2021 19:24:37 +0000 (21:24 +0200)
commit4210b268928fc10ce576c0bb85981a34263eb7ac
treee3a95a926b25a233ac14c04b49f745ebb3867e7d
parentce534677cbe8f3dbcb86895c378a2b59b2107a32
boot/opensbi: introduce BR2_TARGET_OPENSBI_FW_FDT_PATH

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@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Drew Fustini <drew@beagleboard.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
boot/opensbi/Config.in
boot/opensbi/opensbi.mk