summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2023-06-14 15:23:02 -0400
committeru <u@billy>2023-11-17 08:44:10 -0500
commit27ff62784b82b18421119e97be206caba117dc87 (patch)
treed37e10debf30c6c81dd3b39b4b6fa26e1dc9a96f
parent9d3167c1474351ccbc8a6f02c894165724efa699 (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