public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] riscv: use imply instead of select for SPL_SEPARATE_BSS
@ 2022-11-16  7:08 Zong Li
       [not found] ` <HK0PR03MB29946F9492FAEDED0C5ADFBEC10A9@HK0PR03MB2994.apcprd03.prod.outlook.com>
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Zong Li @ 2022-11-16  7:08 UTC (permalink / raw)
  To: sjg, michal.simek, sean.anderson, ycliang, rick, u-boot; +Cc: Zong Li

Use imply instead of select, then it can still be disabled by
board-specific defconfig, or be set to n manually.

Signed-off-by: Zong Li <zong.li@sifive.com>
---
 arch/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/Kconfig b/arch/Kconfig
index ae39716697..102956d24c 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -111,7 +111,7 @@ config RISCV
 	select SUPPORT_OF_CONTROL
 	select OF_CONTROL
 	select DM
-	select SPL_SEPARATE_BSS if SPL
+	imply SPL_SEPARATE_BSS if SPL
 	imply DM_SERIAL
 	imply DM_ETH
 	imply DM_EVENT
-- 
2.17.1


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

* Re: [PATCH] riscv: use imply instead of select for SPL_SEPARATE_BSS
       [not found] ` <HK0PR03MB29946F9492FAEDED0C5ADFBEC10A9@HK0PR03MB2994.apcprd03.prod.outlook.com>
@ 2022-11-21  0:45   ` Rick Chen
  0 siblings, 0 replies; 7+ messages in thread
From: Rick Chen @ 2022-11-21  0:45 UTC (permalink / raw)
  To: Zong Li
  Cc: U-Boot Mailing List, Simon Glass, michal.simek, sean.anderson,
	Leo Liang, rick

> From: Zong Li <zong.li@sifive.com>
> Sent: Wednesday, November 16, 2022 3:09 PM
> To: sjg@chromium.org; michal.simek@amd.com; sean.anderson@seco.com; Leo Yu-Chi Liang(梁育齊) <ycliang@andestech.com>; Rick Jian-Zhi Chen(陳建志) <rick@andestech.com>; u-boot@lists.denx.de
> Cc: Zong Li <zong.li@sifive.com>
> Subject: [PATCH] riscv: use imply instead of select for SPL_SEPARATE_BSS
>
> Use imply instead of select, then it can still be disabled by board-specific defconfig, or be set to n manually.
>
> Signed-off-by: Zong Li <zong.li@sifive.com>
> ---
>  arch/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Rick Chen <rick@andestech.com>

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

* Re: [PATCH] riscv: use imply instead of select for SPL_SEPARATE_BSS
  2022-11-16  7:08 [PATCH] riscv: use imply instead of select for SPL_SEPARATE_BSS Zong Li
       [not found] ` <HK0PR03MB29946F9492FAEDED0C5ADFBEC10A9@HK0PR03MB2994.apcprd03.prod.outlook.com>
@ 2022-11-21  1:25 ` Bin Meng
  2022-11-21  4:00 ` Sean Anderson
  2 siblings, 0 replies; 7+ messages in thread
From: Bin Meng @ 2022-11-21  1:25 UTC (permalink / raw)
  To: Zong Li; +Cc: sjg, michal.simek, sean.anderson, ycliang, rick, u-boot

On Wed, Nov 16, 2022 at 3:09 PM Zong Li <zong.li@sifive.com> wrote:
>
> Use imply instead of select, then it can still be disabled by
> board-specific defconfig, or be set to n manually.
>
> Signed-off-by: Zong Li <zong.li@sifive.com>
> ---
>  arch/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Bin Meng <bmeng@tinylab.org>

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

* Re: [PATCH] riscv: use imply instead of select for SPL_SEPARATE_BSS
  2022-11-16  7:08 [PATCH] riscv: use imply instead of select for SPL_SEPARATE_BSS Zong Li
       [not found] ` <HK0PR03MB29946F9492FAEDED0C5ADFBEC10A9@HK0PR03MB2994.apcprd03.prod.outlook.com>
  2022-11-21  1:25 ` Bin Meng
@ 2022-11-21  4:00 ` Sean Anderson
  2022-11-21 12:17   ` Zong Li
  2 siblings, 1 reply; 7+ messages in thread
From: Sean Anderson @ 2022-11-21  4:00 UTC (permalink / raw)
  To: Zong Li, sjg, michal.simek, sean.anderson, ycliang, rick, u-boot

