summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2023-06-14 15:23:02 -0400
committerAndrew Cady <d@jerkface.net>2023-06-14 15:23:02 -0400
commitbbeab7821e05955ea000b3348542f9fe6de47a97 (patch)
tree659821a0c3cf02cbc2d964f9b182682da807dbdd
parente3876ae7b7dec101895922a53e162d71ee17c2d0 (diff)
makefile variable determines size of persist.img
-rw-r--r--partitions/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/partitions/Makefile b/partitions/Makefile
index 4a00333..20e9afe 100644
--- a/partitions/Makefile
+++ b/partitions/Makefile
@@ -9,11 +9,12 @@ whole.img:
9key.img: 9key.img:
10 partvi key 10 partvi key
11 11
12PERSIST_SIZE=20G
12persist.img: 13persist.img:
13 [ ! -e $@ ] 14 [ ! -e $@ ]
14 fallocate -l 20G $@ 15 fallocate -l "$(PERSIST_SIZE)" $@
15 truncate -s 0 $@ 16 truncate -s 0 $@
16 truncate -s 20G $@ 17 truncate -s "$(PERSIST_SIZE)" $@
17 18
18persist := $(shell [ -e persist.img ] && printf %s '-drive file=persist.img,media=disk,driver=raw' || true) 19persist := $(shell [ -e persist.img ] && printf %s '-drive file=persist.img,media=disk,driver=raw' || true)
19 20