Skip to content

Commit 819cbad

Browse files
committed
gen_partition.py: rename functions for clarity
Renamed functions to better reflect their purpose: - `generate_ptool_xml` → `generate_emmc_xml` - `generate_nand_mbn_gen_xml` → `generate_nand_xml` These changes have no functional impact. Signed-off-by: Viswanath Kraleti <[email protected]>
1 parent abd0ffd commit 819cbad

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

gen_partition.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ def parse_disk_entry(disk_entry):
151151
print (str(e))
152152
usage()
153153

154-
def generate_ptool_xml (disk_params, partition_entries_dict, output_xml):
155-
print("Generating ptool XML %s" %(output_xml))
154+
def generate_emmc_xml (disk_params, partition_entries_dict, output_xml):
155+
print("Generating EMMC XML %s" %(output_xml))
156156
root = ET.Element("configuration")
157157
parser_instruction_text = ""
158158

@@ -207,15 +207,16 @@ def generate_ufs_xml (disk_params, partition_entries_dict, output_xml):
207207
f.write(xmlstr)
208208

209209

210-
def generate_nand_mbn_gen_xml (disk_params, partition_entry):
211-
print("Generating nand_mbn_gen XML")
210+
def generate_nand_xml (disk_params, partition_entries_dict, output_xml):
211+
print("Generating NAND XML %s" %(output_xml))
212+
print("NAND XML generation is curently not supported.")
212213

213214
def generate_partition_xml (disk_entry, partition_entries_dict, output_xml):
214215
parse_disk_entry(disk_entry)
215216
if disk_params["type"] == "emmc":
216-
generate_ptool_xml(disk_params, partition_entries_dict, output_xml)
217+
generate_emmc_xml(disk_params, partition_entries_dict, output_xml)
217218
elif disk_params["type"] == "nand":
218-
generate_nand_mbn_gen_xml(disk_params, partition_entries_dict, output_xml)
219+
generate_nand_xml(disk_params, partition_entries_dict, output_xml)
219220
elif disk_params["type"] == "ufs":
220221
generate_ufs_xml(disk_params, partition_entries_dict, output_xml)
221222

0 commit comments

Comments
 (0)