diff options
author | Rob Herring <[email protected]> | 2018-04-26 16:02:01 +0200 |
---|---|---|
committer | Robert Foss <[email protected]> | 2018-06-25 18:54:09 +0200 |
commit | 3f7bca44d9a9f07eaafc5de850ec65bdd00707b9 (patch) | |
tree | c0877a83541caa1943f430381474f5a977fca159 /src/egl/Android.mk | |
parent | 5a34aba07de19d12928177622cf87cdd4b7fef1a (diff) |
egl/android: #ifdef out flink name support
Maintaining both flink names and prime fd support which are provided by
2 different gralloc implementations is problematic because we have a
dependency on a specific gralloc implementation header.
This mostly disables the dependency on the gralloc implementation and
headers. The dependency on GRALLOC_MODULE_PERFORM_GET_DRM_FD remains for
now, but the definition is added locally to remove the header
dependency.
drm_gralloc support can be enabled by setting
BOARD_USES_DRM_GRALLOC=true in BoardConfig.mk.
Signed-off-by: Rob Herring <[email protected]>
Signed-off-by: Robert Foss <[email protected]>
Reviewed-by: Tomasz Figa <[email protected]>
Diffstat (limited to 'src/egl/Android.mk')
-rw-r--r-- | src/egl/Android.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/egl/Android.mk b/src/egl/Android.mk index 11818694f4f..8412aeb7984 100644 --- a/src/egl/Android.mk +++ b/src/egl/Android.mk @@ -57,9 +57,13 @@ LOCAL_SHARED_LIBRARIES := \ libhardware \ liblog \ libcutils \ - libgralloc_drm \ libsync +ifeq ($(BOARD_USES_DRM_GRALLOC),true) + LOCAL_CFLAGS += -DHAVE_DRM_GRALLOC + LOCAL_SHARED_LIBRARIES += libgralloc_drm +endif + ifeq ($(filter $(MESA_ANDROID_MAJOR_VERSION), 4 5 6 7),) LOCAL_SHARED_LIBRARIES += libnativewindow endif |