biscuit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 63359b5d064a119cf4354a05bd2263d110dec6dc
parent f7aac2054c07e4170a1b81868d4f35f86057a282
Author: Daniel Barlow <dan@telent.net>
Date:   Mon, 19 Feb 2024 16:07:29 +0000

no need for boot-in-system.img to rebuild everything

Diffstat:
MMakefile | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -9,16 +9,18 @@ default toplevel: android-bootimg android-recovery: nix-build $(NFLAGS) -A outputs.android.$@ -o $@ -update: toplevel android-bootimg +update: 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" + +update-boot: update android-bootimg cat android-bootimg | ssh $(DEVICE) "cat >/boot/boot.img" -boot-in-system.img: default +boot-in-system.img: android-bootimg dd if=/dev/zero of=$@ bs=1M count=50 mkdir -p boot-in-system -rm -f boot-in-system/boot.img - (cd boot-in-system && cp ../default/boot.img .) + (cd boot-in-system && cp ../android-bootimg ./boot.img) mke2fs -d boot-in-system boot-in-system.img