未验证 提交 a896d977 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #4686 from mysterywolf/drv_sdcard.c

[bsp][stm32f407-explorer] 修复drv_sdcard.c没有被包含到工程的bug
import rtconfig
import os
from building import *
cwd = GetCurrentDir()
......@@ -9,4 +10,10 @@ main.c
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
list = os.listdir(cwd)
for d in list:
path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, 'SConscript')):
group = group + SConscript(os.path.join(d, 'SConscript'))
Return('group')
......@@ -19,7 +19,7 @@ if GetDepend(['BSP_USING_SPI_FLASH']):
src += Glob('ports/spi_flash_init.c')
if GetDepend(['BSP_USING_SDCARD']):
src += Glob('ports/sdcard_port.c')
src += Glob('ports/drv_sdcard.c')
if GetDepend(['BSP_USING_SRAM']):
src += Glob('ports/drv_sram.c')
......@@ -40,4 +40,4 @@ elif rtconfig.CROSS_TOOL == 'iar':
CPPDEFINES = ['STM32F407xx']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
Return('group')
\ No newline at end of file
Return('group')
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册