Skip to content

Commit 2bb8035

Browse files
committed
gen_contents.py: fix GPT file names to use .bin extension
Correct the filenames for GPT partitions in the generated contents.xml to use `.bin` instead of `.xml` to match with the actual content being generated at build time and to ensure the correct files are flashed. Signed-off-by: Viswanath Kraleti <[email protected]>
1 parent 4a042e0 commit 2bb8035

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gen_contents.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ def _add_file_elements(parent_element, pathname, file_path_flavor=None):
7878
for PhysicalPartitionNumber in range(0, len(PhyPartition)):
7979
new_download_file = ET.SubElement(build, "download_file")
8080
new_download_file.set("storage_type", DefaultStorageType)
81-
_add_file_elements(new_download_file, 'gpt_main%d.xml' % (PhysicalPartitionNumber))
81+
_add_file_elements(new_download_file, 'gpt_main%d.bin' % (PhysicalPartitionNumber))
8282
new_download_file = ET.SubElement(build, "download_file")
8383
new_download_file.set("storage_type", DefaultStorageType)
84-
_add_file_elements(new_download_file, 'gpt_backup%d.xml' % (PhysicalPartitionNumber))
84+
_add_file_elements(new_download_file, 'gpt_backup%d.bin' % (PhysicalPartitionNumber))
8585

8686
PartitionFile = build.find('partition_file')
8787
if PartitionFile is not None:

0 commit comments

Comments
 (0)