Skip to contentSkip to conversation

riscv: some build fixes

PATCH In review Kefeng Wang 3 participants 7 messages Nov 4, 2020 – Nov 6, 2020 RISC-V

lore
Share & tools
lore
#0 lore raw

v2 cover riscv: some build fixes

V2:
-Add RB and fix comments from Atish Patra

Kefeng Wang (3):
riscv: Fix compressed Image formats build
riscv: Clean up boot dir
riscv: Ignore Image.* and loader.bin

 arch/riscv/Makefile        | 6 ++++++
 arch/riscv/boot/.gitignore | 3 ++-
 arch/riscv/boot/Makefile   | 2 +-
 3 files changed, 9 insertions(+), 2 deletions(-)
Signature · 7 lines
2.26.2


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

PATCH v2 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
#2 lore raw

PATCH v2 2/3 riscv: Clean up boot dir

In reply to Kefeng Wang

Let's remove all files under riscv boot dir by using archclean rule.

---
 arch/riscv/Makefile      | 3 +++
 arch/riscv/boot/Makefile | 2 +-
 2 files changed, 4 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 +1 -1
index c59fca695f9d..03404c84f971 100644
@@ -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)
Signature · 7 lines
2.26.2


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Reviewed-by on v2 2/3
#3 lore raw

Re: [PATCH v2 2/3] riscv: Clean up boot dir

Quoted 37 lines · Kefeng Wang

Let's remove all files under riscv boot dir by using archclean rule.

---
 arch/riscv/Makefile      | 3 +++
 arch/riscv/boot/Makefile | 2 +-
 2 files changed, 4 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 +1 -2
index c59fca695f9d..03404c84f971 100644
@@ -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)
--

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

PATCH v2 3/3 riscv: Ignore Image.* and loader.bin

In reply to Kefeng Wang

Do not track all compressed Image and loader.bin.

---
 arch/riscv/boot/.gitignore | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/riscv/boot/.gitignore +2 -1
index 574c10f8ff68..90e66adb7de5 100644
@@ -1,5 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-only
 Image
-Image.gz
+Image.*
 loader
 loader.lds
+loader.bin
Signature · 7 lines
2.26.2


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Reviewed-by on v2 3/3
#5 lore raw

Re: [PATCH v2 3/3] riscv: Ignore Image.* and loader.bin

Quoted 24 lines · Kefeng Wang

Do not track all compressed Image and loader.bin.

---
 arch/riscv/boot/.gitignore | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/riscv/boot/.gitignore +2 -2
index 574c10f8ff68..90e66adb7de5 100644
@@ -1,5 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-only
 Image
-Image.gz
+Image.*
 loader
 loader.lds
+loader.bin
--

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
maintainer
#6 lore raw
In reply to Kefeng Wang
Quoted 8 lines · On Tue, 03 Nov 2020 22:14:58 PST (-0800), [email protected] wrote:

V2:
-Add RB and fix comments from Atish Patra

Kefeng Wang (3):
riscv: Fix compressed Image formats build
riscv: Clean up boot dir
riscv: Ignore Image.* and loader.bin

Quoted 4 lines
 arch/riscv/Makefile        | 6 ++++++
 arch/riscv/boot/.gitignore | 3 ++-
 arch/riscv/boot/Makefile   | 2 +-
 3 files changed, 9 insertions(+), 2 deletions(-)

Thanks, these are on for-next.

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