[Mesa-dev] [RFC][PATCH 4/5] Android.mk: Add option to use vendor version of mesa

John Stultz john.stultz at linaro.org
Tue Jul 24 23:21:41 UTC 2018


From: Yong Yao <yong.yao at intel.com>

This is a forward port of a patch from the AOSP/master branch:
https://android.googlesource.com/platform/external/mesa3d/+/b1e5fad1db4c1d51c7ae3a033b100a8429ae5415%5E%21/

Which allows boards to provide their own custom copy of mesa.

Cc: Rob Herring <rob.herring at linaro.org>
Cc: Alistair Strachan <astrachan at google.com>
Cc: Marissa Wall <marissaw at google.com>
Cc: Sumit Semwal <sumit.semwal at linaro.org>
Cc: Emil Velikov <emil.l.velikov at gmail.com>
Cc: Rob Clark <robdclark at gmail.com>
Signed-off-by: Harish Krupo <harish.krupo.kps at intel.com>
Signed-off-by: Yong Yao <yong.yao at intel.com>
Signed-off-by: John Stultz <john.stultz at linaro.org>
---
 Android.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Android.mk b/Android.mk
index 914854c..494b4b9 100644
--- a/Android.mk
+++ b/Android.mk
@@ -29,6 +29,7 @@
 # The main target is libGLES_mesa.  For each classic driver enabled, a DRI
 # module will also be built.  DRI modules will be loaded by libGLES_mesa.
 
+ifneq ($(BOARD_USE_CUSTOMIZED_MESA), true)
 MESA_TOP := $(call my-dir)
 
 MESA_ANDROID_MAJOR_VERSION := $(word 1, $(subst ., , $(PLATFORM_VERSION)))
@@ -125,3 +126,5 @@ SUBDIRS := \
 INC_DIRS := $(call all-named-subdir-makefiles,$(SUBDIRS))
 INC_DIRS += $(call all-named-subdir-makefiles,src/gallium)
 include $(INC_DIRS)
+
+endif
-- 
2.7.4



More information about the mesa-dev mailing list