[Mesa-dev] [PATCH 10/12] Android: default to building all drivers

Rob Herring robh at kernel.org
Thu Apr 27 19:43:46 UTC 2017


If BOARD_GPU_DRIVERS is empty, build all the drivers. This doesn't
enable building mesa as that is controlled by including libGLES_mesa in
the product.

Signed-off-by: Rob Herring <robh at kernel.org>
---
 Android.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Android.mk b/Android.mk
index 9f481ee7e109..76858c1616bc 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,3 +1,4 @@
+
 # Mesa 3-D graphics library
 #
 # Copyright (C) 2010-2011 Chia-I Wu <olvaffe at gmail.com>
@@ -53,8 +54,15 @@ gallium_drivers := \
 	vc4.HAVE_GALLIUM_VC4 \
 	virgl.HAVE_GALLIUM_VIRGL
 
+$(warning $(BOARD_GPU_DRIVERS))
+
+ifeq ($(BOARD_GPU_DRIVERS),all)
+MESA_BUILD_CLASSIC := $(filter HAVE_%, $(subst ., , $(classic_drivers)))
+MESA_BUILD_GALLIUM := $(filter HAVE_%, $(subst ., , $(gallium_drivers)))
+else
 MESA_BUILD_CLASSIC := $(strip $(foreach d, $(BOARD_GPU_DRIVERS), $(patsubst $(d).%,%, $(filter $(d).%, $(classic_drivers)))))
 MESA_BUILD_GALLIUM := $(strip $(foreach d, $(BOARD_GPU_DRIVERS), $(patsubst $(d).%,%, $(filter $(d).%, $(gallium_drivers)))))
+endif
 $(foreach d, $(MESA_BUILD_CLASSIC) $(MESA_BUILD_GALLIUM), $(eval $(d) := true))
 
 # host and target must be the same arch to generate matypes.h
-- 
2.11.0



More information about the mesa-dev mailing list