1 LOCAL_PATH := $(call my-dir) 2 3 ifneq ($(filter msm8960 msm8974 msm8226 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 external/openssl/include 20 21 LOCAL_CFLAGS := $(keymaster-def) 22 23 LOCAL_SHARED_LIBRARIES := \ 24 libcrypto \ 25 liblog \ 26 libc \ 27 libdl 28 29 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 30 31 LOCAL_MODULE_TAGS := optional 32 33 include $(BUILD_SHARED_LIBRARY) 34 35 endif # TARGET_BOARD_PLATFORM 36