ptgen: allow non-default placement of gpt entry table
authorMikhail Kshevetskiy <[email protected]>
Sun, 29 Dec 2024 23:58:15 +0000 (02:58 +0300)
committerDaniel Golle <[email protected]>
Tue, 23 Sep 2025 22:15:33 +0000 (23:15 +0100)
commit3f2d14829150c5a735271fcfd27dea0e898f6fb0
tree31411550e857af2437cddf4b74264cc408974a10
parentf1f98b0b8456e89f6c959d8f028c5204da82365e
ptgen: allow non-default placement of gpt entry table

Usually, the primary GPT entries places in the sector 2 (next sector after
the primary GPT header). The boot ROM of some SoCs (like Airoha AN7581) on
the other hand reads the bootloader code from only one fixed offset which
overlaps with the normal position of the primary GPT entries.

This patch adds a parameter to ptgen to customise the position of the primary
GPT entries.

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