public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 03/11] kconfig: add board Kconfig and defconfig files
Date: Fri, 16 May 2014 13:48:35 -0600	[thread overview]
Message-ID: <53766B93.2060407@wwwdotorg.org> (raw)
In-Reply-To: <20140516185518.GC7207@bill-the-cat>

On 05/16/2014 12:55 PM, Tom Rini wrote:
> Wading in here later than I had wanted to, sorry.
> 
> On Mon, Apr 28, 2014 at 06:39:33PM +0900, Masahiro Yamada wrote:
...
>> But, if people don't like this,
>> I can change this part as only one defconfig per board
>> in the next version.
>> (Instead, we may lose flexibility to some extent
>> because SPL and non-SPL will share the same defconfig.)
> 
> So this I believe answers what I was hoping which is that yes, down the
> line more things will be questions and less things selected, which means
> defconfig are more about providing config options.
> 
> And then yes, we need to re-evaluate what we do for SPL/TPL and see if
> really we can't just handle things with a user-selected CONFIG_SPL/TPL
> (for the just very different parts) and perhaps decouple these parts of
> the build.

A somewhat tangential thought:

I was recently trying to build a really tiny U-Boot.

I first tried building a regular main U-Boot, but to get a small enough
binary (256KB RAM total), I had to strip too much out to be useful.
Without doing that, the resultant run-time image was too large to allow
relocation; text+data+bss was more than half the size of my possible RAM
footprint.

So, I tried switching to building SPL instead, since SPL doesn't do
relocation. However, SPL is far too limited in terms of features and
APIs to allow the feature-set I want (I wanted device-mode USB, with
some custom protocol sitting on top, which I think currently requires
pulling in the host-mode EHCI stack, a malloc pool, etc.). I guess I
could go add a bunch more stuff to spl/Makefile to start fixing this,
but I started wondering exactly why I needed to do that.

I'd love to see CONFIG_SPL/CONFIG_TPL completely disappear. Instead, we
should just select all the features we want through Kconfig, and things
like CONFIG_DO_RELOCATION that the main U-Boot selects, and whatever SPL
currently does to minify itself, should be Kconfig options just like any
other. Does that seem reasonable?

For this part of the conversation, I'm completely ignoring whether we'd
then represent our current SPL and main U-Boot binaries via separate
user-visible defconfigs, sub-defconfigs pulled in as sub-builds by other
defconfigs, or some other means.

  reply	other threads:[~2014-05-16 19:48 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-24  5:04 [U-Boot] [PATCH 0/11] Kconfig for U-Boot Masahiro Yamada
2014-04-24  5:04 ` [U-Boot] [PATCH 01/11] kconfig: import Kconfig files from Linux v3.14 tag Masahiro Yamada
2014-04-26 22:48   ` Simon Glass
2014-04-24  5:04 ` [U-Boot] [PATCH 02/11] Do not apply: tools: add genkconfig Masahiro Yamada
2014-04-26 23:03   ` Simon Glass
2014-04-28  5:12     ` Masahiro Yamada
2014-04-24  5:04 ` [U-Boot] [PATCH 03/11] kconfig: add board Kconfig and defconfig files Masahiro Yamada
2014-04-24 20:36   ` Stephen Warren
2014-04-28  9:39     ` Masahiro Yamada
2014-04-28 17:47       ` Stephen Warren
2014-05-01 22:48         ` Scott Wood
2014-05-02 18:39           ` Stephen Warren
2014-05-16 18:55       ` Tom Rini
2014-05-16 19:48         ` Stephen Warren [this message]
2014-05-02 15:05   ` Timur Tabi
2014-04-24  5:04 ` [U-Boot] [PATCH 04/11] kconfig: add basic Kconfig files Masahiro Yamada
2014-04-28 17:21   ` Simon Glass
2014-04-30  4:22     ` Masahiro Yamada
2014-04-30 19:16       ` Simon Glass
2014-05-01 18:18         ` Scott Wood
2014-05-01 18:21   ` Scott Wood
2014-05-07  6:23     ` Masahiro Yamada
2014-04-24  5:04 ` [U-Boot] [PATCH 05/11] include: define CONFIG_SPL and CONFIG_TPL as 1 Masahiro Yamada
2014-04-28 17:30   ` Simon Glass
2014-04-24  5:04 ` [U-Boot] [PATCH 06/11] kconfig: switch to Kconfig Masahiro Yamada
2014-04-28 17:37   ` Simon Glass
2014-04-24  5:04 ` [U-Boot] [PATCH 07/11] MAKEALL: adjust for Kconfig Masahiro Yamada
2014-04-24  5:04 ` [U-Boot] [PATCH 08/11] buildman: " Masahiro Yamada
2014-04-24  5:04 ` [U-Boot] [PATCH 09/11] kconfig: delete redundant CONFIG_${ARCH} definition Masahiro Yamada
2014-04-28 17:40   ` Simon Glass
2014-04-24  5:04 ` [U-Boot] [PATCH 10/11] kbuild: remove CONFIG_SPL/CONFIG_TPL definition in config headers Masahiro Yamada
2014-04-28 17:41   ` Simon Glass
2014-04-24  5:04 ` [U-Boot] [PATCH 11/11] kconfig: remove old script Masahiro Yamada
2014-04-28 17:41   ` Simon Glass

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=53766B93.2060407@wwwdotorg.org \
    --to=swarren@wwwdotorg.org \
    --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