From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC] Multiple binaries per U-Boot target
Date: Fri, 19 Jul 2013 20:12:37 +0200 [thread overview]
Message-ID: <20130719201237.7c83a314@lilith> (raw)
In-Reply-To: <CAPnjgZ3DtgWJwGTsDDAmT4_8mwm+0_vFxqP+CeEjusQRzwLYjw@mail.gmail.com>
Hi Simon,
On Fri, 19 Jul 2013 10:53:33 -0600, Simon Glass <sjg@chromium.org>
wrote:
> Hi,
>
> On Fri, Jul 19, 2013 at 9:27 AM, Sascha Silbe <t-uboot@infra-silbe.de>wrote:
>
> > Albert ARIBAUD <albert.u.boot@aribaud.net> writes:
> >
> > > Although, with recent proposals like the TPL one:
> > >
> > > http://permalink.gmane.org/gmane.comp.boot-loaders.u-boot/164432
> > >
> > > ... I am toying with the idea of a more generic build mechanism which
> > > would allow a target to specify as many binaries as it needs, each with
> > > its own configuration.
> >
> > FWIW, I like the idea. Apart from streamlining the current code, it
> > would allow building custom chains of bootloaders. One thing I could use
> > for development would be a minimal stage that can load one of two
> > "normal" / full-blown U-Boot versions, similar to dual BIOS support on
> > modern x86 PCs. All devices I work with can be un-bricked reasonably
> > easily, but for most of them it either requires manual interaction
> > (e.g. the push-button for UART boot on CuBox) or prevents "normal" boots
> > (e.g. removing the SD card on Wandboard so that it boots via USB
> > _instead_ of from SD card).
> >
> > In addition, it would allow customising SPL features without having to
> > introduce more special code.
> >
>
> We actually use something like this in Chrome OS. Right now we are working
> on a 'small' U-Boot which is not SPL but has no commands (they are compiled
> out by a CONFIG option which I will post one day). This will involve two
> complete runs of the U-Boot Makefile - one to create each version of
> U-Boot. It would be great if this could be handled automatically in the
> same build.
My idea is that any 'component' needed in at least one 'binary' would
be compiled once, and then linked as many times as there would be
binaries needing it, all in one single makefile invocation.
> Regards,
> Simon
Amicalement,
--
Albert.
next prev parent reply other threads:[~2013-07-19 18:12 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-09 10:42 [U-Boot] Separately compile Master boot loader Rajdeep Vaghasia
2013-07-09 12:01 ` Albert ARIBAUD
2013-07-10 9:34 ` Rajdeep Vaghasia
2013-07-10 12:23 ` Albert ARIBAUD
2013-07-11 5:27 ` Rajdeep Vaghasia
2013-07-11 8:35 ` Albert ARIBAUD
2013-07-11 9:11 ` [U-Boot] [RFC] Multiple binaries per U-Boot target (was: Separately compile Master boot loader) Albert ARIBAUD
2013-07-19 15:27 ` [U-Boot] [RFC] Multiple binaries per U-Boot target Sascha Silbe
2013-07-19 16:53 ` Simon Glass
2013-07-19 18:12 ` Albert ARIBAUD [this message]
2013-07-19 18:14 ` Simon Glass
2013-07-19 19:27 ` Wolfgang Denk
2013-07-19 21:09 ` Albert ARIBAUD
2013-07-19 22:32 ` Wolfgang Denk
2013-07-20 7:15 ` Albert ARIBAUD
2013-07-19 19:26 ` Wolfgang Denk
2013-07-11 10:08 ` [U-Boot] Separately compile Master boot loader Wolfgang Denk
2013-07-11 10:25 ` Albert ARIBAUD
2013-07-11 9:58 ` Wolfgang Denk
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=20130719201237.7c83a314@lilith \
--to=albert.u.boot@aribaud.net \
--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