Skip to content

Commit aab48ce

Browse files
committed
ptool: Remove misapplied logic for partition alignment
Remove incorrect condition checking ALIGN_PARTITIONS_TO_PERFORMANCE_BOUNDARY. Ensure partitions align correctly to required boundaries such as 4KB. Prevent logic errors caused by unnecessary alignment checks. Signed-off-by: Xiaoming Zhao <[email protected]>
1 parent 1cb091b commit aab48ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ptool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ def CreateGPTPartitionTable(PhysicalPartitionNumber,UserProvided=False):
500500

501501
##import pdb; pdb.set_trace() ## verifying sizes
502502

503-
if HashInstructions['PERFORMANCE_BOUNDARY_IN_KB']>0 and HashInstructions['ALIGN_PARTITIONS_TO_PERFORMANCE_BOUNDARY'] is False:
503+
if HashInstructions['PERFORMANCE_BOUNDARY_IN_KB']>0:
504504
PrintBigWarning("WARNING: HashInstructions['PERFORMANCE_BOUNDARY_IN_KB'] is %i KB\n\tbut HashInstructions['ALIGN_PARTITIONS_TO_PERFORMANCE_BOUNDARY'] is FALSE!!\n\n" % HashInstructions['PERFORMANCE_BOUNDARY_IN_KB'])
505505
PrintBigWarning("WARNING: This means partitions will *NOT* be aligned to a HashInstructions['PERFORMANCE_BOUNDARY_IN_KB'] of %i KB !!\n\n" % HashInstructions['PERFORMANCE_BOUNDARY_IN_KB'])
506506
print("To correct this, partition.xml should look like this\n")

0 commit comments

Comments
 (0)