814b1abb08
* Update Kconfig 增加RT1170双路网络选项 * Update SConscript 增加RTL8211F驱动选项支持 * Update SConstruct 去掉外设目录 * Add files via upload 增加PHY芯片RTL8211F驱动 * Update drv_rtl8211f.c * format code Co-authored-by: Meco Man <920369182@qq.com>
23 lines
515 B
Python
23 lines
515 B
Python
import rtconfig
|
|
from building import *
|
|
import os
|
|
|
|
cwd = GetCurrentDir()
|
|
src = Glob('*.c')
|
|
CPPPATH = [cwd]
|
|
|
|
# add for startup script
|
|
if rtconfig.PLATFORM in ['gcc']:
|
|
CPPDEFINES = ['__START=entry']
|
|
else:
|
|
CPPDEFINES = []
|
|
|
|
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
|
|
|
|
list = os.listdir(cwd)
|
|
for item in list:
|
|
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
|
|
group = group + SConscript(os.path.join(item, 'SConscript'))
|
|
|
|
Return('group')
|