linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the riscv-dt tree with the risc-v tree
@ 2024-04-10 23:49 Stephen Rothwell
  2024-04-11 20:16 ` Palmer Dabbelt
  2024-04-12  1:49 ` Yangyu Chen
  0 siblings, 2 replies; 3+ messages in thread
From: Stephen Rothwell @ 2024-04-10 23:49 UTC (permalink / raw)
  To: Conor Dooley, Palmer Dabbelt, Paul Walmsley
  Cc: Linux Kernel Mailing List, Linux Next Mailing List,
	Masahiro Yamada, Palmer Dabbelt, Yangyu Chen

[-- Attachment #1: Type: text/plain, Size: 1347 bytes --]

Hi all,

Today's linux-next merge of the riscv-dt tree got a conflict in:

  arch/riscv/Makefile

between commit:

  3b938e231b66 ("riscv: merge two if-blocks for KBUILD_IMAGE")

from the risc-v tree and commit:

  ef10bdf9c3e6 ("riscv: Kconfig.socs: Split ARCH_CANAAN and SOC_CANAAN_K210")

from the riscv-dt tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc arch/riscv/Makefile
index 7c60bbe1f785,fa6c389c3986..000000000000
--- a/arch/riscv/Makefile
+++ b/arch/riscv/Makefile
@@@ -143,15 -133,7 +143,15 @@@ boot		:= arch/riscv/boo
  ifeq ($(CONFIG_XIP_KERNEL),y)
  KBUILD_IMAGE := $(boot)/xipImage
  else
- ifeq ($(CONFIG_RISCV_M_MODE)$(CONFIG_ARCH_CANAAN),yy)
++ifeq ($(CONFIG_RISCV_M_MODE)$(CONFIG_SOC_CANAAN_K210),yy)
 +KBUILD_IMAGE := $(boot)/loader.bin
 +else
 +ifeq ($(CONFIG_EFI_ZBOOT),)
  KBUILD_IMAGE	:= $(boot)/Image.gz
 +else
 +KBUILD_IMAGE := $(boot)/vmlinuz.efi
 +endif
 +endif
  endif
  
  libs-y += arch/riscv/lib/

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: linux-next: manual merge of the riscv-dt tree with the risc-v tree
  2024-04-10 23:49 linux-next: manual merge of the riscv-dt tree with the risc-v tree Stephen Rothwell
@ 2024-04-11 20:16 ` Palmer Dabbelt
  2024-04-12  1:49 ` Yangyu Chen
  1 sibling, 0 replies; 3+ messages in thread
From: Palmer Dabbelt @ 2024-04-11 20:16 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Conor Dooley, Paul Walmsley, linux-kernel, linux-next, masahiroy, cyy

On Wed, 10 Apr 2024 16:49:01 PDT (-0700), Stephen Rothwell wrote:
> Hi all,
>
> Today's linux-next merge of the riscv-dt tree got a conflict in:
>
>   arch/riscv/Makefile
>
> between commit:
>
>   3b938e231b66 ("riscv: merge two if-blocks for KBUILD_IMAGE")
>
> from the risc-v tree and commit:
>
>   ef10bdf9c3e6 ("riscv: Kconfig.socs: Split ARCH_CANAAN and SOC_CANAAN_K210")
>
> from the riscv-dt tree.
>
> I fixed it up (see below) and can carry the fix as necessary. This
> is now fixed as far as linux-next is concerned, but any non trivial
> conflicts should be mentioned to your upstream maintainer when your tree
> is submitted for merging.  You may also want to consider cooperating
> with the maintainer of the conflicting tree to minimise any particularly
> complex conflicts.
>
> -- 
> Cheers,
> Stephen Rothwell
>
> diff --cc arch/riscv/Makefile
> index 7c60bbe1f785,fa6c389c3986..000000000000
> --- a/arch/riscv/Makefile
> +++ b/arch/riscv/Makefile
> @@@ -143,15 -133,7 +143,15 @@@ boot		:= arch/riscv/boo
>   ifeq ($(CONFIG_XIP_KERNEL),y)
>   KBUILD_IMAGE := $(boot)/xipImage
>   else
> - ifeq ($(CONFIG_RISCV_M_MODE)$(CONFIG_ARCH_CANAAN),yy)
> ++ifeq ($(CONFIG_RISCV_M_MODE)$(CONFIG_SOC_CANAAN_K210),yy)
>  +KBUILD_IMAGE := $(boot)/loader.bin
>  +else
>  +ifeq ($(CONFIG_EFI_ZBOOT),)
>   KBUILD_IMAGE	:= $(boot)/Image.gz
>  +else
>  +KBUILD_IMAGE := $(boot)/vmlinuz.efi
>  +endif
>  +endif
>   endif
>   
>   libs-y += arch/riscv/lib/

Thanks.  I guess I should have looked a bit closer before Acking, but 
I'm not sure this one warrants a shared tag or anything -- it's just 
some Makefile refactoring that happens to step on each other.

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

* Re: linux-next: manual merge of the riscv-dt tree with the risc-v tree
  2024-04-10 23:49 linux-next: manual merge of the riscv-dt tree with the risc-v tree Stephen Rothwell
  2024-04-11 20:16 ` Palmer Dabbelt
@ 2024-04-12  1:49 ` Yangyu Chen
  1 sibling, 0 replies; 3+ messages in thread
From: Yangyu Chen @ 2024-04-12  1:49 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Conor Dooley, Palmer Dabbelt, Paul Walmsley,
	Linux Kernel Mailing List, Linux Next Mailing List,
	Masahiro Yamada, Palmer Dabbelt



> On Apr 11, 2024, at 07:49, Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> 
> Hi all,
> 
> Today's linux-next merge of the riscv-dt tree got a conflict in:
> 
>  arch/riscv/Makefile
> 
> between commit:
> 
>  3b938e231b66 ("riscv: merge two if-blocks for KBUILD_IMAGE")
> 
> from the risc-v tree and commit:
> 
>  ef10bdf9c3e6 ("riscv: Kconfig.socs: Split ARCH_CANAAN and SOC_CANAAN_K210")
> 

I am the author of this commit. I just renamed CONFIG_ARCH_CANAAN to
CONFIG_SOC_CANAAN_K210 in arch/riscv/Makefile.

> from the riscv-dt tree.
> 
> I fixed it up (see below) and can carry the fix as necessary. This
> is now fixed as far as linux-next is concerned, but any non trivial
> conflicts should be mentioned to your upstream maintainer when your tree
> is submitted for merging.  You may also want to consider cooperating
> with the maintainer of the conflicting tree to minimise any particularly
> complex conflicts.
> 
> -- 
> Cheers,
> Stephen Rothwell
> 
> diff --cc arch/riscv/Makefile
> index 7c60bbe1f785,fa6c389c3986..000000000000
> --- a/arch/riscv/Makefile
> +++ b/arch/riscv/Makefile
> @@@ -143,15 -133,7 +143,15 @@@ boot := arch/riscv/boo
>  ifeq ($(CONFIG_XIP_KERNEL),y)
>  KBUILD_IMAGE := $(boot)/xipImage
>  else
> - ifeq ($(CONFIG_RISCV_M_MODE)$(CONFIG_ARCH_CANAAN),yy)
> ++ifeq ($(CONFIG_RISCV_M_MODE)$(CONFIG_SOC_CANAAN_K210),yy)

I reviewed commit 3b938e231b66 ("riscv: merge two if-blocks for
KBUILD_IMAGE"). Your change only replaces the ARCH_CANAAN symbol with
SOC_CANAAN_K210 here. My intention for ef10bdf9c3e6 ("riscv: Kconfig.socs:
Split ARCH_CANAAN and SOC_CANAAN_K210") is to use loader.bin only for
Canaan K210 SoC but not for other Canaan SoCs. So I think that's the right
way to resolve merge conflict.

Reviewed-by: Yangyu Chen <cyy@cyyself.name>

> +KBUILD_IMAGE := $(boot)/loader.bin
> +else
> +ifeq ($(CONFIG_EFI_ZBOOT),)
>  KBUILD_IMAGE := $(boot)/Image.gz
> +else
> +KBUILD_IMAGE := $(boot)/vmlinuz.efi
> +endif
> +endif
>  endif
> 
>  libs-y += arch/riscv/lib/


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

end of thread, other threads:[~2024-04-12  1:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-10 23:49 linux-next: manual merge of the riscv-dt tree with the risc-v tree Stephen Rothwell
2024-04-11 20:16 ` Palmer Dabbelt
2024-04-12  1:49 ` Yangyu Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).