Ubiquitous\RT_Thread\:add Kconfig file and SConscript file in drivers folder
This commit is contained in:
parent
d73170d1c6
commit
e85b0832e1
|
@ -0,0 +1,5 @@
|
|||
menu "More Drivers"
|
||||
|
||||
#source "$RT_Thread_DIR/drivers/rw007/Kconfig"
|
||||
#source "$RT_Thread_DIR/drivers/ov2640/Kconfig"
|
||||
endmenu
|
|
@ -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')
|
Loading…
Reference in New Issue