mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-17 18:28:55 +00:00
3609e1dc5f
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>
44 lines
1.7 KiB
Makefile
44 lines
1.7 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
|
|
dtb-$(CONFIG_TARGET_KMCENT2) += kmcent2.dtb
|
|
dtb-$(CONFIG_TARGET_KMCOGE5NE) += kmcoge5ne.dtb
|
|
dtb-$(CONFIG_TARGET_KMETER1) += kmeter1.dtb
|
|
dtb-$(CONFIG_TARGET_KMOPTI2) += kmopti2.dtb
|
|
dtb-$(CONFIG_TARGET_KMSUPX5) += kmsupc5.dtb kmsupm5.dtb
|
|
dtb-$(CONFIG_TARGET_KMTEGR1) += kmtegr1.dtb
|
|
dtb-$(CONFIG_TARGET_KMTEPR2) += kmtepr2.dtb
|
|
dtb-$(CONFIG_TARGET_MPC837XERDB) += mpc8379erdb.dtb
|
|
dtb-$(CONFIG_TARGET_MPC8548CDS) += mpc8548cds.dtb mpc8548cds_36b.dtb
|
|
dtb-$(CONFIG_TARGET_P1010RDB_PA) += p1010rdb-pa.dtb p1010rdb-pa_36b.dtb
|
|
dtb-$(CONFIG_TARGET_P1010RDB_PB) += p1010rdb-pb.dtb p1010rdb-pb_36b.dtb
|
|
dtb-$(CONFIG_TARGET_P1020RDB_PC) += p1020rdb-pc.dtb p1020rdb-pc_36b.dtb
|
|
dtb-$(CONFIG_TARGET_P1020RDB_PD) += p1020rdb-pd.dtb
|
|
dtb-$(CONFIG_TARGET_P2020RDB) += p2020rdb-pc.dtb p2020rdb-pc_36b.dtb
|
|
dtb-$(CONFIG_TARGET_P2041RDB) += p2041rdb.dtb
|
|
dtb-$(CONFIG_TARGET_P3041DS) += p3041ds.dtb
|
|
dtb-$(CONFIG_TARGET_P4080DS) += p4080ds.dtb
|
|
dtb-$(CONFIG_TARGET_P5040DS) += p5040ds.dtb
|
|
dtb-$(CONFIG_TARGET_QEMU_PPCE500) += qemu-ppce500.dtb
|
|
dtb-$(CONFIG_TARGET_SOCRATES) += socrates.dtb
|
|
dtb-$(CONFIG_TARGET_T1024RDB) += t1024rdb.dtb
|
|
dtb-$(CONFIG_TARGET_T1042D4RDB) += t1042d4rdb.dtb
|
|
dtb-$(CONFIG_TARGET_T2080QDS) += t2080qds.dtb
|
|
dtb-$(CONFIG_TARGET_T2080RDB) += t2080rdb.dtb
|
|
dtb-$(CONFIG_TARGET_T4240RDB) += t4240rdb.dtb
|
|
dtb-$(CONFIG_TARGET_TUGE1) += kmtuge1.dtb
|
|
dtb-$(CONFIG_TARGET_TUXX1) += kmtuxa1.dtb
|
|
dtb-$(CONFIG_TARGET_MCR3000) += mcr3000.dtb
|
|
dtb-$(CONFIG_TARGET_GAZERBEAM) += gazerbeam.dtb
|
|
|
|
include $(srctree)/scripts/Makefile.dts
|
|
|
|
targets += $(dtb-y)
|
|
|
|
# Add any required device tree compiler flags here
|
|
DTC_FLAGS +=
|
|
|
|
PHONY += dtbs
|
|
dtbs: $(addprefix $(obj)/, $(dtb-y))
|
|
@:
|
|
|
|
clean-files := *.dtb
|