u-boot/arch/m68k/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
..
amcore.dts m68k: add initial dts files for all m68k boards 2019-05-24 08:11:53 -04:00
astro_mcf5373l.dts m68k: add initial dts files for all m68k boards 2019-05-24 08:11:53 -04:00
cobra5272.dts m68k: add fec fdt overrides to all boards 2020-01-10 10:07:25 -05:00
eb_cpu5282_internal.dts m68k: add fec fdt overrides to all boards 2020-01-10 10:07:25 -05:00
eb_cpu5282.dts m68k: add fec fdt overrides to all boards 2020-01-10 10:07:25 -05:00
M5208EVBE.dts m68k: add fec fdt overrides to all boards 2020-01-10 10:07:25 -05:00
M5235EVB_Flash32.dts m68k: add fec fdt overrides to all boards 2020-01-10 10:07:25 -05:00
M5235EVB.dts m68k: add fec fdt overrides to all boards 2020-01-10 10:07:25 -05:00
M5249EVB.dts m68k: add initial dts files for all m68k boards 2019-05-24 08:11:53 -04:00
M5253DEMO.dts m68k: add initial dts files for all m68k boards 2019-05-24 08:11:53 -04:00
M5272C3.dts m68k: add fec fdt overrides to all boards 2020-01-10 10:07:25 -05:00
M5275EVB.dts m68k: add fec fdt overrides to all boards 2020-01-10 10:07:25 -05:00
M5282EVB.dts m68k: add fec fdt overrides to all boards 2020-01-10 10:07:25 -05:00
M5329AFEE.dts m68k: add fec fdt overrides to all boards 2020-01-10 10:07:25 -05:00
M5329BFEE.dts m68k: add fec fdt overrides to all boards 2020-01-10 10:07:25 -05:00
M5373EVB.dts m68k: add fec fdt overrides to all boards 2020-01-10 10:07:25 -05:00
M53017EVB.dts m68k: add fec fdt overrides to all boards 2020-01-10 10:07:25 -05:00
Makefile dts: automatically build necessary .dtb files 2022-02-09 12:26:12 -07:00
mcf54xx.dtsi m68k: add fec base node to devicetrees 2020-01-10 10:07:25 -05:00
mcf523x.dtsi m68k: add fec base node to devicetrees 2020-01-10 10:07:25 -05:00
mcf537x.dtsi m68k: add fec base node to devicetrees 2020-01-10 10:07:25 -05:00
mcf5208.dtsi m68k: add fec base node to devicetrees 2020-01-10 10:07:25 -05:00
mcf5249.dtsi m68k: add basic set of devicetrees 2019-05-23 23:14:38 -04:00
mcf5253.dtsi m68k: add basic set of devicetrees 2019-05-23 23:14:38 -04:00
mcf5271.dtsi m68k: add fec base node to devicetrees 2020-01-10 10:07:25 -05:00
mcf5272.dtsi m68k: add fec base node to devicetrees 2020-01-10 10:07:25 -05:00
mcf5275.dtsi m68k: add fec base node to devicetrees 2020-01-10 10:07:25 -05:00
mcf5282.dtsi m68k: add fec base node to devicetrees 2020-01-10 10:07:25 -05:00
mcf5301x.dtsi m68k: add fec base node to devicetrees 2020-01-10 10:07:25 -05:00
mcf5307.dtsi m68k: add basic set of devicetrees 2019-05-23 23:14:38 -04:00
mcf5329.dtsi m68k: add fec base node to devicetrees 2020-01-10 10:07:25 -05:00
mcf5441x.dtsi m68k: add fec base node to devicetrees 2020-01-10 10:07:25 -05:00
stmark2.dts m68k: add fec fdt overrides to all boards 2020-01-10 10:07:25 -05:00