LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := libuapi_otpbasic LOCAL_MODULE_TAGS := optional LOCAL_PROPRIETARY_MODULE := true LOCAL_MULTILIB := both LOCAL_C_INCLUDES := vendor/platform/secure_c/include \ vendor/platform/libteec_vendor/include \ $(LOCAL_PATH)/../include \ $(LOCAL_PATH)/../../../../linux/include/generic LOCAL_SRC_FILES += iapi_otp.c \ mpi_otp.c LOCAL_SRC_FILES += mpi_otp_teec.c LOCAL_CFLAGS := LOCAL_CFLAGS += -DOTP_DATA_FILE_BASE=\"./data/otp_data_$(CHIP_VERSION).txt\" LOCAL_CFLAGS += -DOTP_DATA_FILE_C1=\"./data/null.txt\" LOCAL_CFLAGS += -Wlong-long -Wformat -Wpointer-arith LOCAL_STATIC_LIBRARIES += libuapi_otpdata LOCAL_SHARED_LIBRARIES := libuapi_common libuapi_memory libuapi_securec libteec_vendor include $(BUILD_STATIC_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := libuapi_otpbasic LOCAL_MODULE_TAGS := optional LOCAL_PROPRIETARY_MODULE := true LOCAL_MULTILIB := both LOCAL_C_INCLUDES := vendor/platform/secure_c/include \ vendor/platform/libteec_vendor/include \ $(LOCAL_PATH)/../include \ $(LOCAL_PATH)/../../../../linux/include/generic LOCAL_SRC_FILES += iapi_otp.c \ mpi_otp.c LOCAL_SRC_FILES += mpi_otp_teec.c LOCAL_CFLAGS := LOCAL_CFLAGS += -DOTP_DATA_FILE_BASE=\"./data/otp_data_$(CHIP_VERSION).txt\" LOCAL_CFLAGS += -DOTP_DATA_FILE_C1=\"./data/null.txt\" LOCAL_CFLAGS += -Wlong-long -Wformat -Wpointer-arith LOCAL_STATIC_LIBRARIES += libuapi_otpdata LOCAL_SHARED_LIBRARIES := libuapi_common libuapi_memory libuapi_securec libteec_vendor include $(BUILD_SHARED_LIBRARY)