riscv: Fix compressed Image formats build
authorKefeng Wang <wangkefeng.wang@huawei.com>
Wed, 4 Nov 2020 06:14:59 +0000 (14:14 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Mon, 9 Nov 2020 19:54:43 +0000 (11:54 -0800)
make[1]: *** No rule to make target `Image.lzma'.  Stop.

When make ARCH=riscv Image.lzma, it won't work, let's fix it.

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

index 0289a97..0d9ecb9 100644 (file)
@@ -96,5 +96,8 @@ $(BOOT_TARGETS): vmlinux
        $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
        @$(kecho) '  Kernel: $(boot)/$@ is ready'
 
+Image.%: Image
+       $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
+
 zinstall install:
        $(Q)$(MAKE) $(build)=$(boot) $@