Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: SmingHub/Sming
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 207969b4c15096ae65e33bbd276b35e336295536
Choose a base ref
..
head repository: SmingHub/Sming
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 29f116275332aaaed117593996551446465be2f5
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 Sming/Components/Storage/Tools/hwconfig/partition.py
2 changes: 1 addition & 1 deletion Sming/Components/Storage/Tools/hwconfig/partition.py
Original file line number Diff line number Diff line change
@@ -503,7 +503,7 @@ def verify(self, arch, secure):
align = self.alignment(arch)
if self.address % align:
raise ValidationError(self, "Offset 0x%x is not aligned to 0x%x" % (self.address, align))
if self.size is None:
if self.size is None or self.size == 0:
raise ValidationError(self, "Size field is not set")
if self.size % align and secure:
raise ValidationError(self, "Size 0x%x is not aligned to 0x%x" % (self.size, align))