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)
commit20f9171447dc0925515028f214213ccd231759b2
treeec0163c949dde4aac17076710e988786865d9946
parent761267aed712332c82b61a9217421e030409996f
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]>
src/ptgen.c