summaryrefslogtreecommitdiff
path: root/bsp/stm32/stm32h743-openmv-h7plus/board/ports/SConscript
blob: 78e480527d26273768ae5de1cf79b8ff7705fbf6 (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
28
29
30
31
import os
from building import *

objs = []
cwd  = GetCurrentDir()

# add general drivers
src = []
path =  [cwd]

if GetDepend(['BSP_USING_QSPI_FLASH']):
    src += ['drv_qspi_flash.c']

if GetDepend(['BSP_USING_SDMMC']):
    src += ['drv_sdio.c']

if GetDepend(['BSP_USING_OV5640']):
    src += ['drv_ov5640.c']

if GetDepend(['BSP_USING_DCMI']):
    src += ['drv_dcmi.c']

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

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

Return('group')