firmware-tools/ptgen: Allow generation 0 size partitions
authorLinus Walleij <[email protected]>
Fri, 15 Feb 2019 16:02:14 +0000 (17:02 +0100)
committerChristian Lamparter <[email protected]>
Wed, 20 Feb 2019 17:51:31 +0000 (18:51 +0100)
commit6cdf08f02625975de32cce5ceab2e5d84a0134f0
treed50774eb3fed9eb212654bdae7f44698cf3a8830
parenta69e101ed1169f562fc030a783cd997d3f066b16
firmware-tools/ptgen: Allow generation 0 size partitions

The firmware on the D-Link DNS-313 NAS require two blank
partitions before the boot partition. Support this if
explicitly requested with a "-n" flag.

Tested on the D-Link DNS-313.

Signed-off-by: Christian Lamparter <[email protected]>
[Broken out from original patch]
Signed-off-by: Linus Walleij <[email protected]>
tools/firmware-utils/src/ptgen.c