public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] single build of uboot supporting env stored in dynamically detected boot device
@ 2015-04-09 22:58 Tim Harvey
  2015-04-10  6:07 ` Stefan Roese
  0 siblings, 1 reply; 8+ messages in thread
From: Tim Harvey @ 2015-04-09 22:58 UTC (permalink / raw)
  To: u-boot

Greetings,

It seems the U-Boot's env storage is implemented by various types of
storage from common/env_*.c, one (and only one) which is included by
common/Makefile based off of the CONFIG_ENV_IS_IN_* config.

I want to build a single uboot image which can be installed on one of
several supported boot devices (NAND, SATA, SD for example) and have
the env storage hooked to the device that was detected as the boot
device. Am I correct in assuming this is not currently possible and
that instead I would have to build 3 versions of uboot each with one
type of storage defined?

If it turns out that this is not currently possible, I'm open to
suggestions on how to rectify it (or if you think I'm crazy for
wanting to have a single uboot image for the above please explain your
reasoning). I'm thinking I would start by making the env_init/saveenv
functions (I believe those are the only ones that need to be
implemented by an env storage subsystem) unique function names, then
creating a wrapper for those functions that call the right one.

Regards,

Tim

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

end of thread, other threads:[~2015-04-22 13:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-09 22:58 [U-Boot] single build of uboot supporting env stored in dynamically detected boot device Tim Harvey
2015-04-10  6:07 ` Stefan Roese
2015-04-10 15:42   ` Tim Harvey
2015-04-10 16:39     ` Simon Glass
2015-04-10 16:41       ` Tom Rini
     [not found]       ` <CAJ+vNU1jkbOBAKoOUQ9FMSPMS=XDjK+EajXcV25_AX33xQKObA@mail.gmail.com>
2015-04-10 17:11         ` Simon Glass
2015-04-22  6:17       ` Igor Grinberg
2015-04-22 13:02         ` Tim Harvey

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