add lk2nd makefile target

This commit is contained in:
Daniel Barlow 2024-07-21 21:02:17 +01:00
parent c5a546f10f
commit 7ad42c43b2
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,10 @@ default toplevel:
android-bootimg android-recovery: android-bootimg android-recovery:
nix-build $(NFLAGS) -A outputs.android.$@ -o $@ nix-build $(NFLAGS) -A outputs.android.$@ -o $@
lk2nd:
nix-build $(NFLAGS) ../mobile-nixos --argstr device motorola-harpia -A pkgs.pkgsBuildBuild.lk2nd.msm8916 -o lk2nd
update: toplevel update: toplevel
nix-copy-closure --to $(DEVICE) -v --include-outputs ./toplevel nix-copy-closure --to $(DEVICE) -v --include-outputs ./toplevel
ssh $(DEVICE) "nix-env --profile /nix/var/nix/profiles/system --set `readlink toplevel` && /nix/var/nix/profiles/system/bin/switch-to-configuration switch" ssh $(DEVICE) "nix-env --profile /nix/var/nix/profiles/system --set `readlink toplevel` && /nix/var/nix/profiles/system/bin/switch-to-configuration switch"