summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-07-09 02:48:16 +0000
committerDevaev Maxim <[email protected]>2018-07-09 02:48:16 +0000
commit47fdafb495362e082f71e6ccdab729f0281c2653 (patch)
tree6f7bd58485223b326a55b0ddae4119f4ea09c9a6 /os
parentc53132a2b8ba15223bbf43461d2a46b13ac53a79 (diff)
fixed os build
Diffstat (limited to 'os')
-rw-r--r--os/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/os/Makefile b/os/Makefile
index 97cd4eeb..f2855855 100644
--- a/os/Makefile
+++ b/os/Makefile
@@ -1,4 +1,5 @@
-_BUILD_DIR=./.build
+_BUILD_DIR = ./.build
+_KVMD_VERSION = $(shell bash -c 'source ../kvmd/PKGBUILD; echo $$pkgver')
all:
@ cat Makefile
@@ -6,12 +7,15 @@ all:
v1:
make _pikvm PIKVM_PLATFORM=v1
+shell:
+ cd $(_BUILD_DIR) && make shell
+
_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 binfmt && make _rpi \
- BUILD_OPTS="--build-arg KVMD_VERSION=`bash -c '. ../kvmd/PKGBUILD; echo $$pkgver'`" \
+ BUILD_OPTS="--build-arg $(_KVMD_VERSION)" \
PROJECT=pi-kvm \
PLATFORM=rpi-2 \
STAGES="__init__ os ssh watchdog ro pikvm __cleanup__" \