1 LOCAL_PATH := $(call my-dir) 2 3 ifneq ($(filter msm8960 msm8084,$(TARGET_BOARD_PLATFORM)),) 4 5 keymaster-def := -fvisibility=hidden -Wall 6 ifeq ($(TARGET_BOARD_PLATFORM),msm8084) 7 keymaster-def += -D_ION_HEAP_MASK_COMPATIBILITY_WA 8 endif 9 10 include $(CLEAR_VARS) 11 12 LOCAL_MODULE := keystore.$(TARGET_BOARD_PLATFORM) 13 14 LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw 15 16 LOCAL_SRC_FILES := keymaster_qcom.cpp 17 18 LOCAL_C_INCLUDES := $(TARGET_OUT_HEADERS)/common/inc 19 20 LOCAL_CFLAGS := $(keymaster-def) 21 22 LOCAL_SHARED_LIBRARIES := \ 23 libcrypto \ 24 liblog \ 25 libc \ 26 libdl 27 28 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 29 30 LOCAL_MODULE_TAGS := optional 31 32 include $(BUILD_SHARED_LIBRARY) 33 34 endif # TARGET_BOARD_PLATFORM 35