summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2017-05-23 14:41:22 -0500
committerRob Herring <[email protected]>2017-05-25 14:58:49 -0500
commitd5a9365d460200ad643f1d39e5a47d148112f979 (patch)
tree635688d2ae34084a837845b588d9e2d0fd0cec4d
parent48faedbc7e67e7bb54e3ae051272e87281683301 (diff)
Android: generate an error if building on Android 4.4 or earlier
Since commit 7a5b5f52260 ("Android: drop Android 4.4 (KitKat) support"), Android 4.4 or earlier is no longer supported, so exit with an error if we try building on it. Reviewed-by: Emil Velikov <[email protected]> Signed-off-by: Rob Herring <[email protected]>
-rw-r--r--Android.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index ab6bf6adbd4..de37f4600f3 100644
--- a/Android.mk
+++ b/Android.mk
@@ -32,6 +32,9 @@
MESA_TOP := $(call my-dir)
MESA_ANDROID_MAJOR_VERSION := $(word 1, $(subst ., , $(PLATFORM_VERSION)))
+ifneq ($(filter 2 4, $(MESA_ANDROID_MAJOR_VERSION)),)
+$(error "Android 4.4 and earlier not supported")
+endif
MESA_DRI_MODULE_REL_PATH := dri
MESA_DRI_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/$(MESA_DRI_MODULE_REL_PATH)