diff options
| author | Bernard Xiong <[email protected]> | 2019-05-26 11:46:41 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-05-26 11:46:41 +0800 |
| commit | 3d960cc178c67d047f3934e350296bf429cfcffa (patch) | |
| tree | 62867f68f51af1ee7b1a839d8f1c6de2f8a45855 /components/drivers/hwcrypto/SConscript | |
| parent | 7ca0ce2627f92a86482eca139968acf402948404 (diff) | |
| parent | 1cb3c89bce6caa2bea7cd31259af8b3e3e3ba51b (diff) | |
Merge pull request #2722 from enkiller/hwcrypto
[components][drivers] add hardware crypto device
Diffstat (limited to 'components/drivers/hwcrypto/SConscript')
| -rw-r--r-- | components/drivers/hwcrypto/SConscript | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/components/drivers/hwcrypto/SConscript b/components/drivers/hwcrypto/SConscript new file mode 100644 index 0000000000..90feff50b3 --- /dev/null +++ b/components/drivers/hwcrypto/SConscript @@ -0,0 +1,34 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +cwd = GetCurrentDir() +CPPPATH = [cwd, str(Dir('#'))] + +src = ['hwcrypto.c'] + +if (GetDepend(['RT_HWCRYPTO_USING_AES']) or + GetDepend(['RT_HWCRYPTO_USING_DES']) or + GetDepend(['RT_HWCRYPTO_USING_3DES']) or + GetDepend(['RT_HWCRYPTO_USING_RC4'])): + src += ['hw_symmetric.c'] + if GetDepend(['RT_HWCRYPTO_USING_GCM']): + src += ['hw_gcm.c'] + +if (GetDepend(['RT_HWCRYPTO_USING_MD5']) or + GetDepend(['RT_HWCRYPTO_USING_SHA1']) or + GetDepend(['RT_HWCRYPTO_USING_SHA2'])): + src += ['hw_hash.c'] + +if GetDepend(['RT_HWCRYPTO_USING_RNG']): + src += ['hw_rng.c'] + +if GetDepend(['RT_HWCRYPTO_USING_CRC']): + src += ['hw_crc.c'] + +if GetDepend(['RT_HWCRYPTO_USING_BIGNUM']): + src += ['hw_bignum.c'] + +group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_HWCRYPTO'], CPPPATH = CPPPATH) + +Return('group') |
