summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2019-06-19 18:55:47 +0200
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2019-06-19 18:55:47 +0200
commit53a71191c55163fcb0cc2322b6050279245316b9 (patch)
treec7db1368c1db35863f7954fcb6895c2f5843ef45
parent7d5e8dbff6ed2b1d1812192022f643397444124c (diff)
QcomModulePkg: BootLib: skip ValidateSlotGuids()LE.UM.2.3.7
When using community builds, we want to depend as less as possible on Qualcomm internal builds quirks. This function does a few checks which are relevant when booting a Qualcomm Android image, but not well suited for community builds. For example users might choose to remove system_x partition, in which case the bootloader wouldn't boot anymore. Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
-rw-r--r--QcomModulePkg/Library/BootLib/PartitionTableUpdate.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/QcomModulePkg/Library/BootLib/PartitionTableUpdate.c b/QcomModulePkg/Library/BootLib/PartitionTableUpdate.c
index ab0d7b15e..d88069411 100644
--- a/QcomModulePkg/Library/BootLib/PartitionTableUpdate.c
+++ b/QcomModulePkg/Library/BootLib/PartitionTableUpdate.c
@@ -1050,6 +1050,7 @@ UpdatePartitionTable (UINT8 *GptImage,
return Status;
}
+#if 0
STATIC CONST struct PartitionEntry *
GetPartitionEntry (CHAR16 *Partition)
{
@@ -1063,6 +1064,7 @@ GetPartitionEntry (CHAR16 *Partition)
}
return &PtnEntries[Index];
}
+#endif
STATIC struct PartitionEntry *
GetBootPartitionEntry (Slot *BootSlot)
@@ -1407,6 +1409,7 @@ EFI_STATUS ClearUnbootable (VOID)
return EFI_SUCCESS;
}
+#if 0
STATIC EFI_STATUS
ValidateSlotGuids (Slot *BootableSlot)
{
@@ -1469,6 +1472,7 @@ ValidateSlotGuids (Slot *BootableSlot)
DEBUG ((EFI_D_INFO, "Booting from slot (%s)\n", BootableSlot->Suffix));
return EFI_SUCCESS;
}
+#endif
EFI_STATUS
FindBootableSlot (Slot *BootableSlot)
@@ -1522,10 +1526,12 @@ FindBootableSlot (Slot *BootableSlot)
GUARD_OUT (HandleActiveSlotUnbootable ());
}
+#if 0
/* Validate slot suffix and partition guids */
if (Status == EFI_SUCCESS) {
GUARD_OUT (ValidateSlotGuids (BootableSlot));
}
+#endif
MarkPtnActive (BootableSlot->Suffix);
out:
if (Status != EFI_SUCCESS) {