forked from Mirror/pmbootstrap
pmb: Rename pmb:gpu-accel and deviceinfo_gpu_accelerated
pmb:gpu-accel -> pmb:drm deviceinfo_gpu_accelerated -> deviceinfo_drm Allow deviceinfo_gpu_accelerated as deprecated property Keep pmb:gpu-accel as valid option to avoid failures for older branches of pmaports. Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2591
This commit is contained in:
parent
496d1b657d
commit
d7b12d98e6
4 changed files with 11 additions and 7 deletions
|
@ -110,7 +110,7 @@ class Deviceinfo:
|
|||
chassis: str
|
||||
keyboard: str | None = "" # deprecated
|
||||
external_storage: str | None = ""
|
||||
gpu_accelerated: bool | None = False
|
||||
drm: bool | None = False
|
||||
dev_touchscreen: str | None = ""
|
||||
dev_touchscreen_calibration: str | None = ""
|
||||
append_dtb: str | None = ""
|
||||
|
@ -279,6 +279,8 @@ class Deviceinfo:
|
|||
# logging.warning(f"deviceinfo: {key} is not a known attribute")
|
||||
if key == "arch":
|
||||
setattr(self, key, Arch.from_str(value))
|
||||
elif key == "gpu_accelerated": # deprecated
|
||||
setattr(self, "drm", value)
|
||||
else:
|
||||
setattr(self, key, value)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue