mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 04:40:09 +01:00
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>
This commit is contained in:
parent
be3b07617f
commit
818033deff
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue