rt-thread/bsp/rockchip/rk2108/SConscript

26 lines
634 B
Python

# for module compiling
import os
Import('RTT_ROOT')
from building import *
PROJECT = 'rk2108_evb'
Export('PROJECT')
SOC = 'RK2108'
Export('SOC')
cwd = GetCurrentDir()
objs = []
list = os.listdir(cwd)
objs = SConscript(os.path.join(cwd, '../common/HalSConscript'), variant_dir = 'common/rk_hal', duplicate=0)
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 = objs + SConscript(os.path.join(RTT_ROOT, 'bsp/rockchip/common/drivers/SConscript'), variant_dir = 'common/drivers', duplicate=0)
Return('objs')