aboutsummaryrefslogtreecommitdiffstats
path: root/build/Makefile
diff options
context:
space:
mode:
authorJonas Bjurel <jonas.bjurel@ericsson.com>2016-02-05 18:30:45 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-02-05 18:30:45 +0000
commit2cfea00a2ef413e7fb95c25eb327db366b242f0a (patch)
tree60ab9b4354a1e0eda6a0aa0a150ae6fecbceac05 /build/Makefile
parent612625b7032c7e1db94dc49dbb3af8f40ce80865 (diff)
parent0b8800ff5e1a97e269efc194cf3f3ba2cb583db5 (diff)
Merge "Added environment sanity checks for build." into stable/brahmaputra
Diffstat (limited to 'build/Makefile')
-rw-r--r--build/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/Makefile b/build/Makefile
index ab60f005f..bc6a9418c 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -80,6 +80,12 @@ SUBCLEAN = $(addsuffix .clean,$(SUBDIRS))
all:
@docker version >/dev/null 2>&1 || (echo 'No Docker installation available'; exit 1)
@make -C docker
+ @lsb_release -a | grep Ubuntu > /dev/null 2>&1 || (echo 'Ubuntu is the only supported Linux distribution for this build system'; exit 1)
+ @KERNEL_VER=$$(uname -r); \
+ KERNEL_VER="$${KERNEL_VER%.*-*}"; \
+ KERNEL_VER="$${KERNEL_VER//.}"; \
+ [ $$KERNEL_VER -ge 319 ] || (echo 'Kernel version must be 3.19 or newer'; exit 1)
+ @docker/runcontext $(DOCKERIMG) ping -c 1 www.google.com > /dev/null 2>&1 || (echo 'No docker network connectivity or name server - check your network- and docker settings'; exit 1)
@docker/runcontext $(DOCKERIMG) $(MAKE) $(MAKEFLAGS) iso