[PATCH v2 2/3] riscv: Clean up boot dir

Atish Patra atishp at atishpatra.org
Wed Nov 4 12:34:03 EST 2020


On Tue, Nov 3, 2020 at 10:10 PM Kefeng Wang <wangkefeng.wang at huawei.com> wrote:
>
> Let's remove all files under riscv boot dir by using archclean rule.
>
> Signed-off-by: Kefeng Wang <wangkefeng.wang at huawei.com>
> ---
>  arch/riscv/Makefile      | 3 +++
>  arch/riscv/boot/Makefile | 2 +-
>  2 files changed, 4 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..03404c84f971 100644
> --- a/arch/riscv/boot/Makefile
> +++ b/arch/riscv/boot/Makefile
> @@ -18,7 +18,7 @@ KCOV_INSTRUMENT := n
>
>  OBJCOPYFLAGS_Image :=-O binary -R .note -R .note.gnu.build-id -R .comment -S
>
> -targets := Image loader
> +targets := Image Image.* loader loader.o loader.lds loader.bin
>
>  $(obj)/Image: vmlinux FORCE
>         $(call if_changed,objcopy)
> --
> 2.26.2
>
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv


Reviewed-by: Atish Patra <atish.patra at wdc.com>

-- 
Regards,
Atish



More information about the linux-riscv mailing list