summaryrefslogtreecommitdiffstats
path: root/kernel/arch/xtensa/boot/dts/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/xtensa/boot/dts/Makefile')
-rw-r--r--kernel/arch/xtensa/boot/dts/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/arch/xtensa/boot/dts/Makefile b/kernel/arch/xtensa/boot/dts/Makefile
index 5f711bba8..a15e241c9 100644
--- a/kernel/arch/xtensa/boot/dts/Makefile
+++ b/kernel/arch/xtensa/boot/dts/Makefile
@@ -12,4 +12,9 @@ ifneq ($(CONFIG_BUILTIN_DTB),"")
obj-$(CONFIG_OF) += $(BUILTIN_DTB)
endif
-clean-files := *.dtb.S
+dtstree := $(srctree)/$(src)
+dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
+
+always += $(dtb-y)
+clean-files += *.dtb *.dtb.S
+