diff mbox series

[1/3] riscv: Fix compressed Image formats build

Message ID 20201102040357.118400-1-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
make[1]: *** No rule to make target `Image.lzma'.  Stop.

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

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

Comments

Atish Patra Nov. 3, 2020, 3:34 p.m. UTC | #1
On Sun, Nov 1, 2020 at 7:58 PM Kefeng Wang <wangkefeng.wang@huawei.com> wrote:
>
> make[1]: *** No rule to make target `Image.lzma'.  Stop.
>
> When make ARCH=riscv Image.lzma, it won't work, let's fix it.
>
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
> ---
>  arch/riscv/Makefile | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile
> index 0289a97325d1..0d9ecb959962 100644
> --- a/arch/riscv/Makefile
> +++ b/arch/riscv/Makefile
> @@ -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) $@
> --
> 2.26.2
>
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv


Reviewed-by: Atish Patra <atish.patra@wdc.com>
diff mbox series

Patch

diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile
index 0289a97325d1..0d9ecb959962 100644
--- a/arch/riscv/Makefile
+++ b/arch/riscv/Makefile
@@ -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) $@