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@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox