summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-06-08 15:45:53 -0500
committerRob Herring <robh@kernel.org>2017-06-08 15:45:53 -0500
commit77f32995cb6e0193878b4b4147201b701076cee8 (patch)
treeb2c67a7de64fcb0c3c1771cb6048fe9614290945
parent7979b04bb8d074255083bd2ccb3c906ed936554d (diff)
Add libgralloc_drm library to export headers to mesa
Mesa mainline depends on libgralloc_drm shared library for importing include paths. Add a dummy library for this purpose. This gets mesa master building without any additional patches. Patches are still needed for proper functioning. Change-Id: Ib9577d0b7af028091f0c6f61d8dd2340cc8425d0 Signed-off-by: Rob Herring <robh@kernel.org>
-rw-r--r--Android.mk9
-rw-r--r--gralloc_drm_handle.h5
2 files changed, 14 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 14d0b58..083a73f 100644
--- a/Android.mk
+++ b/Android.mk
@@ -38,3 +38,12 @@ LOCAL_MODULE := gralloc.gbm
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_RELATIVE_PATH := hw
include $(BUILD_SHARED_LIBRARY)
+
+include $(CLEAR_VARS)
+
+LOCAL_EXPORT_C_INCLUDE_DIRS := \
+ $(LOCAL_PATH)
+
+LOCAL_MODULE := libgralloc_drm
+LOCAL_MODULE_TAGS := optional
+include $(BUILD_SHARED_LIBRARY)
diff --git a/gralloc_drm_handle.h b/gralloc_drm_handle.h
index cd69a4c..9edf22a 100644
--- a/gralloc_drm_handle.h
+++ b/gralloc_drm_handle.h
@@ -86,6 +86,11 @@ static inline int gralloc_drm_get_prime_fd(buffer_handle_t _handle)
return (handle) ? handle->prime_fd : -1;
}
+static inline int gralloc_drm_get_gem_handle(buffer_handle_t handle)
+{
+ return 0; /* Not supported, return invalid handle. */
+}
+
#ifdef __cplusplus
}
#endif