On 11/16/22 02:08, Zong Li wrote:
> Use imply instead of select, then it can still be disabled by
> board-specific defconfig, or be set to n manually.
> 
> Signed-off-by: Zong Li <zong.li@sifive.com>
> ---
>   arch/Kconfig | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/Kconfig b/arch/Kconfig
> index ae39716697..102956d24c 100644
> --- a/arch/Kconfig
> +++ b/arch/Kconfig
> @@ -111,7 +111,7 @@ config RISCV
>   	select SUPPORT_OF_CONTROL
>   	select OF_CONTROL
>   	select DM
> -	select SPL_SEPARATE_BSS if SPL
> +	imply SPL_SEPARATE_BSS if SPL
>   	imply DM_SERIAL
>   	imply DM_ETH
>   	imply DM_EVENT

Do you have an example of a board which does this?

--Sean

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

* Re: [PATCH] riscv: use imply instead of select for SPL_SEPARATE_BSS
  2022-11-21  4:00 ` Sean Anderson
@ 2022-11-21 12:17   ` Zong Li
  2022-11-29  2:01     ` Zong Li
  0 siblings, 1 reply; 7+ messages in thread
From: Zong Li @ 2022-11-21 12:17 UTC (permalink / raw)
  To: Sean Anderson; +Cc: sjg, michal.simek, sean.anderson, ycliang, rick, u-boot

On Mon, Nov 21, 2022 at 12:00 PM Sean Anderson <seanga2@gmail.com> wrote:
>
> On 11/16/22 02:08, Zong Li wrote:
> > Use imply instead of select, then it can still be disabled by
> > board-specific defconfig, or be set to n manually.
> >
> > Signed-off-by: Zong Li <zong.li@sifive.com>
> > ---
> >   arch/Kconfig | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/arch/Kconfig b/arch/Kconfig
> > index ae39716697..102956d24c 100644
> > --- a/arch/Kconfig
> > +++ b/arch/Kconfig
> > @@ -111,7 +111,7 @@ config RISCV
> >       select SUPPORT_OF_CONTROL
> >       select OF_CONTROL
> >       select DM
> > -     select SPL_SEPARATE_BSS if SPL
> > +     imply SPL_SEPARATE_BSS if SPL
> >       imply DM_SERIAL
> >       imply DM_ETH
> >       imply DM_EVENT
>
> Do you have an example of a board which does this?
>

Hi Sean,
We'd like to disable 'SPL_SEPARATE_BSS' on our internal platforms that
don't exist in the mainline. It seems to me that using 'imply' might
be not only working on the mainline's board, but also making it
flexible to disable 'SPL_SEPARATE_BSS' by board-specific configuration
or disable it manually for debug purposes. Hope the idea is good to
you all. Thanks

> --Sean

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

* Re: [PATCH] riscv: use imply instead of select for SPL_SEPARATE_BSS
  2022-11-21 12:17   ` Zong Li
@ 2022-11-29  2:01     ` Zong Li
       [not found]       ` <HK0PR03MB29945B8BF7616EF09352B019C1159@HK0PR03MB2994.apcprd03.prod.outlook.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Zong Li @ 2022-11-29  2:01 UTC (permalink / raw)
  To: Sean Anderson; +Cc: sjg, michal.simek, sean.anderson, ycliang, rick, u-boot

On Mon, Nov 21, 2022 at 8:17 PM Zong Li <zong.li@sifive.com> wrote:
>
> On Mon, Nov 21, 2022 at 12:00 PM Sean Anderson <seanga2@gmail.com> wrote:
> >
> > On 11/16/22 02:08, Zong Li wrote:
> > > Use imply instead of select, then it can still be disabled by
> > > board-specific defconfig, or be set to n manually.
> > >
> > > Signed-off-by: Zong Li <zong.li@sifive.com>
> > > ---
> > >   arch/Kconfig | 2 +-
> > >   1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/arch/Kconfig b/arch/Kconfig
> > > index ae39716697..102956d24c 100644
> > > --- a/arch/Kconfig
> > > +++ b/arch/Kconfig
> > > @@ -111,7 +111,7 @@ config RISCV
> > >       select SUPPORT_OF_CONTROL
> > >       select OF_CONTROL
> > >       select DM
> > > -     select SPL_SEPARATE_BSS if SPL
> > > +     imply SPL_SEPARATE_BSS if SPL
> > >       imply DM_SERIAL
> > >       imply DM_ETH
> > >       imply DM_EVENT
> >
> > Do you have an example of a board which does this?
> >
>
> Hi Sean,
> We'd like to disable 'SPL_SEPARATE_BSS' on our internal platforms that
> don't exist in the mainline. It seems to me that using 'imply' might
> be not only working on the mainline's board, but also making it
> flexible to disable 'SPL_SEPARATE_BSS' by board-specific configuration
> or disable it manually for debug purposes. Hope the idea is good to
> you all. Thanks
>

