parse: deviceinfo: arch is required (MR 2124)
The deviceinfo_arch property is required but not checked, this leads to weird errors if not caught.
This commit is contained in:
parent
4f793125d1
commit
8bc5366e60
|
@ -58,6 +58,10 @@ def sanity_check(info, path):
|
|||
" postmarketOS are 'handset' (for phones) and 'tablet'.")
|
||||
raise RuntimeError(f"Please add 'deviceinfo_chassis' to: {path}")
|
||||
|
||||
# "arch" is required
|
||||
if "arch" not in info or not info["arch"]:
|
||||
raise RuntimeError(f"Please add 'deviceinfo_arch' to: {path}")
|
||||
|
||||
# "chassis" validation
|
||||
chassis_type = info["chassis"]
|
||||
if chassis_type not in chassis_types:
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
deviceinfo_codename="multiple-kernels"
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_arch="aarch64"
|
||||
deviceinfo_append_dtb="yes"
|
||||
deviceinfo_dtb_mainline="mainline-dtb"
|
||||
deviceinfo_dtb_mainline_modem="mainline-modem-dtb"
|
||||
|
|
Loading…
Reference in New Issue