aboutsummaryrefslogtreecommitdiff
path: root/state.mk
blob: 394b78e2a0ae6816b0f6b6451f07d334d57931f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 $@