aboutsummaryrefslogtreecommitdiff
path: root/state.mk
blob: a91a19cc8a371beb09b123bf6f5eeeb4706e9ebe (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: .gitmodules
	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 $@