flasher: heimdall: take depends from pmaports.cfg
Reviewed-by: Oliver Smith <ollieparanoid@postmarketos.org> Co-developed-by: Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20221114115705.1107886-1-vaino@vke.fi%3E
This commit is contained in:
parent
ab0aa7f956
commit
ed7b0273f5
|
@ -936,7 +936,7 @@ flashers = {
|
||||||
# Some Samsung devices need a 'boot.img' file, just like the one generated
|
# Some Samsung devices need a 'boot.img' file, just like the one generated
|
||||||
# fastboot compatible devices. Example: s7562, n7100
|
# fastboot compatible devices. Example: s7562, n7100
|
||||||
"heimdall-bootimg": {
|
"heimdall-bootimg": {
|
||||||
"depends": ["heimdall", "avbtool"],
|
"depends": [], # pmaports.cfg: supported_heimdall_depends
|
||||||
"actions": {
|
"actions": {
|
||||||
"list_devices": [["heimdall", "detect"]],
|
"list_devices": [["heimdall", "detect"]],
|
||||||
"flash_rootfs": [
|
"flash_rootfs": [
|
||||||
|
|
|
@ -28,6 +28,10 @@ def install_depends(args):
|
||||||
pmaports_cfg = pmb.config.pmaports.read_config(args)
|
pmaports_cfg = pmb.config.pmaports.read_config(args)
|
||||||
depends = pmaports_cfg.get("supported_fastboot_depends",
|
depends = pmaports_cfg.get("supported_fastboot_depends",
|
||||||
"android-tools,avbtool").split(",")
|
"android-tools,avbtool").split(",")
|
||||||
|
elif method == "heimdall-bootimg":
|
||||||
|
pmaports_cfg = pmb.config.pmaports.read_config(args)
|
||||||
|
depends = pmaports_cfg.get("supported_heimdall_depends",
|
||||||
|
"heimdall,avbtool").split(",")
|
||||||
|
|
||||||
pmb.chroot.apk.install(args, depends)
|
pmb.chroot.apk.install(args, depends)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue