summaryrefslogtreecommitdiff
path: root/bsp/nxp/imx/imx91/drivers/sdk/devices/MIMX9131/SConscript
blob: 43869fedcc62b03c578976f7f1012cd3eb5f3159 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# for module compiling
import os
from building import *

cwd  = GetCurrentDir()
src = Glob('*.c') + Glob('drivers/*.c')

CPPPATH = [cwd, cwd + '/drivers']
CPPDEFINES = [
    {'CPU_MIMX9131DVVXJ': 1}
]
objs = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)

for item in os.listdir(cwd):
    sconsfile = os.path.join(item, 'SConscript')
    if os.path.isfile(os.path.join(cwd, sconsfile)):
        objs += SConscript(sconsfile)

Return('objs')