aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHeinrich Schuchardt2020-12-20 11:05:38 +0100
committerHeinrich Schuchardt2020-12-31 14:27:41 +0100
commitc0c21d67f0654f9d3641b9dd3bdfd635110c2bc1 (patch)
treeb20093a4264783a2bd2bf7a7fd9a82b70e0c2325 /include
parent958b9e2482538ebfeb2e1161257603d4dec498cb (diff)
efi_loader: make variable store size customizable
Currently the size of the buffer to keep UEFI variables in memory is fixed at 16384 bytes. This size has proven to be too small for some use cases. Make the size of the memory buffer for UEFI variables customizable. Reported-by: Paulo Alcantara (SUSE) <pc@cjr.nz> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/efi_variable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/efi_variable.h b/include/efi_variable.h
index 4704a3c16e6..bf5076233e4 100644
--- a/include/efi_variable.h
+++ b/include/efi_variable.h
@@ -91,7 +91,7 @@ efi_status_t efi_query_variable_info_int(u32 attributes,
#define EFI_VAR_FILE_NAME "ubootefi.var"
-#define EFI_VAR_BUF_SIZE 0x4000
+#define EFI_VAR_BUF_SIZE CONFIG_EFI_VAR_BUF_SIZE
/*
* This constant identifies the file format for storing UEFI variables in