From db31f148ecb6dc6c2e9b19fb1527d89519333679 Mon Sep 17 00:00:00 2001 From: Saahil Tomar Date: Wed, 5 Apr 2023 10:28:47 +0530 Subject: [PATCH] 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 --- tools/pack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/pack.py b/tools/pack.py index af66d3ba29..ebae72195b 100644 --- a/tools/pack.py +++ b/tools/pack.py @@ -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)