Skip to content

Commit 93305b1

Browse files
gen_partition.py: add spinor as a valid disk type
Add 'spinor' as a valid disk type, following the same process for partition generation as used with emmc and nvme (single_disk_xml). Signed-off-by: Ricardo Salveti <[email protected]>
1 parent 2c81567 commit 93305b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gen_partition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def generate_multi_lun_xml (disk_params, partition_entries_dict, output_xml):
207207
def generate_partition_xml (disk_entry, partition_entries_dict, output_xml):
208208
parse_disk_entry(disk_entry)
209209
print("Generating %s XML %s" %(disk_params["type"].upper(), output_xml))
210-
if disk_params["type"] in ("emmc", "nvme"):
210+
if disk_params["type"] in ("emmc", "nvme", "spinor"):
211211
generate_single_disk_xml(disk_params, partition_entries_dict, output_xml)
212212
elif disk_params["type"] == "ufs":
213213
generate_multi_lun_xml(disk_params, partition_entries_dict, output_xml)

0 commit comments

Comments
 (0)