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