tools: pack: Add check constraint for CDT_1

This change checks if 0:CDT_1 partition exists and then flashes cdt.bin.
Previously, check existed only for 0:CDT. The change allows for creation
of single image with proper cdt_1 name and appends it to the single image.
With this, we can successfully use the CDT_1 alternate partition for images.

Change-Id: I100dc789b54805c699ba6f30d5cb1b74734b1bd9
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
This commit is contained in:
Saahil Tomar 2023-04-05 10:28:47 +05:30 committed by Gerrit - the friendly Code Review server
parent 6f2b23d6ad
commit f98fa75f86

View file

@ -1504,7 +1504,7 @@ class Pack(object):
diff_files = "" # Clear for next iteration
# Get machID
if partition != "0:CDT" and partition != "0:DDRCONFIG":
if partition != "0:CDT" and partition != "0:CDT_1" and partition != "0:DDRCONFIG":
machid = None
else:
try:
@ -1980,7 +1980,7 @@ class Pack(object):
section_conf = section_conf.lower()
if section_conf == "cdt" or section_conf == "ddrconfig":
if section_conf == "cdt" or section_conf == "cdt_1" or section_conf == "ddrconfig":
try:
if image_type == "all" or section[8].attrib['image_type'] == image_type:
self.__gen_script_cdt(images, flinfo, root, section_conf, partition)