2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2015-12-19 19:20:48 +00:00
|
|
|
|
2016-03-16 08:59:59 +00:00
|
|
|
dtb-$(CONFIG_TARGET_AP121) += ap121.dtb
|
2016-03-16 09:00:00 +00:00
|
|
|
dtb-$(CONFIG_TARGET_AP143) += ap143.dtb
|
2019-03-16 01:24:44 +00:00
|
|
|
dtb-$(CONFIG_TARGET_AP152) += ap152.dtb
|
2016-09-08 06:47:39 +00:00
|
|
|
dtb-$(CONFIG_TARGET_BOSTON) += img,boston.dtb
|
2016-05-17 06:43:28 +00:00
|
|
|
dtb-$(CONFIG_TARGET_MALTA) += mti,malta.dtb
|
2016-01-28 10:00:17 +00:00
|
|
|
dtb-$(CONFIG_TARGET_PIC32MZDASK) += pic32mzda_sk.dtb
|
2016-07-29 14:11:19 +00:00
|
|
|
dtb-$(CONFIG_TARGET_XILFPGA) += nexys4ddr.dtb
|
2019-09-16 15:15:05 +00:00
|
|
|
dtb-$(CONFIG_BOARD_BROADCOM_BCM968380GERG) += brcm,bcm968380gerg.dtb
|
2018-01-20 18:16:05 +00:00
|
|
|
dtb-$(CONFIG_BOARD_COMTREND_AR5315U) += comtrend,ar-5315u.dtb
|
2017-04-24 22:39:24 +00:00
|
|
|
dtb-$(CONFIG_BOARD_COMTREND_AR5387UN) += comtrend,ar-5387un.dtb
|
2017-05-16 16:39:04 +00:00
|
|
|
dtb-$(CONFIG_BOARD_COMTREND_CT5361) += comtrend,ct-5361.dtb
|
2017-04-24 22:39:26 +00:00
|
|
|
dtb-$(CONFIG_BOARD_COMTREND_VR3032U) += comtrend,vr-3032u.dtb
|
2018-01-20 13:16:56 +00:00
|
|
|
dtb-$(CONFIG_BOARD_COMTREND_WAP5813N) += comtrend,wap-5813n.dtb
|
2017-04-24 22:39:22 +00:00
|
|
|
dtb-$(CONFIG_BOARD_HUAWEI_HG556A) += huawei,hg556a.dtb
|
2020-11-12 08:35:56 +00:00
|
|
|
dtb-$(CONFIG_BOARD_MT7620_RFB) += mediatek,mt7620-rfb.dtb
|
|
|
|
dtb-$(CONFIG_BOARD_MT7620_MT7530_RFB) += mediatek,mt7620-mt7530-rfb.dtb
|
2020-04-21 07:28:49 +00:00
|
|
|
dtb-$(CONFIG_BOARD_MT7628_RFB) += mediatek,mt7628-rfb.dtb
|
2020-11-12 08:35:17 +00:00
|
|
|
dtb-$(CONFIG_BOARD_GARDENA_SMART_GATEWAY_MT7688) += gardena-smart-gateway-mt7688.dtb
|
|
|
|
dtb-$(CONFIG_BOARD_LINKIT_SMART_7688) += linkit-smart-7688.dtb
|
2020-06-30 10:08:58 +00:00
|
|
|
dtb-$(CONFIG_TARGET_OCTEON_EBB7304) += mrvl,octeon-ebb7304.dtb
|
2021-04-07 07:12:38 +00:00
|
|
|
dtb-$(CONFIG_TARGET_OCTEON_NIC23) += mrvl,octeon-nic23.dtb
|
2017-05-16 16:42:43 +00:00
|
|
|
dtb-$(CONFIG_BOARD_NETGEAR_CG3100D) += netgear,cg3100d.dtb
|
2018-02-03 09:30:28 +00:00
|
|
|
dtb-$(CONFIG_BOARD_NETGEAR_DGND3700V2) += netgear,dgnd3700v2.dtb
|
2017-05-16 16:46:59 +00:00
|
|
|
dtb-$(CONFIG_BOARD_SAGEM_FAST1704) += sagem,f@st1704.dtb
|
2019-09-16 15:15:05 +00:00
|
|
|
dtb-$(CONFIG_BOARD_SFR_NB4_SER) += sfr,nb4-ser.dtb
|
2016-05-06 18:10:41 +00:00
|
|
|
dtb-$(CONFIG_BOARD_TPLINK_WDR4300) += tplink_wdr4300.dtb
|
2020-02-18 08:34:48 +00:00
|
|
|
dtb-$(CONFIG_BOARD_VOCORE2) += vocore_vocore2.dtb
|
2018-12-16 22:25:23 +00:00
|
|
|
dtb-$(CONFIG_TARGET_JZ4780_CI20) += ci20.dtb
|
2018-12-20 08:56:05 +00:00
|
|
|
dtb-$(CONFIG_SOC_LUTON) += luton_pcb090.dtb luton_pcb091.dtb
|
|
|
|
dtb-$(CONFIG_SOC_OCELOT) += ocelot_pcb120.dtb ocelot_pcb123.dtb
|
2019-01-12 17:57:00 +00:00
|
|
|
dtb-$(CONFIG_SOC_JR2) += jr2_pcb110.dtb jr2_pcb111.dtb serval2_pcb112.dtb
|
2019-01-17 14:33:28 +00:00
|
|
|
dtb-$(CONFIG_SOC_SERVALT) += servalt_pcb116.dtb
|
2019-01-23 15:39:45 +00:00
|
|
|
dtb-$(CONFIG_SOC_SERVAL) += serval_pcb105.dtb serval_pcb106.dtb
|
2015-12-19 19:20:48 +00:00
|
|
|
|
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 41f59f68539 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-01-10 13:34:41 +00:00
|
|
|
include $(srctree)/scripts/Makefile.dts
|
|
|
|
|
2015-12-19 19:20:48 +00:00
|
|
|
targets += $(dtb-y)
|
|
|
|
|
|
|
|
# Add any required device tree compiler flags here
|
|
|
|
DTC_FLAGS +=
|
|
|
|
|
|
|
|
PHONY += dtbs
|
|
|
|
dtbs: $(addprefix $(obj)/, $(dtb-y))
|
|
|
|
@:
|
|
|
|
|
|
|
|
clean-files := *.dtb
|