summaryrefslogtreecommitdiff
path: root/include/efi_variable.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-12-20 13:05:38 +0300
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-12-20 19:40:06 +0300
commit265ce19485ab8aae9964307e80e0c52f8105c589 (patch)
tree5b90a6f1c29742bdc2366809bc4aaf211e1d1308 /include/efi_variable.h
parent0c1b71cd07bf101586508b9d6e91948c0b493885 (diff)
downloadu-boot-265ce19485ab8aae9964307e80e0c52f8105c589.tar.xz
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/efi_variable.h')
-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 4704a3c16e..bf5076233e 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