1# Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. 2# Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without modification, 5# are permitted provided that the following conditions are met: 6# 7# 1. Redistributions of source code must retain the above copyright notice, this list of 8# conditions and the following disclaimer. 9# 10# 2. Redistributions in binary form must reproduce the above copyright notice, this list 11# of conditions and the following disclaimer in the documentation and/or other materials 12# provided with the distribution. 13# 14# 3. Neither the name of the copyright holder nor the names of its contributors may be used 15# to endorse or promote products derived from this software without specific prior written 16# permission. 17# 18# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 20# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 22# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 23# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 24# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 25# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 26# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 27# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 28# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 30import("//kernel/liteos_a/liteos.gni") 31 32module_switch = defined(LOSCFG_DRIVERS_TZDRIVER) 33module_name = get_path_info(rebase_path("."), "name") 34kernel_module(module_name) { 35 sources = [ 36 "$LITEOSTHIRDPARTY/mbedtls/library/aes.c", 37 "$LITEOSTHIRDPARTY/mbedtls/library/aesni.c", 38 "$LITEOSTHIRDPARTY/mbedtls/library/arc4.c", 39 "$LITEOSTHIRDPARTY/mbedtls/library/aria.c", 40 "$LITEOSTHIRDPARTY/mbedtls/library/asn1parse.c", 41 "$LITEOSTHIRDPARTY/mbedtls/library/asn1write.c", 42 "$LITEOSTHIRDPARTY/mbedtls/library/base64.c", 43 "$LITEOSTHIRDPARTY/mbedtls/library/bignum.c", 44 "$LITEOSTHIRDPARTY/mbedtls/library/blowfish.c", 45 "$LITEOSTHIRDPARTY/mbedtls/library/camellia.c", 46 "$LITEOSTHIRDPARTY/mbedtls/library/ccm.c", 47 "$LITEOSTHIRDPARTY/mbedtls/library/certs.c", 48 "$LITEOSTHIRDPARTY/mbedtls/library/chacha20.c", 49 "$LITEOSTHIRDPARTY/mbedtls/library/chachapoly.c", 50 "$LITEOSTHIRDPARTY/mbedtls/library/cipher.c", 51 "$LITEOSTHIRDPARTY/mbedtls/library/cipher_wrap.c", 52 "$LITEOSTHIRDPARTY/mbedtls/library/cmac.c", 53 "$LITEOSTHIRDPARTY/mbedtls/library/ctr_drbg.c", 54 "$LITEOSTHIRDPARTY/mbedtls/library/debug.c", 55 "$LITEOSTHIRDPARTY/mbedtls/library/des.c", 56 "$LITEOSTHIRDPARTY/mbedtls/library/dhm.c", 57 "$LITEOSTHIRDPARTY/mbedtls/library/ecdh.c", 58 "$LITEOSTHIRDPARTY/mbedtls/library/ecdsa.c", 59 "$LITEOSTHIRDPARTY/mbedtls/library/ecjpake.c", 60 "$LITEOSTHIRDPARTY/mbedtls/library/ecp.c", 61 "$LITEOSTHIRDPARTY/mbedtls/library/ecp_curves.c", 62 "$LITEOSTHIRDPARTY/mbedtls/library/entropy.c", 63 "$LITEOSTHIRDPARTY/mbedtls/library/entropy_poll.c", 64 "$LITEOSTHIRDPARTY/mbedtls/library/error.c", 65 "$LITEOSTHIRDPARTY/mbedtls/library/gcm.c", 66 "$LITEOSTHIRDPARTY/mbedtls/library/havege.c", 67 "$LITEOSTHIRDPARTY/mbedtls/library/hkdf.c", 68 "$LITEOSTHIRDPARTY/mbedtls/library/hmac_drbg.c", 69 "$LITEOSTHIRDPARTY/mbedtls/library/md.c", 70 "$LITEOSTHIRDPARTY/mbedtls/library/md2.c", 71 "$LITEOSTHIRDPARTY/mbedtls/library/md4.c", 72 "$LITEOSTHIRDPARTY/mbedtls/library/md5.c", 73 "$LITEOSTHIRDPARTY/mbedtls/library/md_wrap.c", 74 "$LITEOSTHIRDPARTY/mbedtls/library/memory_buffer_alloc.c", 75 "$LITEOSTHIRDPARTY/mbedtls/library/net_sockets.c", 76 "$LITEOSTHIRDPARTY/mbedtls/library/nist_kw.c", 77 "$LITEOSTHIRDPARTY/mbedtls/library/oid.c", 78 "$LITEOSTHIRDPARTY/mbedtls/library/padlock.c", 79 "$LITEOSTHIRDPARTY/mbedtls/library/pem.c", 80 "$LITEOSTHIRDPARTY/mbedtls/library/pk.c", 81 "$LITEOSTHIRDPARTY/mbedtls/library/pk_wrap.c", 82 "$LITEOSTHIRDPARTY/mbedtls/library/pkcs11.c", 83 "$LITEOSTHIRDPARTY/mbedtls/library/pkcs12.c", 84 "$LITEOSTHIRDPARTY/mbedtls/library/pkcs5.c", 85 "$LITEOSTHIRDPARTY/mbedtls/library/pkparse.c", 86 "$LITEOSTHIRDPARTY/mbedtls/library/pkwrite.c", 87 "$LITEOSTHIRDPARTY/mbedtls/library/platform.c", 88 "$LITEOSTHIRDPARTY/mbedtls/library/platform_util.c", 89 "$LITEOSTHIRDPARTY/mbedtls/library/poly1305.c", 90 "$LITEOSTHIRDPARTY/mbedtls/library/ripemd160.c", 91 "$LITEOSTHIRDPARTY/mbedtls/library/rsa.c", 92 "$LITEOSTHIRDPARTY/mbedtls/library/rsa_internal.c", 93 "$LITEOSTHIRDPARTY/mbedtls/library/sha1.c", 94 "$LITEOSTHIRDPARTY/mbedtls/library/sha256.c", 95 "$LITEOSTHIRDPARTY/mbedtls/library/sha512.c", 96 "$LITEOSTHIRDPARTY/mbedtls/library/ssl_cache.c", 97 "$LITEOSTHIRDPARTY/mbedtls/library/ssl_ciphersuites.c", 98 "$LITEOSTHIRDPARTY/mbedtls/library/ssl_cli.c", 99 "$LITEOSTHIRDPARTY/mbedtls/library/ssl_cookie.c", 100 "$LITEOSTHIRDPARTY/mbedtls/library/ssl_srv.c", 101 "$LITEOSTHIRDPARTY/mbedtls/library/ssl_ticket.c", 102 "$LITEOSTHIRDPARTY/mbedtls/library/ssl_tls.c", 103 "$LITEOSTHIRDPARTY/mbedtls/library/threading.c", 104 "$LITEOSTHIRDPARTY/mbedtls/library/timing.c", 105 "$LITEOSTHIRDPARTY/mbedtls/library/version.c", 106 "$LITEOSTHIRDPARTY/mbedtls/library/version_features.c", 107 "$LITEOSTHIRDPARTY/mbedtls/library/x509.c", 108 "$LITEOSTHIRDPARTY/mbedtls/library/x509_create.c", 109 "$LITEOSTHIRDPARTY/mbedtls/library/x509_crl.c", 110 "$LITEOSTHIRDPARTY/mbedtls/library/x509_crt.c", 111 "$LITEOSTHIRDPARTY/mbedtls/library/x509_csr.c", 112 "$LITEOSTHIRDPARTY/mbedtls/library/x509write_crt.c", 113 "$LITEOSTHIRDPARTY/mbedtls/library/x509write_csr.c", 114 "$LITEOSTHIRDPARTY/mbedtls/library/xtea.c", 115 ] 116 117 public_configs = [ ":public" ] 118} 119 120config("public") { 121 include_dirs = [ "$LITEOSTHIRDPARTY/mbedtls/include" ] 122} 123