summaryrefslogtreecommitdiff
path: root/arch/riscv/boot/dts/canaan/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/boot/dts/canaan/Makefile')
-rw-r--r--arch/riscv/boot/dts/canaan/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/riscv/boot/dts/canaan/Makefile b/arch/riscv/boot/dts/canaan/Makefile
new file mode 100644
index 000000000000..9ee7156c0c31
--- /dev/null
+++ b/arch/riscv/boot/dts/canaan/Makefile
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0
+ifneq ($(CONFIG_SOC_CANAAN_K210_DTB_SOURCE),"")
+dtb-y += $(strip $(shell echo $(CONFIG_SOC_CANAAN_K210_DTB_SOURCE))).dtb
+obj-$(CONFIG_SOC_CANAAN_K210_DTB_BUILTIN) += $(addsuffix .o, $(dtb-y))
+endif