Hi all,
Thanks for your reviewing, could I know whether this patch makes sense to you?

> > --Sean

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

* Re: [PATCH] riscv: use imply instead of select for SPL_SEPARATE_BSS
       [not found]       ` <HK0PR03MB29945B8BF7616EF09352B019C1159@HK0PR03MB2994.apcprd03.prod.outlook.com>
@ 2022-11-30  0:40         ` Rick Chen
  0 siblings, 0 replies; 7+ messages in thread
From: Rick Chen @ 2022-11-30  0:40 UTC (permalink / raw)
  To: Zong Li
  Cc: U-Boot Mailing List, Sean Anderson, Simon Glass, michal.simek,
	sean.anderson, Leo Liang, rick

> From: Zong Li <zong.li@sifive.com>
> Sent: Tuesday, November 29, 2022 10:02 AM
> To: Sean Anderson <seanga2@gmail.com>
> Cc: sjg@chromium.org; michal.simek@amd.com; sean.anderson@seco.com; Leo Yu-Chi Liang(梁育齊) <ycliang@andestech.com>; Rick Jian-Zhi Chen(陳建志) <rick@andestech.com>; u-boot@lists.denx.de
> Subject: Re: [PATCH] riscv: use imply instead of select for SPL_SEPARATE_BSS
>
> On Mon, Nov 21, 2022 at 8:17 PM Zong Li <zong.li@sifive.com> wrote:
> >
> > On Mon, Nov 21, 2022 at 12:00 PM Sean Anderson <seanga2@gmail.com> wrote:
> > >
> > > On 11/16/22 02:08, Zong Li wrote:
> > > > Use imply instead of select, then it can still be disabled by
> > > > board-specific defconfig, or be set to n manually.
> > > >
> > > > Signed-off-by: Zong Li <zong.li@sifive.com>
> > > > ---
> > > >   arch/Kconfig | 2 +-
> > > >   1 file changed, 1 insertion(+), 1 deletion(-)
> > > >
> > > > diff --git a/arch/Kconfig b/arch/Kconfig index
> > > > ae39716697..102956d24c 100644
> > > > --- a/arch/Kconfig
> > > > +++ b/arch/Kconfig
> > > > @@ -111,7 +111,7 @@ config RISCV
> > > >       select SUPPORT_OF_CONTROL
> > > >       select OF_CONTROL
> > > >       select DM
> > > > -     select SPL_SEPARATE_BSS if SPL
> > > > +     imply SPL_SEPARATE_BSS if SPL
> > > >       imply DM_SERIAL
> > > >       imply DM_ETH
> > > >       imply DM_EVENT
> > >
> > > Do you have an example of a board which does this?
> > >
> >
> > Hi Sean,
> > We'd like to disable 'SPL_SEPARATE_BSS' on our internal platforms that
> > don't exist in the mainline. It seems to me that using 'imply' might
> > be not only working on the mainline's board, but also making it
> > flexible to disable 'SPL_SEPARATE_BSS' by board-specific configuration
> > or disable it manually for debug purposes. Hope the idea is good to
> > you all. Thanks
> >
>
> Hi all,
> Thanks for your reviewing, could I know whether this patch makes sense to you?

It's reasonable for me.

Thanks,
Rick

>
> > > --Sean

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

end of thread, other threads:[~2022-11-30  0:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-16  7:08 [PATCH] riscv: use imply instead of select for SPL_SEPARATE_BSS Zong Li
     [not found] ` <HK0PR03MB29946F9492FAEDED0C5ADFBEC10A9@HK0PR03MB2994.apcprd03.prod.outlook.com>
2022-11-21  0:45   ` Rick Chen
2022-11-21  1:25 ` Bin Meng
2022-11-21  4:00 ` Sean Anderson
2022-11-21 12:17   ` Zong Li
2022-11-29  2:01     ` Zong Li
     [not found]       ` <HK0PR03MB29945B8BF7616EF09352B019C1159@HK0PR03MB2994.apcprd03.prod.outlook.com>
2022-11-30  0:40         ` Rick Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox