All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] riscv: some build fixes
@ 2020-11-04  6:14 Kefeng Wang
  2020-11-04  6:14 ` [PATCH v2 1/3] riscv: Fix compressed Image formats build Kefeng Wang
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Kefeng Wang @ 2020-11-04  6:14 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou, linux-riscv
  Cc: Atish Patra, Kefeng Wang

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(-)

-- 
2.26.2


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2 1/3] riscv: Fix compressed Image formats build
  2020-11-04  6:14 [PATCH v2 0/3] riscv: some build fixes Kefeng Wang
@ 2020-11-04  6:14 ` Kefeng Wang
  2020-11-04  6:15 ` [PATCH v2 2/3] riscv: Clean up boot dir Kefeng Wang
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Kefeng Wang @ 2020-11-04  6:14 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou, linux-riscv
  Cc: Atish Patra, 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.

Reviewed-by: Atish Patra <atish.patra@wdc.com>
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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 2/3] riscv: Clean up boot dir
  2020-11-04  6:14 [PATCH v2 0/3] riscv: some build fixes Kefeng Wang
  2020-11-04  6:14 ` [PATCH v2 1/3] riscv: Fix compressed Image formats build Kefeng Wang
@ 2020-11-04  6:15 ` Kefeng Wang
  2020-11-04 17:34   ` Atish Patra
  2020-11-04  6:15 ` [PATCH v2 3/3] riscv: Ignore Image.* and loader.bin Kefeng Wang
  2020-11-06  7:34 ` [PATCH v2 0/3] riscv: some build fixes Palmer Dabbelt
  3 siblings, 1 reply; 7+ messages in thread
From: Kefeng Wang @ 2020-11-04  6:15 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou, linux-riscv
  Cc: Atish Patra, Kefeng Wang

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

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

diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile
index 0d9ecb959962..8c29e553ef7f 100644
--- a/arch/riscv/Makefile
+++ b/arch/riscv/Makefile
@@ -101,3 +101,6 @@ Image.%: Image
 
 zinstall install:
 	$(Q)$(MAKE) $(build)=$(boot) $@
+
+archclean:
+	$(Q)$(MAKE) $(clean)=$(boot)
diff --git a/arch/riscv/boot/Makefile b/arch/riscv/boot/Makefile
index c59fca695f9d..03404c84f971 100644
--- a/arch/riscv/boot/Makefile
+++ b/arch/riscv/boot/Makefile
@@ -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


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 3/3] riscv: Ignore Image.* and loader.bin
  2020-11-04  6:14 [PATCH v2 0/3] riscv: some build fixes Kefeng Wang
  2020-11-04  6:14 ` [PATCH v2 1/3] riscv: Fix compressed Image formats build Kefeng Wang
  2020-11-04  6:15 ` [PATCH v2 2/3] riscv: Clean up boot dir Kefeng Wang
@ 2020-11-04  6:15 ` Kefeng Wang
  2020-11-04 17:34   ` Atish Patra
  2020-11-06  7:34 ` [PATCH v2 0/3] riscv: some build fixes Palmer Dabbelt
  3 siblings, 1 reply; 7+ messages in thread
From: Kefeng Wang @ 2020-11-04  6:15 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou, linux-riscv
  Cc: Atish Patra, Kefeng Wang

Do not track all compressed Image and loader.bin.

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

diff --git a/arch/riscv/boot/.gitignore b/arch/riscv/boot/.gitignore
index 574c10f8ff68..90e66adb7de5 100644
--- a/arch/riscv/boot/.gitignore
+++ b/arch/riscv/boot/.gitignore
@@ -1,5 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-only
 Image
-Image.gz
+Image.*
 loader
 loader.lds
+loader.bin
-- 
2.26.2


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 2/3] riscv: Clean up boot dir
  2020-11-04  6:15 ` [PATCH v2 2/3] riscv: Clean up boot dir Kefeng Wang
