Skip to content

Commit 0ed0481

Browse files
ConchuODpalmer-dabbelt
authored andcommitted
riscv: dts: canaan: build all devicetress if SOC_CANAAN
Testing & checking the Canaan devicetrees is inconvenient as only the devicetree corresponding to SOC_CANAAN_K210_DTB_BUILTIN will be built. Change the Makefile so that all devicetrees are built by default if SOC_CANAAN but only the one specified by SOC_CANAAN_K210_DTB_BUILTIN gets built as an object. Signed-off-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 6990ea2 commit 0ed0481

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

arch/riscv/boot/dts/canaan/Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
dtb-$(CONFIG_SOC_CANAAN_K210_DTB_BUILTIN) += $(addsuffix .dtb, $(CONFIG_SOC_CANAAN_K210_DTB_SOURCE))
3-
obj-$(CONFIG_SOC_CANAAN_K210_DTB_BUILTIN) += $(addsuffix .o, $(dtb-y))
2+
dtb-$(CONFIG_SOC_CANAAN) += canaan_kd233.dtb
3+
dtb-$(CONFIG_SOC_CANAAN) += k210_generic.dtb
4+
dtb-$(CONFIG_SOC_CANAAN) += sipeed_maix_bit.dtb
5+
dtb-$(CONFIG_SOC_CANAAN) += sipeed_maix_dock.dtb
6+
dtb-$(CONFIG_SOC_CANAAN) += sipeed_maix_go.dtb
7+
dtb-$(CONFIG_SOC_CANAAN) += sipeed_maixduino.dtb
8+
9+
obj-$(CONFIG_SOC_CANAAN_K210_DTB_BUILTIN) += $(addsuffix .dtb.o, $(CONFIG_SOC_CANAAN_K210_DTB_SOURCE))

0 commit comments

Comments
 (0)