@@ -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
213214def 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