From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 00/15] Add macros to ease our life with independent CONFIGs between U-Boot and SPL
Date: Thu, 6 Aug 2015 18:08:14 -0500 [thread overview]
Message-ID: <1438902494.2097.184.camel@freescale.com> (raw)
In-Reply-To: <CAPnjgZ2JocG33aD1P2teNfUTB7yA_aoXAU7BmZisjoH32tQqQA@mail.gmail.com>
On Mon, 2015-08-03 at 07:59 -0600, Simon Glass wrote:
> Hi,
>
> On 1 August 2015 at 07:14, Masahiro Yamada
> <yamada.masahiro@socionext.com> wrote:
> >
> > I hope this series will make our life easier.
>
> I agree. This seems like a clever solution to the problem.
>
> As you probably saw on the other thread, Scott Wood suggested that
> separate configs for U-Boot proper and SPL are better. There are
> definitely arguments either way.
>
> I feel that joining them up has a few advantages:
> - Single configuration step (no multiple 'make menuconfig' steps)
How often do people use menuconfig versus a board's defconfig? Even when
they do, do they need to modify the SPL's config or just the main U-Boot?
> - Supports the common case where there is no need for a separate SPL option
With separate configs there would not be separate options. With a unified
config there are separate SPL options, even if it doesn't require a separate
makefile line.
> - Single configuration file to maintain / patch
For defconfigs it was already merged.
> - Avoids needing to create options that depend on SPL, or !SPL and
> thus exist in SPL but not in U-Boot proper (I find this confusing)
Instead you have special SPL symbols that exist but don't mean anything in U-
Boot proper...
> The $(SPL) syntax may be a little clumsy but it is pretty clear what
> is going on. Also if we come up with something else in the future it
> should be fairly easy to revisit the sits and change them.
>
> I believe the common case is that most board options are the same for
> SPL and U-Boot proper.
Most SPLs have a command shell and all the associated bells and whistles
selected, plus a full set of drivers?
> By my count we have about 40
> CONFIG_SPL_..._SUPPORT optoins at present.
Those were added before we had split configs. With split configs they could
go away.
> Compared to the thousands
> of options int the source this is fairly small. So we should optimise
> for the common case.
40 versus zero? What special thing would need to be done to the "thousands
of options" with split configs?
How is TPL supposed to be handled? Are the various SPL options that are set
one way #ifdef CONFIG_TPL_BUILD and differently if not doomed to stay in the
board config file and never get kconfigized?
-Scott
next prev parent reply other threads:[~2015-08-06 23:08 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-01 13:14 [U-Boot] [PATCH v2 00/15] Add macros to ease our life with independent CONFIGs between U-Boot and SPL Masahiro Yamada
2015-08-01 13:14 ` [U-Boot] [PATCH v2 01/15] kbuild: fixdep: optimize code slightly Masahiro Yamada
2015-08-01 14:47 ` Tom Rini
2015-08-03 14:06 ` Simon Glass
2015-08-01 13:14 ` [U-Boot] [PATCH v2 02/15] kbuild: add a makefile macro useful with per-image config options Masahiro Yamada
2015-08-01 14:47 ` Tom Rini
2015-08-03 14:06 ` Simon Glass
2015-08-01 13:14 ` [U-Boot] [PATCH v2 03/15] linux/kconfig.h: add CPP macros useful for " Masahiro Yamada
2015-08-03 14:06 ` Simon Glass
2015-08-01 13:14 ` [U-Boot] [PATCH v2 04/15] spl: move SPL driver entries to driver/Makefile Masahiro Yamada
2015-08-01 14:48 ` Tom Rini
2015-08-02 9:28 ` Stefano Babic
2015-08-03 14:06 ` Simon Glass
2015-08-01 13:14 ` [U-Boot] [PATCH v2 05/15] dm: unify obj-$(CONFIG_DM) and obj-$(CONFIG_SPL_DM) entries Masahiro Yamada
2015-08-01 14:48 ` Tom Rini
2015-08-03 14:06 ` Simon Glass
2015-08-01 13:14 ` [U-Boot] [PATCH v2 06/15] clk: rename CONFIG_SPL_CLK_SUPPORT to CONFIG_SPL_CLK Masahiro Yamada
2015-08-01 14:48 ` Tom Rini
2015-08-02 9:28 ` Stefano Babic
2015-08-03 14:06 ` Simon Glass
2015-08-01 13:14 ` [U-Boot] [PATCH v2 07/15] clk: unify obj-$(CONFIG_CLK) and obj-$(CONFIG_SPL_CLK) entries Masahiro Yamada
2015-08-01 14:48 ` Tom Rini
2015-08-02 9:28 ` Stefano Babic
2015-08-03 14:06 ` Simon Glass
2015-08-01 13:14 ` [U-Boot] [PATCH v2 08/15] ram: rename CONFIG_SPL_RAM_SUPPORT to CONFIG_SPL_RAM Masahiro Yamada
2015-08-01 14:48 ` Tom Rini
2015-08-03 14:06 ` Simon Glass
2015-08-01 13:14 ` [U-Boot] [PATCH v2 09/15] ram: unify obj-$(CONFIG_RAM) and obj-$(CONFIG_SPL_RAM) entries Masahiro Yamada
2015-08-01 14:48 ` Tom Rini
2015-08-03 14:06 ` Simon Glass
2015-08-01 13:14 ` [U-Boot] [PATCH v2 10/15] led: rename CONFIG_SPL_LED_SUPPORT to CONFIG_SPL_LED Masahiro Yamada
2015-08-01 14:48 ` Tom Rini
2015-08-03 14:06 ` Simon Glass
2015-08-01 13:14 ` [U-Boot] [PATCH v2 11/15] led: unify obj-$(CONFIG_LED) and obj-$(CONFIG_SPL_LED) entries Masahiro Yamada
2015-08-01 14:48 ` Tom Rini
2015-08-02 9:28 ` Stefano Babic
2015-08-03 14:06 ` Simon Glass
2015-08-01 13:14 ` [U-Boot] [PATCH v2 12/15] dm: drop CONFIG_DM_DEVICE_REMOVE from uncmd list Masahiro Yamada
2015-08-01 14:48 ` Tom Rini
2015-08-03 14:06 ` Simon Glass
2015-08-01 13:14 ` [U-Boot] [PATCH v2 13/15] fdtdec: fix OF_CONTROL switch Masahiro Yamada
2015-08-01 14:48 ` Tom Rini
2015-08-03 14:06 ` Simon Glass
2015-08-01 13:14 ` [U-Boot] [PATCH v2 14/15] of: flip CONFIG_SPL_DISABLE_OF_CONTROL into CONFIG_SPL_OF_CONTROL Masahiro Yamada
2015-08-01 14:48 ` Tom Rini
2015-08-03 14:06 ` Simon Glass
2015-08-01 13:14 ` [U-Boot] [PATCH v2 15/15] of: clean up OF_CONTROL ifdef conditionals Masahiro Yamada
2015-08-01 14:48 ` Tom Rini
2015-08-03 14:06 ` Simon Glass
2015-08-13 11:26 ` Linus Walleij
2015-08-03 13:59 ` [U-Boot] [PATCH v2 00/15] Add macros to ease our life with independent CONFIGs between U-Boot and SPL Simon Glass
2015-08-06 23:08 ` Scott Wood [this message]
2015-08-11 7:53 ` Masahiro Yamada
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1438902494.2097.184.camel@freescale.com \
--to=scottwood@freescale.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox