summaryrefslogtreecommitdiff
path: root/components/drivers/spi/SConscript
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2014-08-27 09:10:43 +0800
committerBernard Xiong <[email protected]>2014-08-27 09:10:43 +0800
commit7f45ac18bc8f4aad8df3e146928d5c3af6e9a549 (patch)
tree21d4af8c38aaac8d28ff3c6dc2a217858f943509 /components/drivers/spi/SConscript
parent2f44048e08bebdc8efd1c3f0ed9c3f706c21f13d (diff)
parent3fa6d290af43ddf9989ae7d7bb420d15f656bfb0 (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'components/drivers/spi/SConscript')
-rw-r--r--components/drivers/spi/SConscript24
1 files changed, 22 insertions, 2 deletions
diff --git a/components/drivers/spi/SConscript b/components/drivers/spi/SConscript
index f114ef7a41..f9fc82a777 100644
--- a/components/drivers/spi/SConscript
+++ b/components/drivers/spi/SConscript
@@ -1,8 +1,28 @@
from building import *
-cwd = GetCurrentDir()
-src = Glob('*.c')
+cwd = GetCurrentDir()
+src = ['spi_core.c', 'spi_dev.c']
CPPPATH = [cwd + '/../include']
+
+src_device = []
+
+if GetDepend('RT_USING_SPI_WIFI'):
+ src_device += ['spi_wifi_rw009.c']
+
+if GetDepend('RT_USING_W25QXX'):
+ src_device += ['spi_flash_w25qxx.c']
+
+if GetDepend('RT_USING_ENC28J60'):
+ src_device += ['enc28j60.c']
+
+if GetDepend('RT_USING_AT45DBXX'):
+ src_device += ['spi_flash_at45dbxx.c']
+
+if GetDepend('RT_USING_SST25VFXX'):
+ src_device += ['spi_flash_sst25vfxx.c']
+
+src += src_device
+
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_SPI'], CPPPATH = CPPPATH)
Return('group')