mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2025-03-19 11:12:55 +00:00
53 lines
1.8 KiB
Python
53 lines
1.8 KiB
Python
src = Split('''
|
|
./libalicrypto/mbed/cipher/aes.c
|
|
./libalicrypto/mbed/hash/hash.c
|
|
./libalicrypto/mbed/asym/rsa.c
|
|
./libalicrypto/mbed/mac/hmac.c
|
|
./libalicrypto/sw/ali_crypto_rand.c
|
|
./libalicrypto/ali_crypto.c
|
|
./mbedtls/library/aes.c
|
|
./mbedtls/library/md5.c
|
|
./mbedtls/library/sha1.c
|
|
./mbedtls/library/sha256.c
|
|
./mbedtls/library/hash_wrap.c
|
|
./mbedtls/library/bignum.c
|
|
./mbedtls/library/oid.c
|
|
./mbedtls/library/rsa.c
|
|
./mbedtls/library/threading.c
|
|
./mbedtls/library/mbedtls_alt.c
|
|
./mbedtls/library/asn1parse.c
|
|
./mbedtls/library/hmac.c
|
|
''')
|
|
|
|
aos_global_config.set("ALICRYPTO_TEST", "no")
|
|
|
|
if aos_global_config.get("ALICRYPTO_TEST")=="yes":
|
|
component.add_sources("./libalicrypto/test/ali_crypto_test.c")
|
|
component.add_sources("./libalicrypto/test/ali_crypto_test_comm.c")
|
|
component.add_sources("./libalicrypto/test/ali_crypto_test_aes.c")
|
|
component.add_sources("./libalicrypto/test/ali_crypto_test_hash.c")
|
|
component.add_sources("./libalicrypto/test/ali_crypto_test_rand.c")
|
|
component.add_sources("./libalicrypto/test/ali_crypto_test_rsa.c")
|
|
component.add_sources("./libalicrypto/test/ali_crypto_test_hmac.c")
|
|
|
|
incs = Split('''
|
|
./mbedtls/include/mbedtls
|
|
./libalicrypto/mbed/inc
|
|
./libalicrypto/sw
|
|
./mbedtls/include
|
|
./libalicrypto/test/inc
|
|
''')
|
|
|
|
gincs = Split('''
|
|
./libalicrypto/inc
|
|
''')
|
|
|
|
comp = aos_component('alicrypto', src)
|
|
comp.add_includes(*incs)
|
|
comp.add_global_includes(*gincs)
|
|
comp.add_macros('CONFIG_CRYPT_MBED=1')
|
|
comp.add_macros('CONFIG_DBG_CRYPT=1')
|
|
if aos_global_config.get('vcall') == 'winmsvs':
|
|
comp.add_macros('MBEDTLS_PLATFORM_C')
|
|
comp.add_global_macros('CONFIG_ALICRYPTO')
|
|
|