Ubiquitous\RT_Thread\:add Kconfig file and SConscript file in drivers folder

This commit is contained in:
chunyexixiaoyu 2021-06-15 19:17:56 +08:00
parent d73170d1c6
commit e85b0832e1
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,5 @@
menu "More Drivers"
#source "$RT_Thread_DIR/drivers/rw007/Kconfig"
#source "$RT_Thread_DIR/drivers/ov2640/Kconfig"
endmenu

View File

@ -0,0 +1,14 @@
import os
Import('RTT_ROOT')
from building import *
cwd = GetCurrentDir()
objs = []
list = os.listdir(cwd)
for d in list:
path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, 'SConscript')):
objs = objs + SConscript(os.path.join(path, 'SConscript'))
Return('objs')