summaryrefslogtreecommitdiff
path: root/os/Makefile
blob: f269644821024dcba6953241cb4645acc0561fe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
all:
	cat Makefile

v1:
	make _pikvm PIKVM_PLATFORM=v1

_pikvm: pi-builder
	rm -rf pi-builder/builder/scripts/pikvm
	cp -a platforms/$(PIKVM_PLATFORM) pi-builder/builder/scripts/pikvm
	cd pi-builder && make _rpi \
		PLATFORM=rpi-2 \
		BUILDER=pikvm-builder \
		STAGES="base keys watchdog ro pikvm"

pi-builder:
	git clone https://github.com/mdevaev/pi-builder --depth=1

format: pi-builder
	cd pi-builder && make format

install: pi-builder
	cd pi-builder && make install

scan: pi-builder
	cd pi-builder && make scan

clean: pi-builder
	cd pi-builder && make clean

clean-all:
	-cd pi-builder && make clean
	rm -rf pi-builder