riscv: some build fixes
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
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
@@ -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 v2 2/3 riscv: Clean up boot dir
In reply to Kefeng WangLet'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
@@ -101,3 +101,6 @@ Image.%: Image zinstall install: $(Q)$(MAKE) $(build)=$(boot) $@ + +archclean: + $(Q)$(MAKE) $(clean)=$(boot)
arch/riscv/boot/Makefile +1 -1
@@ -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
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.
Signed-off-by Kefeng Wang <[email protected]>--- arch/riscv/Makefile | 3 +++ arch/riscv/boot/Makefile | 2 +- 2 files changed, 4 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 +1
-2@@ -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
PATCH v2 3/3 riscv: Ignore Image.* and loader.bin
In reply to Kefeng WangDo 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
@@ -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
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.
Signed-off-by Kefeng Wang <[email protected]>--- arch/riscv/boot/.gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)arch/riscv/boot/.gitignore +2
-2@@ -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
Palmer Dabbelt
maintainerQuoted 8 lines · On Tue, 03 Nov 2020 22:14:58 PST (-0800), [email protected] wrote:
V2:
-Add RB and fix comments from Atish PatraKefeng 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