2018-03-04 08:21:19 +08:00
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Glob('*.c')
|
|
|
|
|
|
|
|
CPPDEFINES = []
|
|
|
|
if GetDepend('BOARD_GK7102C_EVB'):
|
|
|
|
CPPDEFINES += ['-DGK7102C_EVB']
|
|
|
|
elif GetDepend('BOARD_GK7101_EVB'):
|
|
|
|
CPPDEFINES += ['-DGK7101_EVB']
|
|
|
|
elif GetDepend('BOARD_GK7101S_EVB'):
|
|
|
|
CPPDEFINES += ['-DGK7101S_EVB']
|
|
|
|
elif GetDepend('BOARD_GK7102_HZD_JXH42'):
|
|
|
|
CPPDEFINES += ['-DDUSE_BOARD_HZD']
|
|
|
|
elif GetDepend('BOARD_GK7102S_HZD_JXH42'):
|
|
|
|
CPPDEFINES += ['-DGK7102S_HZD_JXH42']
|
|
|
|
elif GetDepend('BOARD_GK7102C_JH'):
|
|
|
|
CPPDEFINES += ['-DGK7102C_JH']
|
|
|
|
|
2020-12-19 16:49:11 +08:00
|
|
|
group = DefineGroup('Drivers', src, depend = [''], CPPDEFINES = CPPDEFINES)
|
2018-03-04 08:21:19 +08:00
|
|
|
|
|
|
|
Return('group')
|