forked from Mirror/pmbootstrap
parse: deviceinfo: make Deviceinfo a class (MR 2252)
Introduce a Deviceinfo class and use it rather than the dictionary. This gives us sweet sweet autocomplete, and lays the foundation for having a proper deviceinfo validator in the future. Additionally, continue refactoring out args... Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
b51d31acab
commit
97bd8b96ec
27 changed files with 372 additions and 288 deletions
|
@ -190,7 +190,7 @@ def package_kernel(args: PmbArgs):
|
|||
modify_apkbuild(pkgname, aport)
|
||||
apkbuild_path = context.config.work / "aportgen/APKBUILD"
|
||||
|
||||
arch = pmb.parse.deviceinfo()["arch"]
|
||||
arch = pmb.parse.deviceinfo().arch
|
||||
apkbuild = pmb.parse.apkbuild(apkbuild_path, check_pkgname=False)
|
||||
if apkbuild["_outdir"]:
|
||||
kbuild_out = apkbuild["_outdir"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue