riscv: Fix compressed Image formats build
PATCH 1/3 riscv: Fix compressed Image formats build
make[1]: *** No rule to make target `Image.lzma'. Stop.
When make ARCH=riscv Image.lzma, it won't work, let's fix it.
--- arch/riscv/Makefile | 3 +++ 1 file changed, 3 insertions(+)
arch/riscv/Makefile +3 -0
@@ -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) $@
Signature · 7 lines
2.26.2 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
PATCH 2/3 riscv: cleaning up boot dir
Let's remove all files under riscv boot dir by using archclean rule.
--- arch/riscv/Makefile | 3 +++ arch/riscv/boot/Makefile | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-)
arch/riscv/Makefile +3 -0
@@ -101,3 +101,6 @@ Image.%: Image zinstall install: $(Q)$(MAKE) $(build)=$(boot) $@ + +archclean: + $(Q)$(MAKE) $(clean)=$(boot)
arch/riscv/boot/Makefile +2 -1
@@ -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)
Signature · 7 lines
2.26.2 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
Re: [PATCH 2/3] riscv: cleaning up boot dir
Quoted 25 lines · Kefeng Wang
Let's remove all files under riscv boot dir by using archclean rule.
Signed-off-by Kefeng Wang <[email protected]>--- arch/riscv/Makefile | 3 +++ arch/riscv/boot/Makefile | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-)arch/riscv/Makefile +3
-0@@ -101,3 +101,6 @@ Image.%: Image zinstall install: $(Q)$(MAKE) $(build)=$(boot) $@ + +archclean: + $(Q)$(MAKE) $(clean)=$(boot)arch/riscv/boot/Makefile +0
-0
arch/riscv/boot/Makefile KCOV_INSTRUMENT := n · line 23
Quoted 7 lines
arch/riscv/boot/Makefile +2
-1@@ -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.
Quoted 10 lines
arch/riscv/boot/Makefile +0
-1$(obj)/Image: vmlinux FORCE $(call if_changed,objcopy) --2.26.2
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Otherwise,
Signature · 7 lines
Regards, Atish _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
Re: [PATCH 2/3] riscv: cleaning up boot dir
Quoted 26 lines · Atish Patra
Quoted 25 lines · Kefeng Wang
Let's remove all files under riscv boot dir by using archclean rule.
Signed-off-by Kefeng Wang <[email protected]>--- arch/riscv/Makefile | 3 +++ arch/riscv/boot/Makefile | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-)arch/riscv/Makefile +3
-0@@ -101,3 +101,6 @@ Image.%: Image zinstall install: $(Q)$(MAKE) $(build)=$(boot) $@ + +archclean: + $(Q)$(MAKE) $(clean)=$(boot)arch/riscv/boot/Makefile +0
-0@@ -18,7 +18,8 @@ KCOV_INSTRUMENT := n
Quoted 7 lines
arch/riscv/boot/Makefile KCOV_INSTRUMENT := n · line 23
Quoted 6 lines
arch/riscv/boot/Makefile +2
-1OBJCOPYFLAGS_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.binImage.* should be sufficient to clean all compressed images.
Will change and resend, thanks.
Quoted 7 lines
Quoted 7 lines
arch/riscv/boot/Makefile +0
-1$(obj)/Image: vmlinux FORCE $(call if_changed,objcopy) --2.26.2
Quoted 8 lines
Quoted 4 lines
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscvOtherwise,
Reviewed-by Atish Patra <[email protected]>
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
PATCH 3/3 riscv: Ignore all compressed Image formats
In reply to Kefeng WangDo not track all compressed Image formats.
--- arch/riscv/boot/.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/boot/.gitignore +1 -1
@@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only Image -Image.gz +Image.* loader loader.lds
Signature · 7 lines
2.26.2 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
Re: [PATCH 3/3] riscv: Ignore all compressed Image formats
Quoted 1 line · Kefeng Wang
Do not track all compressed Image formats.
should add all loader.* too, eg loader.bin, will resend after all patches reviewed.
Quoted 11 lines
Signed-off-by Kefeng Wang <[email protected]>--- arch/riscv/boot/.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/riscv/boot/.gitignore +0
-0
arch/riscv/boot/.gitignore line 5
Quoted 6 lines
arch/riscv/boot/.gitignore +1
-1@@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only Image -Image.gz +Image.* loader loader.lds
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Re: [PATCH 3/3] riscv: Ignore all compressed Image formats
Quoted 7 lines · Kefeng Wang
Quoted 1 line · Kefeng Wang
Do not track all compressed Image formats.
should add all loader.* too, eg loader.bin, will resend after all patches reviewed.
Quoted 1 line
But not loader.S & loader.lds.S
Quoted 21 lines
Quoted 10 lines
Signed-off-by Kefeng Wang <[email protected]>--- arch/riscv/boot/.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/riscv/boot/.gitignore +0
-0arch/riscv/boot/.gitignore line 5
Quoted 6 lines
arch/riscv/boot/.gitignore +1
-1@@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only Image -Image.gz +Image.* loader loader.lds_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Signature · 7 lines
Regards, Atish _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
Re: [PATCH 3/3] riscv: Ignore all compressed Image formats
Quoted 7 lines · Atish Patra
Quoted 5 lines · Kefeng Wang
Quoted 1 line · Kefeng Wang
Do not track all compressed Image formats.
should add all loader.* too, eg loader.bin, will resend after all patches reviewed.
But not
loader.S&loader.lds.S
Yes, only add loader.bin, will send v2, thanks
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Signed-off-by Kefeng Wang <[email protected]>--- arch/riscv/boot/.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 17 lines
Quoted 7 lines
Quoted 7 lines
arch/riscv/boot/.gitignore +0
-0@@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only ImageQuoted 8 lines
arch/riscv/boot/.gitignore line 5
Quoted 4 lines
arch/riscv/boot/.gitignore +1
-1-Image.gz +Image.* loader loader.lds_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Quoted 27 lines · Kefeng Wang
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 <[email protected]>--- arch/riscv/Makefile | 3 +++ 1 file changed, 3 insertions(+)arch/riscv/Makefile +3
-1@@ -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
Quoted 4 lines
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Signature · 7 lines
Regards, Atish _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv