diff mbox series

[3/4] Makefile: remove any .carray.c during clean

Message ID 20240701141101.20227-4-ben.dooks@codethink.co.uk
State Accepted
Headers show
Series Updated carray and other build improvements | expand

Commit Message

Ben Dooks July 1, 2024, 2:11 p.m. UTC
Now we've renamed the carray output files to .carray.c
we can now use find to remove them.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)

Comments

Andrew Jones July 1, 2024, 3:31 p.m. UTC | #1
On Mon, Jul 01, 2024 at 03:11:00PM GMT, Ben Dooks wrote:
> Now we've renamed the carray output files to .carray.c
> we can now use find to remove them.
> 
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
> ---
>  Makefile | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/Makefile b/Makefile
> index 2d964ec..7c43d93 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -687,6 +687,8 @@ clean:
>  	$(CMD_PREFIX)mkdir -p $(build_dir)
>  	$(if $(V), @echo " RM        $(build_dir)/*.o")
>  	$(CMD_PREFIX)find $(build_dir) -type f -name "*.o" -exec rm -rf {} +
> +	$(if $(V), @echo " RM        $(build_dir)/*.carray.c")
> +	$(CMD_PREFIX)find $(build_dir) -type f -name "*.carray.c" -exec rm -rf {} +
>  	$(if $(V), @echo " RM        $(build_dir)/*.a")
>  	$(CMD_PREFIX)find $(build_dir) -type f -name "*.a" -exec rm -rf {} +
>  	$(if $(V), @echo " RM        $(build_dir)/*.elf")
> -- 
> 2.37.2.352.g3c44437643
>

Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Ben Dooks July 2, 2024, 8:51 a.m. UTC | #2
On 01/07/2024 16:31, Andrew Jones wrote:
> On Mon, Jul 01, 2024 at 03:11:00PM GMT, Ben Dooks wrote:
>> Now we've renamed the carray output files to .carray.c
>> we can now use find to remove them.
>>
>> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
>> ---
>>   Makefile | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/Makefile b/Makefile
>> index 2d964ec..7c43d93 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -687,6 +687,8 @@ clean:
>>   	$(CMD_PREFIX)mkdir -p $(build_dir)
>>   	$(if $(V), @echo " RM        $(build_dir)/*.o")
>>   	$(CMD_PREFIX)find $(build_dir) -type f -name "*.o" -exec rm -rf {} +
>> +	$(if $(V), @echo " RM        $(build_dir)/*.carray.c")
>> +	$(CMD_PREFIX)find $(build_dir) -type f -name "*.carray.c" -exec rm -rf {} +
>>   	$(if $(V), @echo " RM        $(build_dir)/*.a")
>>   	$(CMD_PREFIX)find $(build_dir) -type f -name "*.a" -exec rm -rf {} +
>>   	$(if $(V), @echo " RM        $(build_dir)/*.elf")
>> -- 
>> 2.37.2.352.g3c44437643
>>
> 
> Reviewed-by: Andrew Jones <ajones@ventanamicro.com>

Thanks, given the minor typo fix and adding reviewed-by, shall I sort
those and issue a pull request against opensbi github?
Anup Patel July 4, 2024, 5:50 a.m. UTC | #3
On Mon, Jul 1, 2024 at 7:57 PM Ben Dooks <ben.dooks@codethink.co.uk> wrote:
>
> Now we've renamed the carray output files to .carray.c
> we can now use find to remove them.
>
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>

LGTM.

Reviewed-by: Anup Patel <anup@brainfault.org>

Applied this patch to the riscv/opensbi repo.

Thanks,
Anup

> ---
>  Makefile | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/Makefile b/Makefile
> index 2d964ec..7c43d93 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -687,6 +687,8 @@ clean:
>         $(CMD_PREFIX)mkdir -p $(build_dir)
>         $(if $(V), @echo " RM        $(build_dir)/*.o")
>         $(CMD_PREFIX)find $(build_dir) -type f -name "*.o" -exec rm -rf {} +
> +       $(if $(V), @echo " RM        $(build_dir)/*.carray.c")
> +       $(CMD_PREFIX)find $(build_dir) -type f -name "*.carray.c" -exec rm -rf {} +
>         $(if $(V), @echo " RM        $(build_dir)/*.a")
>         $(CMD_PREFIX)find $(build_dir) -type f -name "*.a" -exec rm -rf {} +
>         $(if $(V), @echo " RM        $(build_dir)/*.elf")
> --
> 2.37.2.352.g3c44437643
>
>
> --
> opensbi mailing list
> opensbi@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 2d964ec..7c43d93 100644
--- a/Makefile
+++ b/Makefile
@@ -687,6 +687,8 @@  clean:
 	$(CMD_PREFIX)mkdir -p $(build_dir)
 	$(if $(V), @echo " RM        $(build_dir)/*.o")
 	$(CMD_PREFIX)find $(build_dir) -type f -name "*.o" -exec rm -rf {} +
+	$(if $(V), @echo " RM        $(build_dir)/*.carray.c")
+	$(CMD_PREFIX)find $(build_dir) -type f -name "*.carray.c" -exec rm -rf {} +
 	$(if $(V), @echo " RM        $(build_dir)/*.a")
 	$(CMD_PREFIX)find $(build_dir) -type f -name "*.a" -exec rm -rf {} +
 	$(if $(V), @echo " RM        $(build_dir)/*.elf")