From b2c1ec334dd3ed358a014472fb0c22b966e59e46 Mon Sep 17 00:00:00 2001 From: Timple Raj M Date: Fri, 29 Sep 2023 19:43:34 +0530 Subject: [PATCH] pack_v2: Update the image_type condition check for 0:WIFIFW This patch updates the image_type condition check for 0:WIFIFW since emmc-partition.xml each partition information is parsed in single xml tag but for other partition.xml files each partition information is mentioned in multiple xml tags For Example ipq5332/flash_partition/tiny-nor-partition.xml 0:WIFIFW 5500 0 0 0xFF 0xFF 0x00 0xFF wifi_fw_ipq5332_qcn6432_squashfs.img ipq5332/flash_partition/emmc-partition.xml Change-Id: I1b5835b0835f2c05958924ad6ce5f403e934aac4 Signed-off-by: Timple Raj M --- tools/pack_v2.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/pack_v2.py b/tools/pack_v2.py index 46f0186a26..a647c7b1f7 100644 --- a/tools/pack_v2.py +++ b/tools/pack_v2.py @@ -1046,7 +1046,12 @@ class Pack(object): if no_fw_mach_ids and filename != "": self.__gen_flash_script_update_for_wififw(partition, filename, flinfo, script, no_fw_mach_ids) - if image_type == "all" or section.attrib['image_type'] == image_type: + if flinfo.type == "emmc": + section_img_type = section.attrib['image_type'] + else: + section_img_type = section[8].attrib['image_type'] + + if image_type == "all" or section_img_type == image_type: for wifi_fw_type in wifi_fw_list: fw_name = wifi_fw_type if fw_name == "":