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