You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
161 lines
8.0 KiB
161 lines
8.0 KiB
import("//build/ohos.gni")
|
|
import("//vendor/${product_company}/${product_name}/product.gni")
|
|
|
|
ohos_shared_library("libuapi_cipher") {
|
|
configs = [ "$public_sdk_config" ]
|
|
subsystem_name = "huanglong_sdk"
|
|
install_images = [
|
|
"vendor",
|
|
]
|
|
output_extension = "so"
|
|
|
|
sources = [
|
|
"uapi_cipher.c",
|
|
"uapi_hdcp.c",
|
|
"crypto_osal_user/crypto_osal_user_lib.c",
|
|
"../../../bootloader/source/drivers/cipher_common/uapi_code/uapi_symc.c",
|
|
"../../../bootloader/source/drivers/cipher_common/uapi_code/uapi_hash.c",
|
|
"../../../bootloader/source/drivers/cipher_common/uapi_code/uapi_trng.c",
|
|
"../../../bootloader/source/drivers/cipher_common/uapi_code/uapi_pke.c",
|
|
"../../../bootloader/source/drivers/cipher_common/uapi_code/uapi_kdf.c",
|
|
"../../../bootloader/source/drivers/cipher_common/soft_code/soft_symc.c",
|
|
"../../../bootloader/source/drivers/cipher_common/soft_code/soft_sm4.c",
|
|
"../../../bootloader/source/drivers/cipher_common/soft_code/soft_sm3.c",
|
|
"../../../bootloader/source/drivers/cipher_common/soft_code/soft_symc_common.c",
|
|
"../../../bootloader/source/drivers/cipher_common/soft_code/cipher_soft_symc.c",
|
|
"../../../bootloader/source/drivers/cipher_common/soft_code/cipher_soft_hash.c",
|
|
"../../../bootloader/source/drivers/cipher_common/soft_code/soft_sha.c",
|
|
"../../../bootloader/source/drivers/cipher_common/soft_code/soft_pke.c",
|
|
"../../../bootloader/source/drivers/cipher_common/soft_code/cipher_alg_support.c",
|
|
"../../../../open_source/mbedtls/library/gcm.c",
|
|
"../../../../open_source/mbedtls/library/cmac.c",
|
|
"../../../../open_source/mbedtls/library/ssl_srv.c",
|
|
"../../../../open_source/mbedtls/library/x509_crt.c",
|
|
"../../../../open_source/mbedtls/library/psa_its_file.c",
|
|
"../../../../open_source/mbedtls/library/sha256.c",
|
|
"../../../../open_source/mbedtls/library/ecjpake.c",
|
|
"../../../../open_source/mbedtls/library/oid.c",
|
|
"../../../../open_source/mbedtls/library/md.c",
|
|
"../../../../open_source/mbedtls/library/psa_crypto_ecp.c",
|
|
"../../../../open_source/mbedtls/library/base64.c",
|
|
"../../../../open_source/mbedtls/library/net_sockets.c",
|
|
"../../../../open_source/mbedtls/library/entropy_poll.c",
|
|
"../../../../open_source/mbedtls/library/pkparse.c",
|
|
"../../../../open_source/mbedtls/library/padlock.c",
|
|
"../../../../open_source/mbedtls/library/threading.c",
|
|
"../../../../open_source/mbedtls/library/x509_crl.c",
|
|
"../../../../open_source/mbedtls/library/psa_crypto_client.c",
|
|
"../../../../open_source/mbedtls/library/timing.c",
|
|
"../../../../open_source/mbedtls/library/platform_util.c",
|
|
"../../../../open_source/mbedtls/library/ssl_cookie.c",
|
|
"../../../../open_source/mbedtls/library/poly1305.c",
|
|
"../../../../open_source/mbedtls/library/psa_crypto_driver_wrappers.c",
|
|
"../../../../open_source/mbedtls/library/psa_crypto_slot_management.c",
|
|
"../../../../open_source/mbedtls/library/des.c",
|
|
"../../../../open_source/mbedtls/library/platform.c",
|
|
"../../../../open_source/mbedtls/library/ssl_msg.c",
|
|
"../../../../open_source/mbedtls/library/debug.c",
|
|
"../../../../open_source/mbedtls/library/pk_wrap.c",
|
|
"../../../../open_source/mbedtls/library/mps_reader.c",
|
|
"../../../../open_source/mbedtls/library/cipher_wrap.c",
|
|
"../../../../open_source/mbedtls/library/sha1.c",
|
|
"../../../../open_source/mbedtls/library/ssl_cli.c",
|
|
"../../../../open_source/mbedtls/library/constant_time.c",
|
|
"../../../../open_source/mbedtls/library/rsa_alt_helpers.c",
|
|
"../../../../open_source/mbedtls/library/ssl_ticket.c",
|
|
"../../../../open_source/mbedtls/library/psa_crypto_mac.c",
|
|
"../../../../open_source/mbedtls/library/ssl_tls13_keys.c",
|
|
"../../../../open_source/mbedtls/library/x509write_csr.c",
|
|
"../../../../open_source/mbedtls/library/ripemd160.c",
|
|
"../../../../open_source/mbedtls/library/entropy.c",
|
|
"../../../../open_source/mbedtls/library/pkwrite.c",
|
|
"../../../../open_source/mbedtls/library/asn1parse.c",
|
|
"../../../../open_source/mbedtls/library/ssl_cache.c",
|
|
"../../../../open_source/mbedtls/library/asn1write.c",
|
|
"../../../../open_source/mbedtls/library/ssl_debug_helpers_generated.c",
|
|
"../../../../open_source/mbedtls/library/psa_crypto.c",
|
|
"../../../../open_source/mbedtls/library/memory_buffer_alloc.c",
|
|
"../../../../open_source/mbedtls/library/ecdsa.c",
|
|
"../../../../open_source/mbedtls/library/ecdh.c",
|
|
"../../../../open_source/mbedtls/library/aria.c",
|
|
"../../../../open_source/mbedtls/library/chacha20.c",
|
|
"../../../../open_source/mbedtls/library/x509_create.c",
|
|
"../../../../open_source/mbedtls/library/ssl_tls13_generic.c",
|
|
"../../../../open_source/mbedtls/library/md5.c",
|
|
"../../../../open_source/mbedtls/library/ssl_tls13_client.c",
|
|
"../../../../open_source/mbedtls/library/aesni.c",
|
|
"../../../../open_source/mbedtls/library/x509write_crt.c",
|
|
"../../../../open_source/mbedtls/library/bignum.c",
|
|
"../../../../open_source/mbedtls/library/psa_crypto_hash.c",
|
|
"../../../../open_source/mbedtls/library/camellia.c",
|
|
"../../../../open_source/mbedtls/library/x509.c",
|
|
"../../../../open_source/mbedtls/library/pkcs5.c",
|
|
"../../../../open_source/mbedtls/library/ccm.c",
|
|
"../../../../open_source/mbedtls/library/hmac_drbg.c",
|
|
"../../../../open_source/mbedtls/library/pk.c",
|
|
"../../../../open_source/mbedtls/library/ctr_drbg.c",
|
|
"../../../../open_source/mbedtls/library/psa_crypto_se.c",
|
|
"../../../../open_source/mbedtls/library/ecp_curves.c",
|
|
"../../../../open_source/mbedtls/library/sha512.c",
|
|
"../../../../open_source/mbedtls/library/psa_crypto_cipher.c",
|
|
"../../../../open_source/mbedtls/library/psa_crypto_aead.c",
|
|
"../../../../open_source/mbedtls/library/pkcs12.c",
|
|
"../../../../open_source/mbedtls/library/error.c",
|
|
"../../../../open_source/mbedtls/library/ssl_tls13_server.c",
|
|
"../../../../open_source/mbedtls/library/x509_csr.c",
|
|
"../../../../open_source/mbedtls/library/psa_crypto_storage.c",
|
|
"../../../../open_source/mbedtls/library/cipher.c",
|
|
"../../../../open_source/mbedtls/library/chachapoly.c",
|
|
"../../../../open_source/mbedtls/library/pem.c",
|
|
"../../../../open_source/mbedtls/library/rsa.c",
|
|
"../../../../open_source/mbedtls/library/aes.c",
|
|
"../../../../open_source/mbedtls/library/version_features.c",
|
|
"../../../../open_source/mbedtls/library/mps_trace.c",
|
|
"../../../../open_source/mbedtls/library/nist_kw.c",
|
|
"../../../../open_source/mbedtls/library/hkdf.c",
|
|
"../../../../open_source/mbedtls/library/psa_crypto_rsa.c",
|
|
"../../../../open_source/mbedtls/library/dhm.c",
|
|
"../../../../open_source/mbedtls/library/ecp.c",
|
|
"../../../../open_source/mbedtls/library/ssl_tls.c",
|
|
"../../../../open_source/mbedtls/library/ssl_ciphersuites.c",
|
|
"../../../../open_source/mbedtls/library/version.c",
|
|
]
|
|
|
|
include_dirs = [
|
|
"$drv_cipher_headers",
|
|
"$drv_generic_headers",
|
|
"$libuapi_cipher_headers",
|
|
"crypto_osal_user",
|
|
"$sdk_dir/vendor/huanglong/bootloader/source/drivers/cipher_common/include/common_include",
|
|
"$sdk_dir/vendor/huanglong/bootloader/source/drivers/cipher_common/include/drv_include",
|
|
"$sdk_dir/vendor/huanglong/bootloader/source/drivers/cipher_common/include/hal_include",
|
|
"$sdk_dir/vendor/huanglong/bootloader/source/drivers/cipher_common/include/ioctl_include",
|
|
"$sdk_dir/vendor/huanglong/bootloader/source/drivers/cipher_common/include/kapi_include",
|
|
"$sdk_dir/vendor/huanglong/bootloader/source/drivers/cipher_common/include/uapi_include",
|
|
"$sdk_dir/vendor/huanglong/bootloader/source/drivers/cipher_common/soft_code",
|
|
"$sdk_dir/vendor/open_source/mbedtls/library",
|
|
"$sdk_dir/vendor/open_source/mbedtls/include",
|
|
"$sdk_dir/vendor/open_source/mbedtls",
|
|
]
|
|
|
|
deps = [
|
|
"$libuapi_securec",
|
|
"$libuapi_common",
|
|
"$libuapi_memory",
|
|
]
|
|
|
|
cflags = [
|
|
"-DLOG_TAG=\"libuapi_cipher\"",
|
|
"-DCONFIG_SOCT_LOG_SUPPORT",
|
|
"-DCONFIG_CRYPTO_CHIP_HDCP_SUPPORT",
|
|
]
|
|
|
|
public_configs = [
|
|
":libuapi_cipher_config",
|
|
]
|
|
}
|
|
|
|
config("libuapi_cipher_config") {
|
|
include_dirs = [ "$libuapi_cipher_headers" ]
|
|
}
|