tools: pack: flash bootconfig only for non-apps image

Update pack script to flash bootconfig only for non-apps
image.

Change-Id: I85be15e48b4e4f3ed40826d0c395f2cc8e5d3f88
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
This commit is contained in:
Ram Kumar D 2023-09-12 15:03:20 +05:30
parent 5e1c7f0f72
commit 436effe3c2

View file

@ -1600,7 +1600,7 @@ class Pack(object):
if (multi_wifi_fw == "true" or tiny_16m == "true") and 'wififw_type_min' in section.attrib:
wifi_fw_type_min = section.attrib['wififw_type_min']
wifi_fw_type_max = section.attrib['wififw_type_max']
elif 'bootconfig_type_max' in section.attrib:
elif 'bootconfig_type_max' in section.attrib and image_type == "all":
partition = section.attrib['label']
else:
try:
@ -2122,7 +2122,7 @@ class Pack(object):
wifi_fw_type_min = section.attrib['wififw_type_min']
wifi_fw_type_max = section.attrib['wififw_type_max']
partition = section.attrib['label']
elif "bootconfig_type_max" in section.attrib:
elif "bootconfig_type_max" in section.attrib and image_type == "all":
partition = section.attrib['label']
else:
try:
@ -2168,11 +2168,10 @@ class Pack(object):
if section_conf == "bootconfig" or section_conf == "bootconfig1":
try:
if image_type == "all" or section[8].attrib['image_type'] == image_type:
ret = self.__gen_script_bootconfig(images, flinfo, partition, section)
if ret == 1:
continue
except KeyError, e:
ret = self.__gen_script_bootconfig(images, flinfo, partition, section)
if ret == 1:
continue
except KeyError as e:
continue
if section_conf == "cdt" or section_conf == "cdt_1" or section_conf == "ddrconfig":