mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] magic variables
@ 2011-11-27 12:09 Sascha Hauer
  2011-11-27 12:09 ` [PATCH 1/5] add magicvar command Sascha Hauer
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Sascha Hauer @ 2011-11-27 12:09 UTC (permalink / raw)
  To: barebox

I don't like magic variables that much, but we have them and they are at
times very convenient to use. The problem with those variables is that
we don't know which variables exist in a running binary, so this patchset
adds a 'magicvar' command which prints information about the magic variables.
The description for magic variables can be put next to their user and
the description completely compiles away when the magicvar command is not
selected.

Sascha Hauer (5):
      add magicvar command
      bootm: Add bootargs magicvar
      ARM i.MX boot: Add barebox_loc magicvar
      hush: Add magicvars
      dhcp: Add magicvars

 arch/arm/lib/barebox.lds.S                |    4 +++
 arch/arm/mach-imx/boot.c                  |    3 ++
 arch/blackfin/boards/ipe337/barebox.lds.S |    4 +++
 arch/mips/lib/barebox.lds.S               |    4 +++
 arch/nios2/cpu/barebox.lds.S              |    4 +++
 arch/ppc/boards/pcm030/barebox.lds.S      |    4 +++
 arch/sandbox/board/barebox.lds.S          |    5 ++++
 arch/x86/lib/barebox.lds.S                |    9 +++++++-
 commands/Kconfig                          |   14 ++++++++++++
 commands/Makefile                         |    1 +
 commands/bootm.c                          |    3 ++
 commands/magicvar.c                       |   20 ++++++++++++++++++
 common/hush.c                             |    8 +++++++
 include/asm-generic/barebox.lds.h         |    2 +
 include/magicvar.h                        |   32 +++++++++++++++++++++++++++++
 net/dhcp.c                                |    6 +++++
 16 files changed, 122 insertions(+), 1 deletions(-)
 create mode 100644 commands/magicvar.c
 create mode 100644 include/magicvar.h

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

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

end of thread, other threads:[~2011-11-27 12:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-27 12:09 [PATCH] magic variables Sascha Hauer
2011-11-27 12:09 ` [PATCH 1/5] add magicvar command Sascha Hauer
2011-11-27 12:09 ` [PATCH 2/5] bootm: Add bootargs magicvar Sascha Hauer
2011-11-27 12:09 ` [PATCH 3/5] ARM i.MX boot: Add barebox_loc magicvar Sascha Hauer
2011-11-27 12:09 ` [PATCH 4/5] hush: Add magicvars Sascha Hauer
2011-11-27 12:09 ` [PATCH 5/5] dhcp: " Sascha Hauer

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