summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2023-04-08 10:06:16 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-04-11 14:01:32 +0200
commit76616c22ba57b7112f761a64cdd4916de814e7b4 (patch)
tree32e0e24add093a43248ba16098b6f106cd88f537
parenta4670867f8c47649e06c98cb02da7ff487de764c (diff)
downloadbarebox-76616c22ba57b7112f761a64cdd4916de814e7b4.tar.gz
treewide: add missing device tree artifact cleanup where needed
The DTs in arch/$ARCH/dts are all cleaned up when invoking the make target, but we have a few DTs outside these directories. Clean those up as well and add a clean line for the overlay too. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Link: https://lore.barebox.org/20230408080616.938638-1-ahmad@a3f.at Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/riscv/boards/riscvemu/Makefile3
-rw-r--r--common/boards/qemu-virt/Makefile3
-rw-r--r--test/self/Makefile3
3 files changed, 9 insertions, 0 deletions
diff --git a/arch/riscv/boards/riscvemu/Makefile b/arch/riscv/boards/riscvemu/Makefile
index 56949c2357..ec7e89479e 100644
--- a/arch/riscv/boards/riscvemu/Makefile
+++ b/arch/riscv/boards/riscvemu/Makefile
@@ -3,3 +3,6 @@
obj-y += board.o
obj-y += overlay-of-sram.dtb.o
bbenv-$(CONFIG_CMD_TUTORIAL) += defaultenv-riscvemu
+
+clean-files := *.dtb *.dtb.S .*.dtc .*.pre .*.dts *.dtb.z
+clean-files += *.dtbo *.dtbo.S .*.dtso
diff --git a/common/boards/qemu-virt/Makefile b/common/boards/qemu-virt/Makefile
index 88184e9a79..8cacfafee7 100644
--- a/common/boards/qemu-virt/Makefile
+++ b/common/boards/qemu-virt/Makefile
@@ -5,3 +5,6 @@ obj-y += overlay-of-flash.dtb.o
ifeq ($(CONFIG_RISCV),y)
DTC_CPP_FLAGS_overlay-of-flash.dtb := -DRISCV_VIRT=1
endif
+
+clean-files := *.dtb *.dtb.S .*.dtc .*.pre .*.dts *.dtb.z
+clean-files += *.dtbo *.dtbo.S .*.dtso
diff --git a/test/self/Makefile b/test/self/Makefile
index 4d2c0374c9..d55d9133be 100644
--- a/test/self/Makefile
+++ b/test/self/Makefile
@@ -8,3 +8,6 @@ obj-$(CONFIG_SELFTEST_OF_MANIPULATION) += of_manipulation.o of_manipulation.dtb.
obj-$(CONFIG_SELFTEST_ENVIRONMENT_VARIABLES) += envvar.o
obj-$(CONFIG_SELFTEST_FS_RAMFS) += ramfs.o
obj-$(CONFIG_SELFTEST_JSON) += json.o
+
+clean-files := *.dtb *.dtb.S .*.dtc .*.pre .*.dts *.dtb.z
+clean-files += *.dtbo *.dtbo.S .*.dtso