summaryrefslogtreecommitdiffstats
path: root/arch/efi
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-07-17 21:22:49 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-07-27 07:23:20 +0200
commitc95b1c2bf24cbcce63a036e85ebd3f53544a207b (patch)
tree3036892e6979d7a6efbd0e295c710b970d49def6 /arch/efi
parent5df1c6ea9b900d95058149f91e3f0e2cd26ae9c0 (diff)
downloadbarebox-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')
-rw-r--r--arch/efi/efi/efi.c5
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);