blob: 86fc613654613af55ce526eea80e5d910ab866be (
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
|
from building import *
Import('rtconfig')
cwd = GetCurrentDir()
src = Glob('*.c')
path = [cwd + '/..']
if GetDepend('SOC_GK7101') or GetDepend('SOC_GK7102'):
path += [cwd + '/../libraries/drv/710X/gh/inc', cwd + '/../libraries/drv/710X/gd/inc']
elif GetDepend('SOC_GK7101S') or GetDepend('SOC_GK7102S'):
path += [cwd + '/../libraries/drv/710XS/gh/inc', cwd + '/../libraries/drv/710XS/gd/inc']
elif GetDepend('SOC_GK7102C'):
path += [cwd + '/../libraries/drv/7102C/gh/inc', cwd + '/../libraries/drv/7102C/gd/inc']
path += [cwd + '/../../../components/drivers/include/drivers']
path += [cwd + '/../libraries/adi/inc']
path += [cwd + '/../platform/board']
path += [cwd + '/../platform']
libcwd = str(Dir('#'))
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
Return('group')
|