浏览代码

[修改]:修改sconscript文件以便于配置工程。

SummerGift 7 年之前
父节点
当前提交
b5d61a37b0
共有 2 个文件被更改,包括 14 次插入3 次删除
  1. 12 2
      bsp/stm32f429-apollo/applications/SConscript
  2. 2 1
      bsp/stm32f429-apollo/drivers/SConscript

+ 12 - 2
bsp/stm32f429-apollo/applications/SConscript

@@ -3,9 +3,19 @@ Import('rtconfig')
 from building import *
 
 cwd     = os.path.join(str(Dir('#')), 'applications')
-src	= Glob('*.c')
+#src	= Glob('*.c')
 CPPPATH = [cwd, str(Dir('#'))]
 
-group = DefineGroup('Applications', src, depend = ['RT_USING_GUIENGINE'], CPPPATH = CPPPATH)
+src = Split("""
+application.c
+startup.c
+""")
+
+# add gpio drivers.
+if GetDepend('RT_USING_GUIENGINE'):
+    src += ['rtgui_demo.c']
+
+
+group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
 
 Return('group')

+ 2 - 1
bsp/stm32f429-apollo/drivers/SConscript

@@ -11,11 +11,12 @@ stm32f4xx_it.c
 usart.c
 drv_sdram.c
 drv_rtc.c
-drv_sdio_sd.c
 drv_nand.c
 drv_mpu.c
 """)
 
+#drv_sdio_sd.c
+
 # add Ethernet drivers.
 if GetDepend('RT_USING_LWIP'):
     src += ['drv_eth.c', 'drv_iic.c', 'drv_pcf8574.c']