diff mbox series

makefile: fix clean directive

Message ID 20201005145553.80557-1-damien.lemoal@wdc.com
State Accepted
Headers show
Series makefile: fix clean directive | expand

Commit Message

Damien Le Moal Oct. 5, 2020, 2:55 p.m. UTC
Add cleaning of compiled device tree files (.dtb files).

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)

Comments

Anup Patel Oct. 10, 2020, 5:51 a.m. UTC | #1
> -----Original Message-----
> From: Damien Le Moal <damien.lemoal@wdc.com>
> Sent: 05 October 2020 20:26
> To: opensbi@lists.infradead.org; Anup Patel <Anup.Patel@wdc.com>
> Cc: Atish Patra <Atish.Patra@wdc.com>
> Subject: [PATCH] makefile: fix clean directive
> 
> Add cleaning of compiled device tree files (.dtb files).
> 
> Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
> ---
>  Makefile | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/Makefile b/Makefile
> index cebb78e..2a352ef 100644
> --- 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
> --
> 2.26.2

Looks good to me.

Reviewed-by: Anup Patel <anup.patel@wdc.com>

Applied this patch to the riscv/opensbi repo

Thanks,
Anup
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index cebb78e..2a352ef 100644
--- 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