pmb.parse.bootimg: detect mediatek header (MR 1955)

Some Mediatek devices have a special 512-byte header around the zImage
which must be generated so the device boots.

Support for that exists for a while in postmarketOS but detection was
missing. Add that.
This commit is contained in:
Luca Weiss 2020-07-05 21:42:54 +02:00
parent 9718fd294a
commit 86d61b8012
No known key found for this signature in database
GPG key ID: 72D843B89D4DD756
7 changed files with 47 additions and 1 deletions

View file

@ -98,6 +98,7 @@ def test_questions_bootimg(args, monkeypatch):
"pagesize": "2048",
"cmdline": "bootopt=64S3,32S1,32S1",
"qcdt": "false",
"mtk_mkimage": "false",
"dtb_second": "false"}
assert func(args) == output