mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2026-08-28 01:01:34 +00:00
rel_1.6.0 init
This commit is contained in:
commit
27b3e2883d
19359 changed files with 8093121 additions and 0 deletions
53
Living_SDK/security/alicrypto/ucube.py
Normal file
53
Living_SDK/security/alicrypto/ucube.py
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
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')
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue