summaryrefslogtreecommitdiff
path: root/arch/metag/boot/dts/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/metag/boot/dts/Makefile')
-rw-r--r--arch/metag/boot/dts/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/metag/boot/dts/Makefile b/arch/metag/boot/dts/Makefile
new file mode 100644
index 000000000..72c121879
--- /dev/null
+++ b/arch/metag/boot/dts/Makefile
@@ -0,0 +1,22 @@
+dtb-y += skeleton.dtb
+dtb-y += tz1090_generic.dtb
+
+# Built-in dtb
+builtindtb-y := skeleton
+builtindtb-$(CONFIG_SOC_TZ1090) := tz1090_generic
+
+ifneq ($(CONFIG_METAG_BUILTIN_DTB_NAME),"")
+ builtindtb-y := $(patsubst "%",%,$(CONFIG_METAG_BUILTIN_DTB_NAME))
+endif
+
+dtb-$(CONFIG_METAG_BUILTIN_DTB) += $(builtindtb-y).dtb
+obj-$(CONFIG_METAG_BUILTIN_DTB) += $(builtindtb-y).dtb.o
+
+targets += dtbs
+targets += $(dtb-y)
+
+.SECONDARY: $(obj)/$(builtindtb-y).dtb.S
+
+dtbs: $(addprefix $(obj)/, $(dtb-y))
+
+clean-files += *.dtb *.dtb.S