summaryrefslogtreecommitdiff
path: root/bsp/imxrt/imxrt1050-ArchMix/drivers/SConscript
blob: 3d9c8e1b4f37abf566681df0ddc8ee748dbd799c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from building import *

cwd = GetCurrentDir()

# add the general drivers.
src = Split("""
board.c
drv_flexspi.c
""")

CPPPATH = [cwd]
CPPDEFINES = []

if GetDepend('PKG_USING_EASYFLASH'):
    src += ['ports/ef_fal_port.c'] 

if GetDepend('PKG_USING_FAL'):
    src += ['ports/fal_flexspi_nor_flash_port.c'] 

if GetDepend('PKG_USING_FAL') and GetDepend('PKG_USING_EASYFLASH'):
    src += ['ports/fal_flash_init.c', 'ports/ef_update.c'] 

CPPPATH += [cwd + '/ports']

group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)

Return('group')