RFC: Support for U-Boot phases in Kconfig

2021-08-07 Thread Simon Glass
Hi, U-Boot can be configured to build the source multiple times to product multiple 'phases'. The main phase is the full U-Boot, but an 'SPL' (Secondary Program Loader) build can produce a cut-down image only suitable for loading U-Boot proper. SPL does not want to use the same Kconfig options, s

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-09 Thread Tom Rini
On Sat, Aug 07, 2021 at 04:23:36PM -0600, Simon Glass wrote: > Hi, > > U-Boot can be configured to build the source multiple times to product > multiple > 'phases'. The main phase is the full U-Boot, but an 'SPL' (Secondary Program > Loader) build can produce a cut-down image only suitable for lo

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-09 Thread Sean Anderson
On 8/7/21 6:23 PM, Simon Glass wrote: Hi, U-Boot can be configured to build the source multiple times to product multiple 'phases'. The main phase is the full U-Boot, but an 'SPL' (Secondary Program Loader) build can produce a cut-down image only suitable for loading U-Boot proper. SPL does

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-10 Thread Simon Glass
Hi Tom, On Mon, 9 Aug 2021 at 13:11, Tom Rini wrote: > > On Sat, Aug 07, 2021 at 04:23:36PM -0600, Simon Glass wrote: > > Hi, > > > > U-Boot can be configured to build the source multiple times to product > > multiple > > 'phases'. The main phase is the full U-Boot, but an 'SPL' (Secondary Progr

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-10 Thread Tom Rini
On Tue, Aug 10, 2021 at 08:58:46AM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 9 Aug 2021 at 13:11, Tom Rini wrote: > > > > On Sat, Aug 07, 2021 at 04:23:36PM -0600, Simon Glass wrote: > > > Hi, > > > > > > U-Boot can be configured to build the source multiple times to product > > > multiple

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-10 Thread Simon Glass
Hi Sean, On Mon, 9 Aug 2021 at 16:31, Sean Anderson wrote: > > > > On 8/7/21 6:23 PM, Simon Glass wrote: > > Hi, > > > > U-Boot can be configured to build the source multiple times to product multiple > > 'phases'. The main phase is the full U-Boot, but an 'SPL' (Secondary Program > > Loader) bui

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-11 Thread Grant Likely
On Mon, Aug 9, 2021 at 8:11 PM Tom Rini wrote: > > On Sat, Aug 07, 2021 at 04:23:36PM -0600, Simon Glass wrote: > > Comments welcome! > > I think what this is really showing is that Yamada-san was right. All > the games we need to do so that "make fooboard_config all" results in > building the N

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-11 Thread Simon Glass
Hi Tom, On Tue, 10 Aug 2021 at 13:38, Tom Rini wrote: > > On Tue, Aug 10, 2021 at 08:58:46AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Mon, 9 Aug 2021 at 13:11, Tom Rini wrote: > > > > > > On Sat, Aug 07, 2021 at 04:23:36PM -0600, Simon Glass wrote: > > > > Hi, > > > > > > > > U-Boot can

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-11 Thread Simon Glass
Hi Grant, On Wed, 11 Aug 2021 at 03:58, Grant Likely wrote: > > On Mon, Aug 9, 2021 at 8:11 PM Tom Rini wrote: > > > > On Sat, Aug 07, 2021 at 04:23:36PM -0600, Simon Glass wrote: > > > Comments welcome! > > > > I think what this is really showing is that Yamada-san was right. All > > the games

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-11 Thread Grant Likely
On Wed, Aug 11, 2021 at 1:58 PM Simon Glass wrote: > > Hi Grant, > > On Wed, 11 Aug 2021 at 03:58, Grant Likely wrote: > > > > On Mon, Aug 9, 2021 at 8:11 PM Tom Rini wrote: > > > > > > On Sat, Aug 07, 2021 at 04:23:36PM -0600, Simon Glass wrote: > > > > Comments welcome! > > > > > > I think wha

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-11 Thread Tom Rini
On Wed, Aug 11, 2021 at 06:56:31AM -0600, Simon Glass wrote: > Hi Tom, > > On Tue, 10 Aug 2021 at 13:38, Tom Rini wrote: [snip] > > I need to take another pass at converting a bunch of symbols, to see > > where we're at. Probably the biggest chunk of progress next would be to > > start convertin

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-11 Thread Simon Glass
Hi Grant, On Wed, 11 Aug 2021 at 07:47, Grant Likely wrote: > > On Wed, Aug 11, 2021 at 1:58 PM Simon Glass wrote: > > > > Hi Grant, > > > > On Wed, 11 Aug 2021 at 03:58, Grant Likely > > wrote: > > > > > > On Mon, Aug 9, 2021 at 8:11 PM Tom Rini wrote: > > > > > > > > On Sat, Aug 07, 2021 at

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-11 Thread Tom Rini
On Wed, Aug 11, 2021 at 06:56:31AM -0600, Simon Glass wrote: [snip] > Having thought a bit more, perhaps we have the wrong attitude to > Kconfig. The CONFIG() macro I am talking about works by building an > xxx or SPL_xxx config. If we have separate autoconf.h files for each > phase (autoconf_spl.h

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-11 Thread Simon Glass
Hi Tom, On Wed, 11 Aug 2021 at 07:47, Tom Rini wrote: > > On Wed, Aug 11, 2021 at 06:56:31AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Tue, 10 Aug 2021 at 13:38, Tom Rini wrote: > [snip] > > > I need to take another pass at converting a bunch of symbols, to see > > > where we're at. Prob

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-11 Thread Simon Glass
Hi Tom, On Wed, 11 Aug 2021 at 08:02, Tom Rini wrote: > > On Wed, Aug 11, 2021 at 06:56:31AM -0600, Simon Glass wrote: > [snip] > > Having thought a bit more, perhaps we have the wrong attitude to > > Kconfig. The CONFIG() macro I am talking about works by building an > > xxx or SPL_xxx config. I

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-11 Thread Tom Rini
On Wed, Aug 11, 2021 at 08:03:00AM -0600, Simon Glass wrote: > Hi Tom, > > On Wed, 11 Aug 2021 at 07:47, Tom Rini wrote: > > > > On Wed, Aug 11, 2021 at 06:56:31AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Tue, 10 Aug 2021 at 13:38, Tom Rini wrote: > > [snip] > > > > I need to take

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-11 Thread Simon Glass
Hi Tom, On Wed, 11 Aug 2021 at 08:17, Tom Rini wrote: > > On Wed, Aug 11, 2021 at 08:03:00AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 11 Aug 2021 at 07:47, Tom Rini wrote: > > > > > > On Wed, Aug 11, 2021 at 06:56:31AM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Tue

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-11 Thread Tom Rini
On Wed, Aug 11, 2021 at 08:11:41AM -0600, Simon Glass wrote: > Hi Tom, > > On Wed, 11 Aug 2021 at 08:02, Tom Rini wrote: > > > > On Wed, Aug 11, 2021 at 06:56:31AM -0600, Simon Glass wrote: > > [snip] > > > Having thought a bit more, perhaps we have the wrong attitude to > > > Kconfig. The CONFIG

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-11 Thread Simon Glass
Hi Tom, On Wed, 11 Aug 2021 at 08:31, Tom Rini wrote: > > On Wed, Aug 11, 2021 at 08:11:41AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 11 Aug 2021 at 08:02, Tom Rini wrote: > > > > > > On Wed, Aug 11, 2021 at 06:56:31AM -0600, Simon Glass wrote: > > > [snip] > > > > Having thought a

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-11 Thread Tom Rini
On Wed, Aug 11, 2021 at 08:26:38AM -0600, Simon Glass wrote: > Hi Tom, > > On Wed, 11 Aug 2021 at 08:17, Tom Rini wrote: > > > > On Wed, Aug 11, 2021 at 08:03:00AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Wed, 11 Aug 2021 at 07:47, Tom Rini wrote: > > > > > > > > On Wed, Aug 11, 20

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-11 Thread Simon Glass
Hi Tom, On Wed, 11 Aug 2021 at 09:40, Tom Rini wrote: > > On Wed, Aug 11, 2021 at 08:26:38AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 11 Aug 2021 at 08:17, Tom Rini wrote: > > > > > > On Wed, Aug 11, 2021 at 08:03:00AM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Wed

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-11 Thread Sean Anderson
On 8/11/21 10:17 AM, Tom Rini wrote: On Wed, Aug 11, 2021 at 08:03:00AM -0600, Simon Glass wrote: Hi Tom, On Wed, 11 Aug 2021 at 07:47, Tom Rini wrote: > > On Wed, Aug 11, 2021 at 06:56:31AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Tue, 10 Aug 2021 at 13:38, Tom Rini wrote: > [snip

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-11 Thread Tom Rini
On Wed, Aug 11, 2021 at 04:14:51PM -0400, Sean Anderson wrote: > > > On 8/11/21 10:17 AM, Tom Rini wrote: > > On Wed, Aug 11, 2021 at 08:03:00AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Wed, 11 Aug 2021 at 07:47, Tom Rini wrote: > > > > > > > > On Wed, Aug 11, 2021 at 06:56:31AM -

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-11 Thread Tom Rini
On Wed, Aug 11, 2021 at 08:47:24AM -0600, Simon Glass wrote: > Hi Tom, > > On Wed, 11 Aug 2021 at 08:31, Tom Rini wrote: > > > > On Wed, Aug 11, 2021 at 08:11:41AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Wed, 11 Aug 2021 at 08:02, Tom Rini wrote: > > > > > > > > On Wed, Aug 11, 20

Re: RFC: Support for U-Boot phases in Kconfig

2021-08-11 Thread Tom Rini
On Wed, Aug 11, 2021 at 12:28:13PM -0600, Simon Glass wrote: > Hi Tom, > > On Wed, 11 Aug 2021 at 09:40, Tom Rini wrote: > > > > On Wed, Aug 11, 2021 at 08:26:38AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Wed, 11 Aug 2021 at 08:17, Tom Rini wrote: > > > > > > > > On Wed, Aug 11, 20