summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>2017-07-10 12:33:54 +0200
committerLucas Stach <l.stach@pengutronix.de>2017-07-11 15:45:20 +0200
commite56e1bcbfcca891f6adb852544f5449dda19b857 (patch)
tree9be1dc4479b58162cfd1b0776464e0f7e45d7f3a
parent8f9f81086fcf9cd91edcad427c0bc8aa7a8b35f4 (diff)
downloadbarebox-e56e1bcbfcca891f6adb852544f5449dda19b857.tar.gz
efi: efi: register barebox-update handler
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
-rw-r--r--common/efi/efi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/efi/efi.c b/common/efi/efi.c
index 3423c8a..4b42f5d 100644
--- a/common/efi/efi.c
+++ b/common/efi/efi.c
@@ -42,6 +42,7 @@
#include <efi/efi-device.h>
#include <libfile.h>
#include <state.h>
+#include <bbu.h>
efi_runtime_services_t *RT;
efi_boot_services_t *BS;
@@ -382,6 +383,9 @@ static int efi_postcore_init(void)
free(uuid16);
}
+ bbu_register_std_file_update("fat", 0, "/boot/EFI/BOOT/BOOTx64.EFI",
+ filetype_exe);
+
return 0;
}
postcore_initcall(efi_postcore_init);