ptgen: create separate images for gpt data structure
authorMikhail Kshevetskiy <[email protected]>
Mon, 30 Dec 2024 03:44:59 +0000 (06:44 +0300)
committerDaniel Golle <[email protected]>
Tue, 23 Sep 2025 22:15:33 +0000 (23:15 +0100)
commit9fa340db640eda0b998d7ba2b24727284d6f12c2
treef2a5274f50bc86379475bf267f4539e06f318356
parent78d8084c737692c3e0924762f8bc1fa80268c4f4
ptgen: create separate images for gpt data structure

This patch creates 2 or 3 gpt images:
 image.start: PMBR + GPT Header
 image.entry: GPT Entry Table
 image.end:   GPT Entry Table + Alternative GPT HEADER

If GPT Entry table follow GPT Header without gap, then
image.entry will be joined to the end of image.start file.

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