@ 2020-11-04 17:34   ` Atish Patra
  0 siblings, 0 replies; 7+ messages in thread
From: Atish Patra @ 2020-11-04 17:34 UTC (permalink / raw)
  To: Kefeng Wang
  Cc: Atish Patra, linux-riscv, Albert Ou, Palmer Dabbelt, Paul Walmsley

On Tue, Nov 3, 2020 at 10:10 PM Kefeng Wang <wangkefeng.wang@huawei.com> wrote:
>
> Let's remove all files under riscv boot dir by using archclean rule.
>
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
> ---
>  arch/riscv/Makefile      | 3 +++
>  arch/riscv/boot/Makefile | 2 +-
>  2 files changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile
> index 0d9ecb959962..8c29e553ef7f 100644
> --- a/arch/riscv/Makefile
> +++ b/arch/riscv/Makefile
> @@ -101,3 +101,6 @@ Image.%: Image
>
>  zinstall install:
>         $(Q)$(MAKE) $(build)=$(boot) $@
> +
> +archclean:
> +       $(Q)$(MAKE) $(clean)=$(boot)
> diff --git a/arch/riscv/boot/Makefile b/arch/riscv/boot/Makefile
> index c59fca695f9d..03404c84f971 100644
> --- a/arch/riscv/boot/Makefile
> +++ b/arch/riscv/boot/Makefile
> @@ -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
>
>
> _______________________________________________
> 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>

-- 
Regards,
Atish

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 3/3] riscv: Ignore Image.* and loader.bin
  2020-11-04  6:15 ` [PATCH v2 3/3] riscv: Ignore Image.* and loader.bin Kefeng Wang
@ 2020-11-04 17:34   ` Atish Patra
  0 siblings, 0 replies; 7+ messages in thread
From: Atish Patra @ 2020-11-04 17:34 UTC (permalink / raw)
  To: Kefeng Wang
  Cc: Atish Patra, linux-riscv, Albert Ou, Palmer Dabbelt, Paul Walmsley

On Tue, Nov 3, 2020 at 10:10 PM Kefeng Wang <wangkefeng.wang@huawei.com> wrote:
>
> Do not track all compressed Image and loader.bin.
>
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
> ---
>  arch/riscv/boot/.gitignore | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/riscv/boot/.gitignore b/arch/riscv/boot/.gitignore
> index 574c10f8ff68..90e66adb7de5 100644
> --- a/arch/riscv/boot/.gitignore
> +++ b/arch/riscv/boot/.gitignore
> @@ -1,5 +1,6 @@
>  # SPDX-License-Identifier: GPL-2.0-only
>  Image
> -Image.gz
> +Image.*
>  loader
>  loader.lds
> +loader.bin
> --
> 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>

-- 
Regards,
Atish

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 0/3] riscv: some build fixes
  2020-11-04  6:14 [PATCH v2 0/3] riscv: some build fixes Kefeng Wang
                   ` (2 preceding siblings ...)
  2020-11-04  6:15 ` [PATCH v2 3/3] riscv: Ignore Image.* and loader.bin Kefeng Wang
@ 2020-11-06  7:34 ` Palmer Dabbelt
  3 siblings, 0 replies; 7+ messages in thread
From: Palmer Dabbelt @ 2020-11-06  7:34 UTC (permalink / raw)
  To: wangkefeng.wang
  Cc: Atish Patra, linux-riscv, aou, wangkefeng.wang, Paul Walmsley

On Tue, 03 Nov 2020 22:14:58 PST (-0800), wangkefeng.wang@huawei.com 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
>
>  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
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-11-06  7:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-04  6:14 [PATCH v2 0/3] riscv: some build fixes Kefeng Wang
2020-11-04  6:14 ` [PATCH v2 1/3] riscv: Fix compressed Image formats build Kefeng Wang
2020-11-04  6:15 ` [PATCH v2 2/3] riscv: Clean up boot dir Kefeng Wang
2020-11-04 17:34   ` Atish Patra
2020-11-04  6:15 ` [PATCH v2 3/3] riscv: Ignore Image.* and loader.bin Kefeng Wang
2020-11-04 17:34   ` Atish Patra
2020-11-06  7:34 ` [PATCH v2 0/3] riscv: some build fixes Palmer Dabbelt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.