aboutsummaryrefslogtreecommitdiff
path: root/state.mk
diff options
context:
space:
mode:
Diffstat (limited to 'state.mk')
-rw-r--r--state.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/state.mk b/state.mk
new file mode 100644
index 0000000..394b78e
--- /dev/null
+++ b/state.mk
@@ -0,0 +1,18 @@
+state/container_img: Containerfile
+ $(CTR) build --tag $(CTR_IMG_TAG) .
+ touch $@
+
+state/submodules:
+ git submodule update --init
+ touch $@
+
+state/sdcard_part:
+ $(AS_ROOT) util/part $(SDCARD_DISK)
+ touch $@
+
+state/sdcard_fmt: state/sdcard_part
+ $(eval $(shell state/gen))
+ $(AS_ROOT) mkfs.vfat -a -F 16 -n BOOT $(SDCARD_PART_BOOT)
+ $(AS_ROOT) mkfs.ext4 -F -L ROOTFS $(SDCARD_PART_ROOTFS)
+ touch $@
+