mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] global shell variables and more flexible bootargs
@ 2012-05-14  7:24 Sascha Hauer
  2012-05-14  7:24 ` [PATCH 1/2] add 'global' command Sascha Hauer
  2012-05-14  7:24 ` [PATCH 2/2] booting: more flexible Linux bootargs generation Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Sascha Hauer @ 2012-05-14  7:24 UTC (permalink / raw)
  To: barebox

We need global shell variables in barebox and currently try to
emulate this by sourcing scripts instead of executing them. This
adds global variable support by registering a device named 'global'
and registering device parameters on it.
This is then used to add a more flexible bootargs mechanism. Instead
of using a single variable we can now use variables beginning with
'linux.bootargs.' and 'linux.mtdparts.' which will be concatenated
together to a valid bootargs string.

This is mainly done as another step forward to a new default environment
which will make use of this.

Sascha

----------------------------------------------------------------
Sascha Hauer (2):
      add 'global' command
      booting: more flexible Linux bootargs generation

 arch/arm/lib/armlinux.c            |    2 +-
 arch/arm/lib/bootm.c               |    3 +-
 arch/blackfin/lib/blackfin_linux.c |    2 +-
 arch/nios2/lib/bootm.c             |    2 +-
 commands/Kconfig                   |   19 +++++++++
 commands/Makefile                  |    1 +
 commands/global.c                  |   62 ++++++++++++++++++++++++++++
 commands/linux16.c                 |    2 +-
 common/Kconfig                     |    7 ++++
 common/Makefile                    |    2 +
 common/bootargs.c                  |   79 ++++++++++++++++++++++++++++++++++++
 common/globalvar.c                 |   65 +++++++++++++++++++++++++++++
 common/oftree.c                    |    3 +-
 include/boot.h                     |   16 ++++++++
 include/globalvar.h                |   12 ++++++
 15 files changed, 271 insertions(+), 6 deletions(-)
 create mode 100644 commands/global.c
 create mode 100644 common/bootargs.c
 create mode 100644 common/globalvar.c
 create mode 100644 include/globalvar.h

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2012-05-14  7:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-14  7:24 [PATCH] global shell variables and more flexible bootargs Sascha Hauer
2012-05-14  7:24 ` [PATCH 1/2] add 'global' command Sascha Hauer
2012-05-14  7:24 ` [PATCH 2/2] booting: more flexible Linux bootargs generation Sascha Hauer

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