Use libdrm_platform for minuitwrp in 8.x trees
Change-Id: I58d7aa61cdb5c954e0726644fdc25c58eed8e544
diff --git a/minuitwrp/Android.mk b/minuitwrp/Android.mk
index 3f83c97..09bdb8d 100644
--- a/minuitwrp/Android.mk
+++ b/minuitwrp/Android.mk
@@ -48,7 +48,11 @@
ifneq ($(wildcard external/libdrm/Android.mk),)
LOCAL_CFLAGS += -DHAS_DRM
LOCAL_SRC_FILES += graphics_drm.cpp
- LOCAL_WHOLE_STATIC_LIBRARIES += libdrm
+ ifneq ($(wildcard external/libdrm/Android.common.mk),)
+ LOCAL_WHOLE_STATIC_LIBRARIES += libdrm_platform
+ else
+ LOCAL_WHOLE_STATIC_LIBRARIES += libdrm
+ endif
endif
LOCAL_C_INCLUDES += \