summaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2019-04-24 10:08:37 -0700
committerEmil Velikov <emil.l.velikov@gmail.com>2019-04-25 10:55:02 +0100
commit818033deff2ba1a3ed4e39b3f4a0c2f1da9b23eb (patch)
treee417c0bad15a36b9f8260aa21313a14f341dfcd0 /Android.mk
parentbe3b07617fc999e366e8185dbc7851ae5943df27 (diff)
downloadlibdrm-818033deff2ba1a3ed4e39b3f4a0c2f1da9b23eb.tar.gz
libdrm-818033deff2ba1a3ed4e39b3f4a0c2f1da9b23eb.tar.bz2
libdrm-818033deff2ba1a3ed4e39b3f4a0c2f1da9b23eb.zip
libdrm: Android.mk: Add minimal Android platform check
Add a check to error out on Android version K(4.4) or lower. This is due to dependency added in a previous commit on mmap64, which was introduced with Android L. Cc: Sean Paul <seanpaul@chromium.org> Cc: Alistair Strachan <astrachan@google.com> Cc: Marissa Wall <marissaw@google.com> Suggested-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 1b77c538..0ab6f0f9 100644
--- a/Android.mk
+++ b/Android.mk
@@ -21,6 +21,11 @@
# IN THE SOFTWARE.
#
+LIBDRM_ANDROID_MAJOR_VERSION := $(word 1, $(subst ., , $(PLATFORM_VERSION)))
+ifneq ($(filter 2 4, $(LIBDRM_ANDROID_MAJOR_VERSION)),)
+$(error "Android 4.4 and earlier not supported")
+endif
+
LIBDRM_COMMON_MK := $(call my-dir)/Android.common.mk
LOCAL_PATH := $(call my-dir)