From 02fe544439eb7908bce0296e7c6e0f45286d0d90 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Mon, 5 Jun 2023 04:49:35 +0300 Subject: [PATCH] sm6375-common: [PATCH] fixup! munch: gpt-utils: Update PTN_SWAP_LIST and handle multiimg(oem/qti) Change-Id: Iee2dff5e4550239319326e4c707f89006c13ddb8 --- gpt-utils/gpt-utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpt-utils/gpt-utils.cpp b/gpt-utils/gpt-utils.cpp index 70ac6bc..4b61a25 100644 --- a/gpt-utils/gpt-utils.cpp +++ b/gpt-utils/gpt-utils.cpp @@ -241,7 +241,7 @@ static int gpt_boot_chain_swap(const uint8_t *pentries_start, uint8_t ptn_swap[PTN_ENTRY_SIZE]; //Skip the xbl, multiimgoem, multiimgqti partitions on UFS devices. That is handled //seperately. - if ((gpt_utils_is_ufs_device() && !strncmp(ptn_swap_list[i],PTN_XBL,strlen(PTN_XBL))) + if (gpt_utils_is_ufs_device() && !strncmp(ptn_swap_list[i],PTN_XBL,strlen(PTN_XBL)) || !strncmp(ptn_swap_list[i],PTN_MULTIIMGOEM,strlen(PTN_MULTIIMGOEM)) || !strncmp(ptn_swap_list[i],PTN_MULTIIMGQTI,strlen(PTN_MULTIIMGQTI))) continue;