firmware-tools/ptgen: Allow generation 0 size partitions
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 15 Feb 2019 16:02:14 +0000 (17:02 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
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 <chunkeey@gmail.com>
[Broken out from original patch]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
tools/firmware-utils/src/ptgen.c