diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-07-17 21:22:49 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-07-27 07:23:20 +0200 |
commit | c95b1c2bf24cbcce63a036e85ebd3f53544a207b (patch) | |
tree | 3036892e6979d7a6efbd0e295c710b970d49def6 /arch/efi/efi | |
parent | 5df1c6ea9b900d95058149f91e3f0e2cd26ae9c0 (diff) | |
download | barebox-c95b1c2bf24cbcce63a036e85ebd3f53544a207b.tar.gz barebox-c95b1c2bf24cbcce63a036e85ebd3f53544a207b.tar.xz |
efi: use an EFI variable to save the environment
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/efi/efi')
-rw-r--r-- | arch/efi/efi/efi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/efi/efi/efi.c b/arch/efi/efi/efi.c index 07a4d9d0fc..d3f520f60f 100644 --- a/arch/efi/efi/efi.c +++ b/arch/efi/efi/efi.c @@ -326,8 +326,13 @@ static void fixup_tables(void) static int efi_init(void) { + char *env; + defaultenv_append_directory(env_efi); + env = xasprintf("/efivars/barebox-env-%pUl", &efi_barebox_vendor_guid); + default_environment_path_set(env); + return 0; } device_initcall(efi_init); |