u-boot/arch/riscv/dts
Rasmus Villemoes 3609e1dc5f dts: automatically build necessary .dtb files
When building for a custom board, it is quite common to maintain a
private branch which include some defconfig and .dts files. But to
hook up those .dts files requires modifying a file "belonging" to
upstream U-Boot, the arch/*/dts/Makefile. Forward-porting that branch
to a newer upstream then often results in a conflict which, while it
is trivial to resolve by hand, makes it harder to have a CI do "try to
build our board against latest upstream".

The .config usually includes information on precisely what .dtb(s) are
needed, so to avoid having to modify the Makefile, simply add the
files in (SPL_)OF_LIST to dtb-y.

A technicality is that (SPL_)OF_LIST is not always defined, so rework
the Kconfig symbols so that (SPL_)OF_LIST is always defined (when
(SPL_)OF_CONTROL), but only prompted for in the cases which used to be
their "depends on".

nios2 and microblaze already have something like this in their
dts/Makefile, and the rationale in commit 41f59f6853 is similar to
the above. So this simply generalizes existing practice. Followup
patches could remove the logic in those two makefiles, just as there's
potential for moving some common boilerplate from all the
arch/*/dts/Makefile files to the new scripts/Makefile.dts.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Simon Glass <sjg@chromium.org>
2022-02-09 12:26:12 -07:00
..
ae350-u-boot.dtsi riscv: ae350: dts: Add missing "u-boot, dm-spl" for SPL config 2021-06-17 09:39:08 +08:00
ae350_32.dts riscv: ae350: dts: Add missing "u-boot, dm-spl" for SPL config 2021-06-17 09:39:08 +08:00
ae350_64.dts riscv: ae350: dts: Add missing "u-boot, dm-spl" for SPL config 2021-06-17 09:39:08 +08:00
binman.dtsi riscv: Remove OF_PRIOR_STAGE from RISC-V boards 2021-10-18 13:19:50 -04:00
fu540-c000-u-boot.dtsi riscv: fu540: dts: Correct reg size of clint node 2020-10-26 10:01:37 +08:00
fu540-c000.dtsi riscv: dts: sifive: Sync hifive-unleashed-a00 dts from linux 2020-06-04 09:44:09 +08:00
fu540-hifive-unleashed-a00-ddr.dtsi sifive: dts: fu540: Add DDR controller and phy register settings 2020-06-04 09:44:08 +08:00
fu740-c000-u-boot.dtsi riscv: sifive: fu740: Support i2c in spl 2021-07-06 20:24:25 +08:00
fu740-c000.dtsi riscv: dts: add fu740 support 2021-05-31 16:35:54 +08:00
fu740-hifive-unmatched-a00-ddr.dtsi riscv: dts: add SiFive Unmatched board support 2021-05-31 16:35:54 +08:00
hifive-unleashed-a00-u-boot.dtsi riscv: sifive: unleashed: Switch to use binman to generate u-boot.itb 2021-05-19 17:01:50 +08:00
hifive-unleashed-a00.dts riscv: dts: sifive: Sync hifive-unleashed-a00 dts from linux 2020-06-04 09:44:09 +08:00
hifive-unmatched-a00-u-boot.dtsi riscv: Support booting SiFive Unmatched from SPI. 2021-12-02 16:43:56 +08:00
hifive-unmatched-a00.dts riscv: dts: add SiFive Unmatched board support 2021-05-31 16:35:54 +08:00
k210-maix-bit.dts riscv: k210: Enable QSPI for spi3 2021-02-25 18:06:08 +08:00
k210.dtsi k210: dts: Set PLL1 to the same rate as PLL0 2021-06-17 09:40:58 +08:00
Makefile dts: automatically build necessary .dtb files 2022-02-09 12:26:12 -07:00
microchip-mpfs-icicle-kit-u-boot.dtsi riscv: dts: Add device tree for Microchip Icicle Kit 2021-01-18 11:06:38 +08:00
microchip-mpfs-icicle-kit.dts riscv: dts: Split Microchip device tree 2021-12-02 16:43:51 +08:00
microchip-mpfs.dtsi riscv: dts: Split Microchip device tree 2021-12-02 16:43:51 +08:00
openpiton-riscv64.dts riscv: dts: add OpenPiton RISC-V board dts support 2021-07-07 20:34:02 +08:00
qemu-virt32.dts riscv: qemu: Split devicetree files for qemu_riscv32/64 2021-12-23 10:24:39 -05:00
qemu-virt64.dts riscv: qemu: Split devicetree files for qemu_riscv32/64 2021-12-23 10:24:39 -05:00