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: Parse partition check for 0:MIBIB
Change-Id: I2c4c3aeadd7ddb3b81d03c265a6e03ccf3a75dc6 Signed-off-by: Kavin A <kavia@codeaurora.org>
This commit is contained in:
parent
2cf0f1cd99
commit
16ac7dde0e
1 changed files with 4 additions and 1 deletions
|
|
@ -2134,7 +2134,10 @@ class Pack(object):
|
|||
|
||||
part_file = SRC_DIR + "/" + ARCH_NAME + "/flash_partition/" + ftype + "-partition.xml"
|
||||
part_xml = ET.parse(part_file)
|
||||
partition = part_xml.find(".//partitions/partition[name='0:MIBIB']")
|
||||
if (part_xml.find(".//partitions/partition[name='0:MIBIB']")):
|
||||
partition = part_xml.find(".//partitions/partition[name='0:MIBIB']")
|
||||
else:
|
||||
partition = part_xml.find(".//partitions/partition[2]")
|
||||
part_fname = partition[8].text
|
||||
part_fname = os.path.join(self.images_dname, part_fname)
|
||||
pagesize = int(part_info.find(".//page_size").text)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue