diff mbox series

[2/3] riscv: cleaning up boot dir

Message ID 20201102040357.118400-2-wangkefeng.wang@huawei.com (mailing list archive)
State New, archived
Headers show
Series [1/3] riscv: Fix compressed Image formats build | expand

Commit Message

Kefeng Wang Nov. 2, 2020, 4:03 a.m. UTC
Let's remove all files under riscv boot dir by using archclean rule.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
 arch/riscv/Makefile      | 3 +++
 arch/riscv/boot/Makefile | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

Comments

Atish Patra Nov. 3, 2020, 3:53 p.m. UTC | #1
On Sun, Nov 1, 2020 at 7:58 PM Kefeng Wang <wangkefeng.wang@huawei.com> wrote:
>
> Let's remove all files under riscv boot dir by using archclean rule.
>
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
> ---
>  arch/riscv/Makefile      | 3 +++
>  arch/riscv/boot/Makefile | 3 ++-
>  2 files changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile
> index 0d9ecb959962..8c29e553ef7f 100644
> --- a/arch/riscv/Makefile
> +++ b/arch/riscv/Makefile
> @@ -101,3 +101,6 @@ Image.%: Image
>
>  zinstall install:
>         $(Q)$(MAKE) $(build)=$(boot) $@
> +
> +archclean:
> +       $(Q)$(MAKE) $(clean)=$(boot)
> diff --git a/arch/riscv/boot/Makefile b/arch/riscv/boot/Makefile
> index c59fca695f9d..666f08662170 100644
> --- a/arch/riscv/boot/Makefile
> +++ b/arch/riscv/boot/Makefile
> @@ -18,7 +18,8 @@ KCOV_INSTRUMENT := n
>
>  OBJCOPYFLAGS_Image :=-O binary -R .note -R .note.gnu.build-id -R .comment -S
>
> -targets := Image loader
> +targets := Image Image.bz2 Image.gz Image.lz4 Image.lzma Image.lzo \
> +          loader loader.o loader.lds loader.bin
>

Image.* should be sufficient to clean all compressed images.

>  $(obj)/Image: vmlinux FORCE
>         $(call if_changed,objcopy)
> --
> 2.26.2
>
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv

Otherwise,

Reviewed-by: Atish Patra <atish.patra@wdc.com>
Kefeng Wang Nov. 4, 2020, 3:16 a.m. UTC | #2
On 2020/11/3 23:53, Atish Patra wrote:
> On Sun, Nov 1, 2020 at 7:58 PM Kefeng Wang <wangkefeng.wang@huawei.com> wrote:
>> Let's remove all files under riscv boot dir by using archclean rule.
>>
>> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
>> ---
>>   arch/riscv/Makefile      | 3 +++
>>   arch/riscv/boot/Makefile | 3 ++-
>>   2 files changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile
>> index 0d9ecb959962..8c29e553ef7f 100644
>> --- a/arch/riscv/Makefile
>> +++ b/arch/riscv/Makefile
>> @@ -101,3 +101,6 @@ Image.%: Image
>>
>>   zinstall install:
>>          $(Q)$(MAKE) $(build)=$(boot) $@
>> +
>> +archclean:
>> +       $(Q)$(MAKE) $(clean)=$(boot)
>> diff --git a/arch/riscv/boot/Makefile b/arch/riscv/boot/Makefile
>> index c59fca695f9d..666f08662170 100644
>> --- a/arch/riscv/boot/Makefile
>> +++ b/arch/riscv/boot/Makefile
>> @@ -18,7 +18,8 @@ KCOV_INSTRUMENT := n
>>
>>   OBJCOPYFLAGS_Image :=-O binary -R .note -R .note.gnu.build-id -R .comment -S
>>
>> -targets := Image loader
>> +targets := Image Image.bz2 Image.gz Image.lz4 Image.lzma Image.lzo \
>> +          loader loader.o loader.lds loader.bin
>>
> Image.* should be sufficient to clean all compressed images.

Will change and resend, thanks.

>
>>   $(obj)/Image: vmlinux FORCE
>>          $(call if_changed,objcopy)
>> --
>> 2.26.2
>>
>>
>> _______________________________________________
>> linux-riscv mailing list
>> linux-riscv@lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/linux-riscv
> Otherwise,
>
> Reviewed-by: Atish Patra <atish.patra@wdc.com>
>
diff mbox series

Patch

diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile
index 0d9ecb959962..8c29e553ef7f 100644
--- a/arch/riscv/Makefile
+++ b/arch/riscv/Makefile
@@ -101,3 +101,6 @@  Image.%: Image
 
 zinstall install:
 	$(Q)$(MAKE) $(build)=$(boot) $@
+
+archclean:
+	$(Q)$(MAKE) $(clean)=$(boot)
diff --git a/arch/riscv/boot/Makefile b/arch/riscv/boot/Makefile
index c59fca695f9d..666f08662170 100644
--- a/arch/riscv/boot/Makefile
+++ b/arch/riscv/boot/Makefile
@@ -18,7 +18,8 @@  KCOV_INSTRUMENT := n
 
 OBJCOPYFLAGS_Image :=-O binary -R .note -R .note.gnu.build-id -R .comment -S
 
-targets := Image loader
+targets := Image Image.bz2 Image.gz Image.lz4 Image.lzma Image.lzo \
+	   loader loader.o loader.lds loader.bin
 
 $(obj)/Image: vmlinux FORCE
 	$(call if_changed,objcopy)