gralloc: fix check for TARGET_USES_GRALLOC1

Advertise gralloc1 only when TARGET_USES_GRALLOC1 is set to true.

Test: builds and boots
Change-Id: Ie7063281b114a3562d5d943cf67b3c25007b787e
This commit is contained in:
Chia-I Wu 2017-01-26 04:45:35 +08:00
parent 86384cfc3e
commit 115226b0dd
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ LOCAL_COPY_HEADERS := gralloc_priv.h gr.h
LOCAL_STATIC_LIBRARIES := libgralloc1-adapter
LOCAL_SHARED_LIBRARIES += libsync
ifneq ($(TARGET_USES_GRALLOC1), true)
ifeq ($(TARGET_USES_GRALLOC1), true)
LOCAL_CFLAGS += -DADVERTISE_GRALLOC1
endif