mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-21 04:53:31 +08:00
1fb3f1fcec
1. Sync 4.1.1+. 2. Add SDIO drivers for M480/M2354 platforms. 3. Update LVGL porting. 4. Add N9H30 FMI NAND driver. Co-authored-by: Wayne Lin <wclin@nuvoton.com>
22 lines
474 B
Python
22 lines
474 B
Python
# RT-Thread building script for component
|
|
|
|
import os
|
|
Import('RTT_ROOT')
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
objs = []
|
|
list = os.listdir(cwd)
|
|
src = Glob('*.c') + Glob('*.cpp')
|
|
CPPPATH = [cwd]
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
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(d, 'SConscript'))
|
|
|
|
objs += group
|
|
|
|
Return('objs')
|