From 7e61ff47e7e9aff06f4d9990aa1e8580ddf106d9 Mon Sep 17 00:00:00 2001 From: sgnanase Date: Thu, 12 Oct 2023 18:58:33 +0530 Subject: [PATCH] Improve compilation speed for android build FFTF python script used for flashfiles.zip in IVI. It uses ZipWrite python api to create it. This method is time consuming and adds several unwanted build steps that adds overhead. Like, flash.json generation, unpacking of target files, installer.cmd generation. This fix, changes FFTF python to a normal FFTF bash script, which uses tar + pigz combo for faster flashfiles generation. NOTE: We deprecate flash.json as its used only by PFT & installer.cmd will be maintained in product config repo. Tracked-On: OAM-112083 Signed-off-by: sgnanase --- groups/flashfiles/ini/files.spec | 2 ++ groups/flashfiles/ini/installer.cmd | 16 ++++++++++++++++ groups/flashfiles/ini/product.mk | 1 + 3 files changed, 19 insertions(+) create mode 100644 groups/flashfiles/ini/files.spec create mode 100644 groups/flashfiles/ini/installer.cmd create mode 100644 groups/flashfiles/ini/product.mk diff --git a/groups/flashfiles/ini/files.spec b/groups/flashfiles/ini/files.spec new file mode 100644 index 000000000..71552ce94 --- /dev/null +++ b/groups/flashfiles/ini/files.spec @@ -0,0 +1,2 @@ +[extrafiles] +installer.cmd : "hardcoded installer.cmd, need to be updated based on partition change" diff --git a/groups/flashfiles/ini/installer.cmd b/groups/flashfiles/ini/installer.cmd new file mode 100644 index 000000000..1723c0ef8 --- /dev/null +++ b/groups/flashfiles/ini/installer.cmd @@ -0,0 +1,16 @@ +flashing unlock +flash gpt gpt.bin +flash bootloader bootloader.img +erase teedata +erase misc +erase persistent +erase metadata +format userdata +format config +flash vbmeta_a vbmeta.img +flash vendor_boot_a vendor_boot.img +flash acpio_a acpio.img +flash boot_a boot.img +flash super super.img.part00 super.img.part01 +flashing lock +continue diff --git a/groups/flashfiles/ini/product.mk b/groups/flashfiles/ini/product.mk new file mode 100644 index 000000000..8caf5c9e6 --- /dev/null +++ b/groups/flashfiles/ini/product.mk @@ -0,0 +1 @@ +PRODUCT_COPY_FILES += $(LOCAL_PATH)/extra_files/flashfiles/installer.cmd:$(PRODUCT_OUT)/installer.cmd