diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-07-03 12:56:14 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-07-03 16:39:18 +0200 |
commit | a1ee6140bcfd15d5ab2fef05898a3c361ab1b9e4 (patch) | |
tree | 11fbe7e9f481c1697e947c3d917d5670460fec72 /common/boot.c | |
parent | 748adcd7ebfb1cced8611df5d494b20d650c0996 (diff) | |
download | barebox-a1ee6140bcfd15d5ab2fef05898a3c361ab1b9e4.tar.gz barebox-a1ee6140bcfd15d5ab2fef05898a3c361ab1b9e4.tar.xz |
startup: Create global.linux.bootargs.dyn.* variables where they are needed
global.linux.bootargs.dyn.* variables are exclusively used in boot
scripts, so create them right before executing a script. This moves
the corresponding code from the unrelated startup code to the place
where the variables are used.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/boot.c')
-rw-r--r-- | common/boot.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/boot.c b/common/boot.c index 974eaf5d02..84b2ff9677 100644 --- a/common/boot.c +++ b/common/boot.c @@ -92,6 +92,8 @@ static int bootscript_boot(struct bootentry *entry, int verbose, int dryrun) return 0; } + globalvar_add_simple("linux.bootargs.dyn.ip", NULL); + globalvar_add_simple("linux.bootargs.dyn.root", NULL); globalvar_set_match("linux.bootargs.dyn.", ""); ret = run_command(bs->scriptpath); |