u-boot/arch/arc/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
..
abilis_tb100.dts ARC: Add model property to boards .dts 2018-10-05 16:55:42 +03:00
axc001.dtsi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
axc003.dtsi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
axs10x_mb.dtsi spi: dw: Add SoC-specific compatible strings 2020-12-18 16:16:37 +05:30
axs101.dts ARC: Add model property to boards .dts 2018-10-05 16:55:42 +03:00
axs103.dts ARC: Add model property to boards .dts 2018-10-05 16:55:42 +03:00
emsdp.dts arc: emsdp/iotdk: Switch to DM_MMC 2019-11-01 16:45:40 +03:00
hsdk-4xd.dts ARC: HSDK: split HSDK and HSDK-4xD DTS 2020-04-27 11:20:26 +03:00
hsdk-common.dtsi spi: dw: Add SoC-specific compatible strings 2020-12-18 16:16:37 +05:30
hsdk.dts ARC: HSDK: split HSDK and HSDK-4xD DTS 2020-04-27 11:20:26 +03:00
iot_devkit.dts arc: emsdp/iotdk: Use standard compatible string for USB no-op PHY 2021-04-18 04:29:35 +02:00
Makefile dts: automatically build necessary .dtb files 2022-02-09 12:26:12 -07:00
nsim.dts ARC: nsim_hs38: Add support of Virtio NET & BLK 2020-02-12 20:40:24 +03:00
skeleton.dtsi arc: dts: separate single axs10x.dts file 2017-03-24 14:47:52 +03:00