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) 15LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 16LOCAL_LICENSE_CONDITIONS := notice 17 18LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw 19 20LOCAL_SRC_FILES := keymaster_qcom.cpp 21 22LOCAL_C_INCLUDES := $(TARGET_OUT_HEADERS)/common/inc 23 24LOCAL_CFLAGS := $(keymaster-def) 25LOCAL_CFLAGS += -Wno-error 26 27LOCAL_SHARED_LIBRARIES := \ 28 libcrypto \ 29 liblog \ 30 libc \ 31 libdl 32 33LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 34 35LOCAL_MODULE_TAGS := optional 36 37include $(BUILD_SHARED_LIBRARY) 38 39endif # TARGET_BOARD_PLATFORM 40endif 41