diff options
author | Rob Herring <robh@kernel.org> | 2016-02-16 15:45:25 -0600 |
---|---|---|
committer | Chih-Wei Huang <cwhuang@linux.org.tw> | 2016-03-17 18:45:35 +0800 |
commit | 42156ec30b9b5853fb2034b91a5ca4f525232f95 (patch) | |
tree | 29e3ede598653fb0e441333d767fd5831847ddb3 | |
parent | 579e33549dc2293bf16b5571483bac2d36567318 (diff) | |
download | external_drm_gralloc-42156ec30b9b5853fb2034b91a5ca4f525232f95.zip external_drm_gralloc-42156ec30b9b5853fb2034b91a5ca4f525232f95.tar.gz external_drm_gralloc-42156ec30b9b5853fb2034b91a5ca4f525232f95.tar.bz2 |
Build pipe support by default
Build pipe support by default when any unlisted driver is enabled. This way
gralloc doesn't have to be updated for every new driver.
Signed-off-by: Rob Herring <robh@kernel.org>
-rw-r--r-- | Android.mk | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -27,22 +27,17 @@ freedreno_drivers := freedreno intel_drivers := i915 i965 i915g ilo radeon_drivers := r300g r600g radeonsi nouveau_drivers := nouveau -pipe_drivers := freedreno virgl vmwgfx valid_drivers := \ prebuilt \ - $(pipe_drivers) \ $(freedreno_drivers) \ $(intel_drivers) \ $(radeon_drivers) \ $(nouveau_drivers) -# warn about invalid drivers -invalid_drivers := $(filter-out $(valid_drivers), $(DRM_GPU_DRIVERS)) -ifneq ($(invalid_drivers),) -$(warning invalid GPU drivers: $(invalid_drivers)) -# tidy up -DRM_GPU_DRIVERS := $(filter-out $(invalid_drivers), $(DRM_GPU_DRIVERS)) +# Assume other driver names are pipe drivers +ifneq ($(filter-out $(valid_drivers), $(DRM_GPU_DRIVERS)),) +DRM_GPU_DRIVERS += pipe endif ifneq ($(strip $(DRM_GPU_DRIVERS)),) @@ -116,7 +111,7 @@ LOCAL_CFLAGS += -DENABLE_NOUVEAU LOCAL_SHARED_LIBRARIES += libdrm_nouveau endif -ifneq ($(filter $(pipe_drivers), $(DRM_GPU_DRIVERS)),) +ifneq ($(filter pipe, $(DRM_GPU_DRIVERS)),) LOCAL_SRC_FILES += gralloc_drm_pipe.c LOCAL_CFLAGS += -DENABLE_PIPE LOCAL_C_INCLUDES += \ |