summaryrefslogtreecommitdiffstats
path: root/commands/bootm.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-09-22 12:57:13 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-09-24 09:03:18 +0200
commit172fc40f617799023e56cb005f088a522ab6fe6f (patch)
tree0fa5ba842f2cc23060c835c198f64ada207c95c7 /commands/bootm.c
parentfc5923d975b4e93d219c96faecd666e41ce6a8de (diff)
downloadbarebox-172fc40f617799023e56cb005f088a522ab6fe6f.tar.gz
barebox-172fc40f617799023e56cb005f088a522ab6fe6f.tar.xz
bootm: move globalvars from command to common
The globalvars should be available even if the bootm command is not directly present. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/bootm.c')
-rw-r--r--commands/bootm.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/commands/bootm.c b/commands/bootm.c
index c1d2ec411e..005d5823b2 100644
--- a/commands/bootm.c
+++ b/commands/bootm.c
@@ -158,20 +158,6 @@ err_out:
return 1;
}
-static int bootm_init(void)
-{
- globalvar_add_simple("bootm.image", NULL);
- globalvar_add_simple("bootm.image.loadaddr", NULL);
- globalvar_add_simple("bootm.oftree", NULL);
- if (IS_ENABLED(CONFIG_CMD_BOOTM_INITRD)) {
- globalvar_add_simple("bootm.initrd", NULL);
- globalvar_add_simple("bootm.initrd.loadaddr", NULL);
- }
-
- return 0;
-}
-late_initcall(bootm_init);
-
BAREBOX_CMD_HELP_START(bootm)
BAREBOX_CMD_HELP_USAGE("bootm [OPTIONS] image\n")
BAREBOX_CMD_HELP_SHORT("Boot an application image.\n")