mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH] global shell variables and more flexible bootargs
Date: Mon, 14 May 2012 09:24:39 +0200	[thread overview]
Message-ID: <1336980281-30288-1-git-send-email-s.hauer@pengutronix.de> (raw)

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

             reply	other threads:[~2012-05-14  7:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-14  7:24 Sascha Hauer [this message]
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

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=1336980281-30288-1-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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