LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := libuapi_cipher LOCAL_MULTILIB := both LOCAL_BUILD_STATIC := true OPENSOURCE_MBEDTLS_DIR_ABSOLUTES := vendor/open_source/mbedtls OPENSOURCE_MBEDTLS_DIR_RELATIVE := ../../../../open_source/mbedtls COMMON_DIR := ../../../bootloader/source/drivers/cipher_common LOCAL_SRC_FILES := $(OPENSOURCE_MBEDTLS_DIR_RELATIVE)/library/*.c LOCAL_SRC_FILES += $(COMMON_DIR)/uapi_code/*.c LOCAL_SRC_FILES += $(COMMON_DIR)/soft_code/*.c LOCAL_SRC_FILES += crypto_osal_user/*.c LOCAL_SRC_FILES += uapi_hdcp.c LOCAL_SRC_FILES += uapi_cipher.c LOCAL_CFLAGS := -Ivendor/huanglong/bootloader/source/drivers/cipher_common/include/common_include \ -Ivendor/huanglong/bootloader/source/drivers/cipher_common/include/uapi_include \ -Ivendor/huanglong/bootloader/source/drivers/cipher_common/include/ioctl_include \ -Ivendor/huanglong/bootloader/source/drivers/cipher_common/soft_code LOCAL_CFLAGS += -Ivendor/platform/secure_c/include \ -Ivendor/huanglong/linux/include/cipher \ -Ivendor/huanglong/linux/include/generic \ -Ivendor/huanglong/uapi/common/include \ -Ivendor/huanglong/uapi/memory/include \ -Ivendor/huanglong/uapi/cipher/include \ -Ivendor/huanglong/uapi/cipher/source/crypto_osal_user \ -Ivendor/huanglong/uapi/cipher/source/crypto_adapter \ -Ivendor/huanglong/uapi/cipher/source \ -I$(OPENSOURCE_MBEDTLS_DIR_ABSOLUTES)/ \ -I$(OPENSOURCE_MBEDTLS_DIR_ABSOLUTES)/include \ -I$(OPENSOURCE_MBEDTLS_DIR_ABSOLUTES)/library LOCAL_CFLAGS += -DLOG_TAG=libuapi_cipher \ -DCONFIG_SOCT_LOG_SUPPORT \ -DCONFIG_CRYPTO_CHIP_HDCP_SUPPORT \ -D_FORTIFY_SOURCE=2 \ -fstack-protector-all LOCAL_LDFLAGS := -lpthread LOCAL_SHARED_LIBRARIES := libuapi_securec \ libuapi_common \ libuapi_memory include $(BUILD_LINUX_LIBRARY)