summaryrefslogtreecommitdiff
authorJiyu Yang <jiyu.yang@amlogic.com>2015-10-08 09:30:35 (GMT)
committer Jiyu Yang <jiyu.yang@amlogic.com>2015-10-16 07:54:21 (GMT)
commit91e78b18161fc87e9992cbb97d247275f80daba1 (patch)
tree2f55d24605f2ac5b6dc617ddeacd6e8c42155c28
parent1a2abcbc1a380c0a2d143701808373e6da3620e3 (diff)
downloadcamera-91e78b18161fc87e9992cbb97d247275f80daba1.zip
camera-91e78b18161fc87e9992cbb97d247275f80daba1.tar.gz
camera-91e78b18161fc87e9992cbb97d247275f80daba1.tar.bz2
PD#111243 update mk file for multi-gralloc
also this commit disable camera temporalily Change-Id: I0f1356aa77b2905f9599e3d6cfc20e33f7b67a5a Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
Diffstat
-rwxr-xr-xAndroid.mk10
-rw-r--r--v3/Android.mk4
2 files changed, 7 insertions, 7 deletions
diff --git a/Android.mk b/Android.mk
index e44b5ed..15e8694 100755
--- a/Android.mk
+++ b/Android.mk
@@ -1,3 +1,4 @@
+ifeq ($(MESON_GRALLOC_DIR),)
LOCAL_PATH:= $(call my-dir)
CAMHAL_V3:=true
@@ -69,11 +70,7 @@ ifeq ($(BOARD_HAVE_HW_JPEGENC),true)
LOCAL_SRC_FILES += $(CAMERA_HAL_HW_JPEGENC_SRC)
endif
-ifneq (,$(wildcard hardware/amlogic/gralloc))
-GRALLOC_DIR := hardware/amlogic/gralloc
-else
-GRALLOC_DIR := hardware/libhardware/modules/gralloc
-endif
+MESON_GRALLOC_DIR ?= hardware/amlogic/gralloc
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/inc/ \
@@ -87,7 +84,7 @@ LOCAL_C_INCLUDES += \
frameworks/native/include/media/hardware \
system/core/include/ion \
$(LOCAL_PATH)/inc/mjpeg/ \
- $(GRALLOC_DIR) \
+ $(MESON_GRALLOC_DIR) \
$(TOP)/system/media/camera/include \
system/core/include/utils \
system/core/libion/include/ \
@@ -194,3 +191,4 @@ include $(LOCAL_PATH)/v3/Android.mk
endif
include $(CLEAR_VARS)
+endif
diff --git a/v3/Android.mk b/v3/Android.mk
index 47680f2..3a7fdd3 100644
--- a/v3/Android.mk
+++ b/v3/Android.mk
@@ -66,13 +66,15 @@ LOCAL_SHARED_LIBRARIES += \
LOCAL_STATIC_LIBRARIES := \
libyuv_static \
+MESON_GRALLOC_DIR ?= hardware/amlogic/gralloc
+
LOCAL_C_INCLUDES += external/jpeg \
external/jhead/ \
frameworks/native/include/media/hardware \
external/libyuv/files/include/ \
$(TOP)/system/core/libion/include \
$(TOP)/system/core/libion/kernel-headers \
- $(TOP)/hardware/amlogic/gralloc \
+ $(TOP)/$(MESON_GRALLOC_DIR) \
$(LOCAL_PATH)/inc \
$(call include-path-for, camera) \
$(TOP)/external/expat/lib \