riscv: Clean up boot dir
authorKefeng Wang <wangkefeng.wang@huawei.com>
Wed, 4 Nov 2020 06:15:00 +0000 (14:15 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Mon, 9 Nov 2020 19:54:45 +0000 (11:54 -0800)
Let's remove all files under riscv boot dir by using archclean rule.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Makefile
arch/riscv/boot/Makefile

index 0d9ecb9..8c29e55 100644 (file)
@@ -101,3 +101,6 @@ Image.%: Image
 
 zinstall install:
        $(Q)$(MAKE) $(build)=$(boot) $@
+
+archclean:
+       $(Q)$(MAKE) $(clean)=$(boot)
index c59fca6..03404c8 100644 (file)
@@ -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)