makefile: fix clean directive
authorDamien Le Moal <damien.lemoal@wdc.com>
Mon, 5 Oct 2020 14:55:53 +0000 (23:55 +0900)
committerAnup Patel <anup@brainfault.org>
Sat, 10 Oct 2020 05:32:23 +0000 (11:02 +0530)
Add cleaning of compiled device tree files (.dtb files).

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Makefile

index cebb78e..2a352ef 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -461,6 +461,8 @@ clean:
        $(CMD_PREFIX)find $(build_dir) -type f -name "*.elf" -exec rm -rf {} +
        $(if $(V), @echo " RM        $(build_dir)/*.bin")
        $(CMD_PREFIX)find $(build_dir) -type f -name "*.bin" -exec rm -rf {} +
+       $(if $(V), @echo " RM        $(build_dir)/*.dtb")
+       $(CMD_PREFIX)find $(build_dir) -type f -name "*.dtb" -exec rm -rf {} +
 
 # Rule for "make distclean"
 .PHONY: distclean