factoryBurn: dnl: add burn single bootloader cpy [1/1]
PD#SWPL-196940
Problem:
need support burn only one bootloader copy
Solution:
add support part bootloader-user/boot0/boot1
Verify:
t950d5
Change-Id: Ieb700423f54501a73235d95bc8234d73eb948997
Signed-off-by: yihui wu <yihui.wu@amlogic.com>
diff --git a/drivers/fastboot/fb_command.c b/drivers/fastboot/fb_command.c
index a6a1664..5650311 100644
--- a/drivers/fastboot/fb_command.c
+++ b/drivers/fastboot/fb_command.c
@@ -610,12 +610,14 @@
char *slot_name = NULL;
char partname[32] = {0};
+#ifdef CONFIG_MESON_S7D
ret = update_boot_hdr_4_s7d_reva(fastboot_buf_addr, image_size, 0);
if (ret) {
printf("Failed to write s7d reva boot0\n");
fastboot_fail("Failed to write s7d reva boot0", response);
return;
}
+#endif//#ifdef CONFIG_MESON_S7D
slot_name = env_get("active_slot");
if (slot_name && (strcmp(slot_name, "_a") == 0))
@@ -807,12 +809,14 @@
strcpy(name, "dtb");
} else if (!strcmp(cmd_parameter, "bootloader-boot0") ||
!strcmp(cmd_parameter, "bootloader-boot1")) {
+#ifdef CONFIG_MESON_S7D
ret = update_boot_hdr_4_s7d_reva(fastboot_buf_addr, image_size, 0);
if (ret) {
printf("Failed to write s7d reva boot0\n");
fastboot_fail("Failed to write s7d reva boot0-1", response);
return;
}
+#endif//#ifdef CONFIG_MESON_S7D
strlcpy(name, cmd_parameter, 31);
} else {
strlcpy(name, cmd_parameter, 31);