summaryrefslogtreecommitdiff
path: root/include/part_efi.h
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2017-11-14 20:50:04 +0100
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-12-07 16:24:31 +0100
commit4ce521977f79a883f9c47984ef675c4b2267b7ad (patch)
tree9bf196f7657957d5533d0b95160762ac89f21e19 /include/part_efi.h
parentaba3924927263f23d8ca302b52b1988ed924e5b1 (diff)
part: efi: Add a Kconfig option for the number of partition entries
On some SoCs, the SPL needs to be located right in the middle of the GPT partition entries. One way to work around that is to create partition entries for a smaller number of partitions to accomodate with where the SPL will be. Create a Kconfig option to allow to do that. Reviewed-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'include/part_efi.h')
-rw-r--r--include/part_efi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/part_efi.h b/include/part_efi.h
index 31e6bc6e14..4c8f6cc473 100644
--- a/include/part_efi.h
+++ b/include/part_efi.h
@@ -27,7 +27,7 @@
#define GPT_HEADER_SIGNATURE 0x5452415020494645ULL
#define GPT_HEADER_REVISION_V1 0x00010000
#define GPT_PRIMARY_PARTITION_TABLE_LBA 1ULL
-#define GPT_ENTRY_NUMBERS 128
+#define GPT_ENTRY_NUMBERS CONFIG_EFI_PARTITION_ENTRIES_NUMBERS
#define GPT_ENTRY_SIZE 128
#define PARTITION_SYSTEM_GUID \