forked from Mirror/pmbootstrap
pmbootstrap deviceinfo_parse: new action (MR 1986)
Co-Authored-By: Oliver Smith <ollieparanoid@postmarketos.org>
This commit is contained in:
parent
4d3c14f6c1
commit
d0b32b3b05
3 changed files with 29 additions and 0 deletions
|
@ -15,6 +15,7 @@ import pmb.chroot.other
|
|||
import pmb.config
|
||||
import pmb.export
|
||||
import pmb.flasher
|
||||
import pmb.helpers.devices
|
||||
import pmb.helpers.git
|
||||
import pmb.helpers.lint
|
||||
import pmb.helpers.logging
|
||||
|
@ -367,6 +368,20 @@ def kconfig(args):
|
|||
pmb.build.menuconfig(args, args.package)
|
||||
|
||||
|
||||
def deviceinfo_parse(args):
|
||||
# Default to all devices
|
||||
devices = args.devices
|
||||
if not devices:
|
||||
devices = pmb.helpers.devices.list_codenames(args)
|
||||
|
||||
# Iterate over all devices
|
||||
kernel = args.deviceinfo_parse_kernel
|
||||
for device in devices:
|
||||
print(f"{device}, with kernel={kernel}:")
|
||||
print(json.dumps(pmb.parse.deviceinfo(args, device, kernel), indent=4,
|
||||
sort_keys=True))
|
||||
|
||||
|
||||
def apkbuild_parse(args):
|
||||
# Default to all packages
|
||||
packages = args.packages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue