summaryrefslogtreecommitdiffstats
path: root/common/bootm.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-05-11 08:11:24 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-05-11 08:11:26 +0200
commit403c5169e9a1cb201a65a3165b9f98e7375d3f71 (patch)
treea0f80396f44a9bae15a6ec966f59611997538904 /common/bootm.c
parent6922e0f005eeb655e7830e2718960c63c1ddf6fd (diff)
downloadbarebox-403c5169e9a1cb201a65a3165b9f98e7375d3f71.tar.gz
bootm: Move magicvar descriptions to common/bootm.c
Now that the bootm code can be used without the command, we have to move the magicvar descriptions from the command code to the common bootm code aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/bootm.c')
-rw-r--r--common/bootm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/bootm.c b/common/bootm.c
index bf1b344..66a5bf3 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -21,6 +21,7 @@
#include <globalvar.h>
#include <init.h>
#include <linux/stat.h>
+#include <magicvar.h>
static LIST_HEAD(handler_list);
@@ -666,3 +667,12 @@ static int bootm_init(void)
return 0;
}
late_initcall(bootm_init);
+
+BAREBOX_MAGICVAR(bootargs, "Linux kernel parameters");
+BAREBOX_MAGICVAR_NAMED(global_bootm_image, global.bootm.image, "bootm default boot image");
+BAREBOX_MAGICVAR_NAMED(global_bootm_image_loadaddr, global.bootm.image.loadaddr, "bootm default boot image loadaddr");
+BAREBOX_MAGICVAR_NAMED(global_bootm_initrd, global.bootm.initrd, "bootm default initrd");
+BAREBOX_MAGICVAR_NAMED(global_bootm_initrd_loadaddr, global.bootm.initrd.loadaddr, "bootm default initrd loadaddr");
+BAREBOX_MAGICVAR_NAMED(global_bootm_oftree, global.bootm.oftree, "bootm default oftree");
+BAREBOX_MAGICVAR_NAMED(global_bootm_verify, global.bootm.verify, "bootm default verify level");
+BAREBOX_MAGICVAR_NAMED(global_bootm_appendroot, global.bootm.appendroot, "Add root= option to Kernel to mount rootfs from the device the Kernel comes from");