android: make DRM optional

For BOARD_GPU_DRIVERS=swrast build, DRM is not needed.
This commit is contained in:
Chia-I Wu
2011-08-25 21:36:19 +08:00
committed by Chia-I Wu
parent 534df79187
commit 09b5f1fd61
5 changed files with 39 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ DRM_GRALLOC_TOP := hardware/drm_gralloc
classic_drivers :=
gallium_drivers := swrast i915g nouveau r300g r600g vmwgfx
MESA_GPU_DRIVERS := $(BOARD_GPU_DRIVERS)
MESA_GPU_DRIVERS := $(strip $(BOARD_GPU_DRIVERS))
# warn about invalid drivers
invalid_drivers := $(filter-out \
@@ -97,12 +97,16 @@ LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_egl
LOCAL_SHARED_LIBRARIES := \
libglapi \
libdrm \
libdl \
libhardware \
liblog \
libcutils
# hardware drivers require DRM
ifneq ($(MESA_GPU_DRIVERS),swrast)
LOCAL_SHARED_LIBRARIES += libdrm
endif
ifeq ($(strip $(MESA_BUILD_GALLIUM)),true)
gallium_DRIVERS :=