Skip to contentSkip to conversation

riscv: Fix compressed Image formats build

PATCH Superseded Kefeng Wang 2 participants 9 messages Nov 2, 2020 – Nov 4, 2020 RISC-V

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
index 0289a97325d1..0d9ecb959962 100644
@@ -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
#1 lore raw

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
index 0d9ecb959962..8c29e553ef7f 100644
@@ -101,3 +101,6 @@ Image.%: Image
 
 zinstall install:
 	$(Q)$(MAKE) $(build)=$(boot) $@
+
+archclean:
+	$(Q)$(MAKE) $(clean)=$(boot)
arch/riscv/boot/Makefile +2 -1
index c59fca695f9d..666f08662170 100644
@@ -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
Reviewed-by on v1 2/3
#2 lore raw

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.

---
 arch/riscv/Makefile      | 3 +++
 arch/riscv/boot/Makefile | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)
arch/riscv/Makefile +3 -0
index 0d9ecb959962..8c29e553ef7f 100644
@@ -101,3 +101,6 @@ Image.%: Image
 
 zinstall install:
        $(Q)$(MAKE) $(build)=$(boot) $@
+
+archclean:
+       $(Q)$(MAKE) $(clean)=$(boot)
arch/riscv/boot/Makefile +0 -0
index c59fca695f9d..666f08662170 100644

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
#3 lore raw

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.

---
  arch/riscv/Makefile      | 3 +++
  arch/riscv/boot/Makefile | 3 ++-
  2 files changed, 5 insertions(+), 1 deletion(-)
arch/riscv/Makefile +3 -0
index 0d9ecb959962..8c29e553ef7f 100644
@@ -101,3 +101,6 @@ Image.%: Image
 
  zinstall install:
         $(Q)$(MAKE) $(build)=$(boot) $@
+
+archclean:
+       $(Q)$(MAKE) $(clean)=$(boot)
arch/riscv/boot/Makefile +0 -0
index c59fca695f9d..666f08662170 100644
@@ -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 -1
  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.

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-riscv

Otherwise,

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

#4 lore raw

PATCH 3/3 riscv: Ignore all compressed Image formats

In reply to Kefeng Wang

Do not track all compressed Image formats.

---
 arch/riscv/boot/.gitignore | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/boot/.gitignore +1 -1
index 574c10f8ff68..2a31a61ca382 100644
@@ -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
#5 lore raw

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
---
  arch/riscv/boot/.gitignore | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/boot/.gitignore +0 -0
index 574c10f8ff68..2a31a61ca382 100644

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

#6 lore raw

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
---
  arch/riscv/boot/.gitignore | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/boot/.gitignore +0 -0
index 574c10f8ff68..2a31a61ca382 100644

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

Signature · 7 lines
Regards,
Atish

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
#7 lore raw

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
---
   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
index 574c10f8ff68..2a31a61ca382 100644
@@ -1,5 +1,5 @@
   # SPDX-License-Identifier: GPL-2.0-only
   Image
Quoted 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

Reviewed-by on v1 1/3
#8 lore raw
In reply to Kefeng Wang
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.

---
 arch/riscv/Makefile | 3 +++
 1 file changed, 3 insertions(+)
arch/riscv/Makefile +3 -1
index 0289a97325d1..0d9ecb959962 100644
@@ -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