summaryrefslogtreecommitdiffstats
path: root/arch/nios2/boot/dts/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nios2/boot/dts/Makefile')
-rw-r--r--arch/nios2/boot/dts/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/nios2/boot/dts/Makefile b/arch/nios2/boot/dts/Makefile
new file mode 100644
index 000000000..a91a0b09b
--- /dev/null
+++ b/arch/nios2/boot/dts/Makefile
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0
+
+obj-y := $(patsubst "%.dts",%.dtb.o,$(CONFIG_NIOS2_DTB_SOURCE))
+
+dtstree := $(srctree)/$(src)
+dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))