firmware-utils/ptgen: add support for hybrid MBR
authorOskari Lemmela <[email protected]>
Tue, 2 Mar 2021 19:42:08 +0000 (21:42 +0200)
committerDaniel Golle <[email protected]>
Wed, 3 Mar 2021 01:00:23 +0000 (01:00 +0000)
commitd36a8c8dc621cc0a00bf6c595525fb87fad9e29c
tree11c980d4e60291290cfc6ecf757814b98497ee11
parenteb054aaaf5953f31d102302d492e488e6f16270d
firmware-utils/ptgen: add support for hybrid MBR

Adding -H option copies partition to MBR after pmbr entry.
Max 3 partitions can be copied to MBR.

Hybrid MBR is needed only in special cases.
For example mt7622 SD card boot needs MBR entry with boot
flag enabled.

Signed-off-by: Oskari Lemmela <[email protected]>
src/ptgen.c