summaryrefslogtreecommitdiffstats
path: root/common/startup.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-07-03 13:41:59 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-07-03 16:40:50 +0200
commit815189dd4c8be39b9caae6c06a75a994f1956140 (patch)
tree46330adbcf4484b3b88d97dd6a009ef6f9b4e66e /common/startup.c
parenta1ee6140bcfd15d5ab2fef05898a3c361ab1b9e4 (diff)
downloadbarebox-815189dd4c8be39b9caae6c06a75a994f1956140.tar.gz
startup: Create boot related variables where they are used
global.boot.default, global.linux.bootargs.base and global.user are used in the boot code, so create them there. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/startup.c')
-rw-r--r--common/startup.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/common/startup.c b/common/startup.c
index 7e5a167..b88c4a0 100644
--- a/common/startup.c
+++ b/common/startup.c
@@ -152,9 +152,6 @@ static const char * const global_autoboot_abort_keys[] = {
"ctrl-c",
};
static int global_autoboot_timeout = 3;
-static char *global_boot_default;
-static char *global_linux_bootargs_base;
-static char *global_user;
static bool test_abort(void)
{
@@ -210,19 +207,12 @@ static int run_init(void)
return 0;
}
- global_user = xstrdup("none");
- globalvar_add_simple_string("user", &global_user);
- global_boot_default = xstrdup("net");
-
globalvar_add_simple_enum("autoboot_abort_key",
&global_autoboot_abort_key,
global_autoboot_abort_keys,
ARRAY_SIZE(global_autoboot_abort_keys));
globalvar_add_simple_int("autoboot_timeout",
&global_autoboot_timeout, "%u");
- globalvar_add_simple_string("boot.default", &global_boot_default);
- globalvar_add_simple_string("linux.bootargs.base",
- &global_linux_bootargs_base);
/* Unblank console cursor */
printf("\e[?25h");