Skip to content

Commit 2442f10

Browse files
neuschaefermaddy-kerneldev
authored andcommitted
powerpc: dts: Build devicetrees of enabled platforms
Follow the same approach as other architectures such as Arm or RISC-V, and build devicetrees based on platforms selected in Kconfig. This makes it unnecessary to use CONFIG_OF_ALL_DTBS on PowerPC in order to build DTB files. This makes it easier to use other build and test infrastructure such as `make dtbs_check`, and is a first step towards generating FIT images that include all the relevant DTBs with `make image.fit`. Signed-off-by: J. Neuschäfer <j.ne@posteo.net> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20260315-mpc83xx-dtb-v4-1-243849be4280@posteo.net
1 parent ec07a2f commit 2442f10

2 files changed

Lines changed: 116 additions & 0 deletions

File tree

arch/powerpc/boot/dts/Makefile

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,76 @@
33
subdir-y += fsl
44

55
dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(src)/%.dts,%.dtb, $(wildcard $(src)/*.dts))
6+
7+
# PPC44x platforms
8+
dtb-$(CONFIG_PPC44x_SIMPLE) += arches.dtb bamboo.dtb bluestone.dtb glacier.dtb
9+
dtb-$(CONFIG_PPC44x_SIMPLE) += eiger.dtb katmai.dtb rainier.dtb redwood.dtb
10+
dtb-$(CONFIG_PPC44x_SIMPLE) += sequoia.dtb taishan.dtb yosemite.dtb icon.dtb
11+
dtb-$(CONFIG_EBONY) += ebony.dtb
12+
dtb-$(CONFIG_SAM440EP) += sam440ep.dtb
13+
dtb-$(CONFIG_WARP) += warp.dtb
14+
dtb-$(CONFIG_ISS4xx) += iss4xx.dtb iss4xx-mpic.dtb
15+
dtb-$(CONFIG_CANYONLANDS) += canyonlands.dtb
16+
dtb-$(CONFIG_CURRITUCK) += currituck.dtb
17+
dtb-$(CONFIG_AKEBONO) += akebono.dtb
18+
dtb-$(CONFIG_FSP2) += fsp2.dtb
19+
20+
# Embedded 6xx platforms
21+
dtb-$(CONFIG_LINKSTATION) += kuroboxHG.dtb kuroboxHD.dtb
22+
dtb-$(CONFIG_STORCENTER) += storcenter.dtb
23+
dtb-$(CONFIG_PPC_HOLLY) += holly.dtb
24+
dtb-$(CONFIG_GAMECUBE) += gamecube.dtb
25+
dtb-$(CONFIG_WII) += wii.dtb
26+
dtb-$(CONFIG_MVME5100) += mvme5100.dtb
27+
28+
# MPC8xx platforms
29+
dtb-$(CONFIG_MPC885ADS) += mpc885ads.dtb
30+
dtb-$(CONFIG_MPC86XADS) += mpc866ads.dtb
31+
dtb-$(CONFIG_PPC_EP88XC) += ep88xc.dtb
32+
dtb-$(CONFIG_PPC_ADDER875) += adder875-redboot.dtb adder875-uboot.dtb
33+
dtb-$(CONFIG_TQM8XX) += tqm8xx.dtb
34+
35+
# MPC512x platforms
36+
dtb-$(CONFIG_MPC5121_ADS) += mpc5121ads.dtb
37+
dtb-$(CONFIG_MPC512x_GENERIC) += mpc5125twr.dtb ac14xx.dts
38+
dtb-$(CONFIG_PDM360NG) += pdm360ng.dtb
39+
40+
# MPC5200 platforms
41+
dtb-$(CONFIG_PPC_MPC5200_SIMPLE) += a3m071.dtb a4m072.dtb charon.dtb cm5200.dtb
42+
dtb-$(CONFIG_PPC_MPC5200_SIMPLE) += digsy_mtc.dtb motionpro.dtb mucmc52.dtb
43+
dtb-$(CONFIG_PPC_MPC5200_SIMPLE) += o2d.dtb o2d300.dtb o2dnt2.dtb o2i.dtb
44+
dtb-$(CONFIG_PPC_MPC5200_SIMPLE) += o2mnt.dtb o3dnt.dtb pcm030.dtb pcm032.dtb
45+
dtb-$(CONFIG_PPC_MPC5200_SIMPLE) += tqm5200.dtb uc101.dtb
46+
dtb-$(CONFIG_PPC_LITE5200) += lite5200.dtb lite5200b.dtb
47+
dtb-$(CONFIG_PPC_MEDIA5200) += media5200.dtb
48+
49+
# MPC82xx platforms
50+
dtb-$(CONFIG_EP8248E) += ep8248e.dtb
51+
dtb-$(CONFIG_MGCOGE) += mgcoge.dtb
52+
53+
# MPC83xx platforms
54+
dtb-$(CONFIG_MPC830x_RDB) += mpc8308rdb.dtb mpc8308_p1m.dtb
55+
dtb-$(CONFIG_MPC831x_RDB) += mpc8313erdb.dtb mpc8315erdb.dtb
56+
dtb-$(CONFIG_MPC832x_RDB) += mpc832x_rdb.dtb
57+
dtb-$(CONFIG_MPC834x_ITX) += mpc8349emitx.dtb mpc8349emitxgp.dtb
58+
dtb-$(CONFIG_ASP834x) += asp834x-redboot.dtb
59+
dtb-$(CONFIG_MPC836x_RDK) += mpc836x_rdk.dtb
60+
dtb-$(CONFIG_KMETER1) += kmeter1.dtb
61+
dtb-$(CONFIG_MPC837x_RDB) += mpc8377_rdb.dtb mpc8378_rdb.dtb mpc8379_rdb.dtb
62+
dtb-$(CONFIG_MPC837x_RDB) += mpc8377_wlan.dtb
63+
64+
# MPC85xx platforms
65+
dtb-$(CONFIG_STX_GP3) += stx_gp3_8560.dtb stxssa8555.dtb
66+
dtb-$(CONFIG_TQM85xx) += tqm8540.dtb tqm8541.dtb tqm8548.dtb
67+
dtb-$(CONFIG_TQM85xx) += tqm8548-bigflash.dtb tqm8555.dtb tqm8560.dtb
68+
dtb-$(CONFIG_SOCRATES) += socrates.dtb
69+
dtb-$(CONFIG_KSI8560) += ksi8560.dtb
70+
dtb-$(CONFIG_XES_MPC85xx) += xcalibur1501.dtb xpedite5200.dtb
71+
dtb-$(CONFIG_XES_MPC85xx) += xpedite5200_xmon.dtb xpedite5301.dtb
72+
dtb-$(CONFIG_XES_MPC85xx) += xpedite5330.dtb xpedite5370.dtb
73+
dtb-$(CONFIG_PPC_P2020) += turris1x.dtb
74+
75+
# Misc. platforms
76+
dtb-$(CONFIG_PPC_MICROWATT) += microwatt.dtb
77+
dtb-$(CONFIG_AMIGAONE) += amigaone.dtb
78+
dtb-$(CONFIG_PPC_PS3) += ps3.dtb

arch/powerpc/boot/dts/fsl/Makefile

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,46 @@
11
# SPDX-License-Identifier: GPL-2.0
22

33
dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(src)/%.dts,%.dtb, $(wildcard $(src)/*.dts))
4+
5+
# MPC85xx platforms
6+
dtb-$(CONFIG_BSC9131_RDB) += bsc9131rdb.dtb
7+
dtb-$(CONFIG_BSC9132_QDS) += bsc9132qds.dtb
8+
dtb-$(CONFIG_C293_PCIE) += c293pcie.dtb
9+
dtb-$(CONFIG_MPC8536_DS) += mpc8536ds.dtb mpc8536ds_36b.dtb
10+
dtb-$(CONFIG_MPC85xx_DS) += mpc8544ds.dtb mpc8572ds_camp_core0.dtb
11+
dtb-$(CONFIG_MPC85xx_DS) += mpc8572ds_camp_core1.dtb mpc8572ds_36b.dtb
12+
dtb-$(CONFIG_MPC85xx_DS) += mpc8572ds.dtb
13+
dtb-$(CONFIG_MPC85xx_MDS) += mpc8568mds.dtb mpc8569mds.dtb p1021mds.dtb
14+
dtb-$(CONFIG_MPC85xx_RDB) += p1020mbg-pc_32b.dtb p1020mbg-pc_36b.dtb
15+
dtb-$(CONFIG_MPC85xx_RDB) += p1020rdb_36b.dtb p1020rdb.dtb p1020rdb-pc_32b.dtb
16+
dtb-$(CONFIG_MPC85xx_RDB) += p1020rdb-pc_36b.dtb p1020rdb-pc_camp_core0.dtb
17+
dtb-$(CONFIG_MPC85xx_RDB) += p1020rdb-pc_camp_core1.dtb p1020rdb-pd.dtb
18+
dtb-$(CONFIG_MPC85xx_RDB) += p1020utm-pc_32b.dtb p1020utm-pc_36b.dtb
19+
dtb-$(CONFIG_MPC85xx_RDB) += p1021rdb-pc_32b.dtb p1021rdb-pc_36b.dtb
20+
dtb-$(CONFIG_MPC85xx_RDB) += p1024rdb_32b.dtb p1024rdb_36b.dtb p1025rdb_32b.dtb
21+
dtb-$(CONFIG_MPC85xx_RDB) += p1025rdb_36b.dtb
22+
dtb-$(CONFIG_P1010_RDB) += p1010rdb-pa_36b.dtb p1010rdb-pa.dtb
23+
dtb-$(CONFIG_P1010_RDB) += p1010rdb-pb_36b.dtb p1010rdb-pb.dtb
24+
dtb-$(CONFIG_P1022_DS) += p1022ds_32b.dtb p1022ds_36b.dtb
25+
dtb-$(CONFIG_P1022_RDK) += p1022rdk.dtb
26+
dtb-$(CONFIG_P1023_RDB) += p1023rdb.dtb
27+
dtb-$(CONFIG_PPC_P2020) += p2020ds.dtb
28+
dtb-$(CONFIG_TWR_P102x) += p1025twr.dtb
29+
dtb-$(CONFIG_CORENET_GENERIC) += b4420qds.dtb b4860qds.dtb cyrus_p5020.dtb
30+
dtb-$(CONFIG_CORENET_GENERIC) += kmcent2.dtb kmcoge4.dtb oca4080.dtb
31+
dtb-$(CONFIG_CORENET_GENERIC) += p2041rdb.dtb p3041ds.dtb p4080ds.dtb
32+
dtb-$(CONFIG_CORENET_GENERIC) += p5020ds.dtb p5040ds.dtb t1023rdb.dtb
33+
dtb-$(CONFIG_CORENET_GENERIC) += t1024qds.dtb t1024rdb.dtb t1040d4rdb.dtb
34+
dtb-$(CONFIG_CORENET_GENERIC) += t1040qds.dtb t1040rdb.dtb t1040rdb-rev-a.dtb
35+
dtb-$(CONFIG_CORENET_GENERIC) += t1042d4rdb.dtb t1042qds.dtb t1042rdb.dtb
36+
dtb-$(CONFIG_CORENET_GENERIC) += t1042rdb_pi.dtb t2080qds.dtb t2080rdb.dtb
37+
dtb-$(CONFIG_CORENET_GENERIC) += t2081qds.dtb t4240qds.dtb t4240rdb.dtb
38+
dtb-$(CONFIG_PPA8548) += ppa8548.dtb
39+
dtb-$(CONFIG_GE_IMP3A) += ge_imp3a.dtb
40+
dtb-$(CONFIG_MVME2500) += mvme2500.dtb
41+
42+
# MPC86xx platforms
43+
dtb-$(CONFIG_GEF_SBC310) += gef_sbc310.dtb
44+
dtb-$(CONFIG_GEF_SBC610) += gef_sbc610.dtb
45+
dtb-$(CONFIG_GEF_PPC9A) += gef_ppc9a.dtb
46+
dtb-$(CONFIG_MVME7100) += mvme7100.dtb

0 commit comments

Comments
 (0)