From 1692c3ecc6af3d743c936db40ecd90a9161b119f Mon Sep 17 00:00:00 2001 From: "faqiang.zhu" Date: Thu, 26 Dec 2019 13:35:28 +0800 Subject: [PATCH] MA-16191 eliminate warning info about "is-logical" when flash images "is-logical" is used to check whether the partition to be flashed is dynamic partition, if it is, a partition resize command will be issued by host fastboot. this can be well processed in fastbootd. process this "is-logical" in uboot, now there is no logical partition, for every partition found in u-boot, returns "no". Signed-off-by: faqiang.zhu Change-Id: I4d93a0c7b32fed9fe5a5ac846bc4e97bfbe69e67 (cherry picked from commit 7b27a2290aec78b49ce7c2aed497db858f436eb4) (cherry picked from commit cfc8e3034c5ce4f6f777bc7faff3dbb880de43fe) --- drivers/fastboot/fb_fsl/fb_fsl_getvar.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/fastboot/fb_fsl/fb_fsl_getvar.c b/drivers/fastboot/fb_fsl/fb_fsl_getvar.c index 77bd996c2d..c11b253e55 100644 --- a/drivers/fastboot/fb_fsl/fb_fsl_getvar.c +++ b/drivers/fastboot/fb_fsl/fb_fsl_getvar.c @@ -189,6 +189,15 @@ static int get_single_var(char *cmd, char *response) } else { strncat(response, fb_part->fstype, chars_left); } + } else if ((str = strstr(cmd, "is-logical:"))) { + str +=strlen("is-logical:"); + struct fastboot_ptentry* fb_part; + fb_part = fastboot_flash_find_ptn(str); + if (!fb_part) { + return -1; + } else { + snprintf(response + strlen(response), chars_left, "no"); + } } else if (!strcmp_l1("version-baseband", cmd)) { strncat(response, "N/A", chars_left); } else if (!strcmp_l1("version-bootloader", cmd) || -- 2.17.1