pmb.parse.bootimg: Add preliminary support for header v2
Adds support for generating correct packaging for boot.img header v2 devices such as the Volla Phone 22 and OnePlus 9 (already in pmaports).
Previously adding support for a device using header v2 required the porter to remember:
- Set
deviceinfo_append_dtb="false"
as appending the dtb after kernel image is pointless and not read by the bootloader with header v2 - Add
make dtbs_install
to the kernelAPKBUILD
so you can build the boot.img with a select DTB file - Set e.g.
deviceinfo_bootimg_custom_args="--header_version 2 --dtb_offset 0x0000000001f00000 --dtb /usr/share/dtb/qcom/sm8350-oneplus-lemonade.dtb"
as seen on the OnePlus 9 currently so a header v2 image is made at all
This MR aims to simplify all of this by generating correct packaging out-of-the-box when a header v2 boot.img is analyzed during a new port's pmbootstrap init
.
Depends on boot-deploy!15 (merged) to be useful.
Edited by Jami Kettunen