pmb: Properly type Bootimg (MR 2464)

This could be done better with a real class instead of a TypedDict, but
it's better than a regular dict.
This commit is contained in:
Newbyte 2024-10-29 17:27:50 +01:00
parent f2c7fa1107
commit 826bb4f2dd
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 53 additions and 16 deletions

View file

@ -29,6 +29,23 @@ class AportGenEntry(TypedDict):
confirm_overwrite: bool
class Bootimg(TypedDict):
cmdline: str
qcdt: str
qcdt_type: str | None
dtb_offset: str | None
dtb_second: str
base: str
kernel_offset: str
ramdisk_offset: str
second_offset: str
tags_offset: str
pagesize: str
header_version: str | None
mtk_label_kernel: str
mtk_label_ramdisk: str
# Property list generated with:
# $ rg --vimgrep "((^|\s)args\.\w+)" --only-matching | cut -d"." -f3 | sort | uniq
class PmbArgs(Namespace):