firmware-utils/ptgen: add support for hybrid MBR
authorOskari Lemmela <oskari@lemmela.net>
Tue, 2 Mar 2021 19:42:08 +0000 (21:42 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 3 Mar 2021 01:00:23 +0000 (01:00 +0000)
commit460dd2fe28f83e93f0b4e755131b3b3ab24fb0d9
tree1614dab04fec913b372a4e16292948e017e50b6b
parent4a078bd1354eaa2bba109d411218820e03b2e1de
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 <oskari@lemmela.net>
tools/firmware-utils/src/ptgen.c