blob: 8b1bcbe5fd73b6c9ec6d1d0c22997989b3ac01b5 (
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
33
34
35
36
|
_BUILD_DIR=./.build
all:
cat Makefile
v1:
make _pikvm PIKVM_PLATFORM=v1
_pikvm: $(_BUILD_DIR)
rm -rf $(_BUILD_DIR)/stages/pikvm
rm -rf $(_BUILD_DIR)/builder/scripts/pikvm
cp -a platforms/$(PIKVM_PLATFORM) $(_BUILD_DIR)/stages/pikvm
cd $(_BUILD_DIR) && make _rpi \
PLATFORM=rpi-2 \
BUILDER=pikvm-builder \
STAGES="base os ssh watchdog ro pikvm" \
HOSTNAME=pikvm
$(_BUILD_DIR):
git clone --depth=1 https://github.com/mdevaev/pi-builder $(_BUILD_DIR)
format: $(_BUILD_DIR)
cd $(_BUILD_DIR) && make format
install: $(_BUILD_DIR)
cd $(_BUILD_DIR) && make install
scan: $(_BUILD_DIR)
cd $(_BUILD_DIR) && make scan
clean: $(_BUILD_DIR)
cd $(_BUILD_DIR) && make clean
clean-all:
-cd $(_BUILD_DIR) && make clean-all
rm -rf $(_BUILD_DIR)
|