import os
Import('osconfig')
from build_tools import *

pwd  = PresentDir()
src  = []
objs = []
path = []

if IsDefined(['ARCH_XTENSA']) == False:
    Return('objs')
  
list = os.listdir(pwd)
for d in list:
    path = os.path.join(pwd, d)
    if os.path.isfile(os.path.join(path, 'SConscript')):
        objs = objs + SConscript(os.path.join(d, 'SConscript'))

Return('objs')