From 4fbe027953f8fa1f352dd4d226d10c2e2bfe2b7c Mon Sep 17 00:00:00 2001 From: pankore <86098180+pankore@users.noreply.github.com> Date: Tue, 10 May 2022 16:42:16 +0800 Subject: [PATCH] [MbedTLS] Migrate mbedtls cmakefile to Matter SDK third_party folder --- third_party/ameba/mbedtls.cmake | 91 +++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100755 third_party/ameba/mbedtls.cmake diff --git a/third_party/ameba/mbedtls.cmake b/third_party/ameba/mbedtls.cmake new file mode 100755 index 00000000000000..ef5b9d3eb8a1b2 --- /dev/null +++ b/third_party/ameba/mbedtls.cmake @@ -0,0 +1,91 @@ +cmake_minimum_required(VERSION 3.6) + +project(mbedtls) + +set(dir "${sdk_root}/component/common/network/ssl/mbedtls-matter") +set(dir_mbedtlschip "${ameba_matter_root}/third_party/mbedtls/repo/library") + +list( + APPEND ${list} + + # mbedtls-chip + ${dir}/net_sockets.c + ${dir_mbedtlschip}/aes.c + ${dir_mbedtlschip}/aesni.c + ${dir_mbedtlschip}/arc4.c + ${dir_mbedtlschip}/aria.c + ${dir_mbedtlschip}/asn1parse.c + ${dir_mbedtlschip}/asn1write.c + ${dir_mbedtlschip}/base64.c + ${dir_mbedtlschip}/bignum.c + ${dir_mbedtlschip}/blowfish.c + ${dir_mbedtlschip}/camellia.c + ${dir_mbedtlschip}/ccm.c + ${dir_mbedtlschip}/certs.c + ${dir_mbedtlschip}/chacha20.c + ${dir_mbedtlschip}/chachapoly.c + ${dir_mbedtlschip}/cipher.c + ${dir_mbedtlschip}/cipher_wrap.c + ${dir_mbedtlschip}/cmac.c + ${dir_mbedtlschip}/ctr_drbg.c + ${dir_mbedtlschip}/debug.c + ${dir_mbedtlschip}/des.c + ${dir_mbedtlschip}/dhm.c + ${dir_mbedtlschip}/ecdh.c + ${dir_mbedtlschip}/ecdsa.c + ${dir_mbedtlschip}/ecjpake.c + ${dir_mbedtlschip}/ecp.c + ${dir_mbedtlschip}/ecp_curves.c + ${dir_mbedtlschip}/entropy.c + ${dir_mbedtlschip}/entropy_poll.c + ${dir_mbedtlschip}/error.c + ${dir_mbedtlschip}/gcm.c + ${dir_mbedtlschip}/havege.c + ${dir_mbedtlschip}/hkdf.c + ${dir_mbedtlschip}/hmac_drbg.c + ${dir_mbedtlschip}/md2.c + ${dir_mbedtlschip}/md4.c + ${dir_mbedtlschip}/md5.c + ${dir_mbedtlschip}/md.c + ${dir_mbedtlschip}/memory_buffer_alloc.c + ${dir_mbedtlschip}/nist_kw.c + ${dir_mbedtlschip}/oid.c + ${dir_mbedtlschip}/padlock.c + ${dir_mbedtlschip}/pem.c + ${dir_mbedtlschip}/pk.c + ${dir_mbedtlschip}/pkcs11.c + ${dir_mbedtlschip}/pkcs12.c + ${dir_mbedtlschip}/pkcs5.c + ${dir_mbedtlschip}/pkparse.c + ${dir_mbedtlschip}/pk_wrap.c + ${dir_mbedtlschip}/pkwrite.c + ${dir_mbedtlschip}/platform.c + ${dir_mbedtlschip}/platform_util.c + ${dir_mbedtlschip}/poly1305.c + ${dir_mbedtlschip}/ripemd160.c + ${dir_mbedtlschip}/rsa.c + ${dir_mbedtlschip}/rsa_internal.c + ${dir_mbedtlschip}/sha1.c + ${dir_mbedtlschip}/sha256.c + ${dir_mbedtlschip}/sha512.c + ${dir_mbedtlschip}/ssl_cache.c + ${dir_mbedtlschip}/ssl_ciphersuites.c + ${dir_mbedtlschip}/ssl_cli.c + ${dir_mbedtlschip}/ssl_cookie.c + ${dir_mbedtlschip}/ssl_srv.c + ${dir_mbedtlschip}/ssl_ticket.c + ${dir_mbedtlschip}/ssl_tls.c + ${dir_mbedtlschip}/threading.c + ${dir_mbedtlschip}/timing.c + ${dir_mbedtlschip}/version.c + ${dir_mbedtlschip}/version_features.c + ${dir_mbedtlschip}/x509.c + ${dir_mbedtlschip}/x509_create.c + ${dir_mbedtlschip}/x509_crl.c + ${dir_mbedtlschip}/x509_crt.c + ${dir_mbedtlschip}/x509_csr.c + ${dir_mbedtlschip}/x509write_crt.c + ${dir_mbedtlschip}/x509write_csr.c + ${dir_mbedtlschip}/xtea.c +) +