summaryrefslogtreecommitdiff
path: root/components/drivers/hwcrypto/SConscript
diff options
context:
space:
mode:
authorxph <[email protected]>2020-04-09 16:35:28 +0800
committerGitHub <[email protected]>2020-04-09 16:35:28 +0800
commitca7f01d79b3e0a997c771cec298e4ebd65b75809 (patch)
tree3d2c48aae7203b14038ba7b98b500b5343ed7f2a /components/drivers/hwcrypto/SConscript
parentf763f8e7284b0492c5a65ad0abf94ee1963d7dcc (diff)
parentbaa3145bfe61b3330b6a160523cc5470fa5db3a7 (diff)
Merge pull request #1 from RT-Thread/master
sync rtt
Diffstat (limited to 'components/drivers/hwcrypto/SConscript')
-rw-r--r--components/drivers/hwcrypto/SConscript34
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')