mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
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:
parent
6f2b23d6ad
commit
f98fa75f86
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue